sway
According to the official website, Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3’s features, plus a few extras.
Installation
https://github.com/swaywm/sway#installation
Also install foot (terminal), swaybg (wallpaper), swayidle, swaylock and font-dejavu.
Copy config
mkdir -p ~/.config/sway/
cp /etc/sway/config ~/.config/sway/Make Caps Lock an Additional Ctrl key
Add this to ~/.config/sway/config:
input type:keyboard {
xkb_options ctrl:nocaps
}Toggle between tabbed and split modes
Replace bindsym $mod+w layout tabbed with this:
bindsym $mod+w layout toggle tabbed splitPS: I swapped w with space so that it would act as a quasi- monocle mode. Sway has no monocle mode.
Toggle between horizontal & vertical split modes
Just press $Mod + e.
Prevent pressing the power button from shutting down the laptop
Add this to config:
exec systemd-inhibit --what=handle-power-key sleep infinityMultiple display management
I’m using kanshi.
Add this to config:
exec_always pkill -HUP kanshi || kanshiexec_always is used because kanshi settings might get overwritten when sway config is reloaded.
For kanshi configuration, see tools/kanshi.