Sway
- Tiling window manager for Linux
- Drop-in replacement for i3 for Wayland
Set keyboard layout to “dk” for current session only
Section titled “Set keyboard layout to “dk” for current session only”- Example for Danish:
Terminal window swaymsg input type:keyboard xkb_layout "dk"
Set keyboard layout to “dk” for all sessions
Section titled “Set keyboard layout to “dk” for all sessions”mkdir -p ~/.config/environment.decho 'XKB_DEFAULT_LAYOUT=dk' >> ~/.config/environment.d/11-keyboard.confConfigure monitor placement
Section titled “Configure monitor placement”Use kanshi; see Working on Fedora Sway Spin