sway
in the Linux console./usr/share/wayland-sessions/sway.desktop
. It is automatically recognized by modern display managers like GDM and SDDM.~/.config/sway/config
and it should work out of the box. Otherwise, copy the sample configuration file to ~/.config/sway/config
. It is located at /etc/sway/config
, unless the DFALLBACK_CONFIG_DIR
flag has been set. See sway(5) for information on the configuration.XKB_DEFAULT_LAYOUT
, XKB_DEFAULT_VARIANT
, etc.) when starting sway
, with config options taking precedence over environment variables.input
section:'*'
):swaymsg -t get_inputs
to obtain a device identifier and use it instead of type:touchpad
. For example, to set pointer acceleration:swaymsg -t get_inputs
command may contain ' to escape symbols like '/' (e.g. '2:14:ETPS/2_Elantech_Touchpad'
) and it needs to be removed.output
command in your config file. The scale factor can be fractional, but it is usually 2 for HiDPI screens.--locked
parameter to bindsym.app_id
, the class
, the instance
and the title
attributes to enable floating windows/window assignments. The following command will list the properties of all the open windows.app_id
's of all open windows use:app_id
of the focused window use:app_id
happens to be null for some windows, you might have to use the class
and/or the instance
attributes to enable floating mode/window assignments. You can search the output and create fine grained rules for your windows.class
or wm_name
attributes in X11.~/.Xresources
to ~/.Xdefaults
to use them in Sway.kbd_identifier
needs to be replaced with your keyboard's identifier:Pause
) bind the following script in your Sway config
:swaynagmode --select right
or swaynagmode --confirm
. nag
upon initialization, followed by default
on exit. This makes it easy to define keybindings in your sway configuration:swaynag_command swaynagmode
.my_cursor_theme
can be set to or replaced by a specific value like default
, Adwaita
or Simple-and-Soft
, and my_cursor_size
a value like 48
.echo $XCURSOR_SIZE
and echo $XCURSOR_THEME
.$XCURSOR_SIZE
and $XCURSOR_THEME
.pkill
does too.BEMENU_BACKEND
environment variable to 'wayland' if you choose not to disable XWayland.krunner
binary provided by plasma-workspace package can serve as launcher, offering both XWayland and native Wayland support.-x11
flag if you need to launch it in an X11 session. swaymsg
argument, such as swaymsg -t get_outputs
, will sometimes return the message:swaymsg
could not connect to the socket provided in your SWAYSOCK
.SWAYSOCK
is, type:swaymsg -t
on a tty may return the following message:SWAYSOCK
environment variable is set after launching Sway, therefore a workaround to this error is to request swaymsg -t [message]
in a terminal inside Sway.input * xkb_layout 'us,ru'
, bindings may become broken when you switch on some secondary layout.--to-code
key to sensitive bindsym
lines like this:_JAVA_AWT_WM_NONREPARENTING
environment variable set to 1.STUDIO_JDK=/usr/lib/jvm/java-11-openjdk-amd64/
. [3]border none
for the app_id
(e.g. Firefox).