Sway

Sway (contracted from SirCmpwn's Wayland compositor) is Article description::an open-source [[Wayland compositor that is designed to be compatible with the i3 window manager.]]

Configuration
To view all available configuration options:

Files
Each user running sway can edit the default configuration file in order to run a customized sway session. Gentoo stores this file at its default location:

Terminal emulator
By default the sway configuration file uses the terminal emulator (found in the  package). It is a good idea to emerge this terminal emulator so that a terminal will be available once sway is running:

Another popular choice is which works natively with Wayland if the   environment variable is set to.

HiDPI
To adjust sway's rendering for HiDPI displays (4K and above), the name of the display to be adjusted must be obtained. After a sway session is running, issue the following:

The  statement in the sway configuration file will accept a   parameter to adjust the scaling of the high resolution display.

Executing sway
Before running Sway, ensure that your user is in the and  groups:

If you use Systemd or Elogind you can just run Sway with:

If you use ConsoleKit, run Sway using:

if you do not use neither systemd nor elogind nor consolekit, you may need to create a bash script that set the XDG_RUNTIME_DIR.

The environment variable can be defined in the usual configuration files. For example, if sets XDG_RUNTIME_DIR variable in his Bash shell's configuration file and he has chosen that the directory will be in.

With the XDG_RUNTIME_DIR defined, you can run sway in the usual way:

If you encounter any issues check Sway issues on GitHub before contacting #sway on IRC or filing a new bug on https://bugs.gentoo.org/.

Usage
All most key combinations will be defined in the configuration file.

The 'logo' key is defined as the  value by default. On most keyboards this will be the Windows key.

Movement
Sway has a Vi-like interface. (left), (down),  (up), and  (right) can be used for movement.

See for more information.

Terminal
The default key combination to open a terminal emulator is +.