---
title: Sway
kind: note
description: manual tiling window manager for Wayland
words: 45
readingMinutes: 1
created: '2024-08-19T18:35:41+02:00'
updated: '2024-11-27T13:33:21+01:00'
website: https://swaywm.org/
---
## Link

<https://swaywm.org/>

- Tiling [window manager](/notes/window-managers) for [Linux](/notes/linux)
- Drop-in replacement for [i3](/notes/i3) for <span class="dead-link">Wayland</span>
## FAQ
### Set keyboard layout to "dk" for current session only
- Example for <span class="dead-link">Danish</span>:
	```shell
	swaymsg input type:keyboard xkb_layout "dk"
	```
### Set keyboard layout to "dk" for all sessions
```shell
mkdir -p ~/.config/environment.d
echo 'XKB_DEFAULT_LAYOUT=dk' >> ~/.config/environment.d/11-keyboard.conf
```
### Configure monitor placement
Use `kanshi`; see [Working on Fedora Sway Spin](https://blog.sakuragawa.moe/working-on-fedora-sway-spin/)
