sway

Blogpost von Michael Stapelberg

Keybindings

- https://i3wm.org/docs/userguide.html#keybindings

Display Setup

- `wdisplays` is a nice tool to setup screens
-

Screensharing

- https://mozilla.github.io/webrtc-landing/gum_test.html
- https://www.reddit.com/r/swaywm/comments/fq1qoe/how_to_use_xdgdesktopportalwlr_to_share_the_screen/
-

Duplicate Screen

- [wl-mirror](https://github.com/Ferdi265/wl-mirror)
- install Debian package
- install mirror script
- `wget https://raw.githubusercontent.com/Ferdi265/wl-mirror/main/scripts/wl-present`
wget https://github.com/Ferdi265/wl-mirror/releases/download/v0.12.2/wl-mirror_0.12.2-1_amd64_ubuntu-jammy.deb
sudo dpkg -i Downloads/wl-mirror_0.12.2-1_amd64_ubuntu-jammy.deb

wget https://raw.githubusercontent.com/Ferdi265/wl-mirror/main/scripts/wl-present
chmod 755 ./wl-present
sudo cp wl-present /usr/local/bin/

Swayidle Idlemanager

swayidle -w \
	timeout 300 'swaylock -f -c 000000' \
	timeout 600 'swaymsg "output * dpms off"' \
		 resume 'swaymsg "output * dpms on"' \
	before-sleep 'swaylock -f -c 000000'

swayidle -w \
	timeout 300 'swaylock -f -c 000000' \
	timeout 305 'swaymsg "output * dpms off"' \
		 resume 'swaymsg "output * dpms on"' \
	before-sleep 'swaylock -f -c 000000'

swayidle -w \
	timeout 300 'swaymsg "output * dpms off"' \
		 resume 'swaymsg "output * dpms on"' \
	before-sleep 'swaylock -f -c 6c6c93'
for_window [class=".*"] inhibit_idle fullscreen
for_window [app_id=".*"] inhibit_idle fullscreen

Switch in waybar: https://github.com/EndeavourOS-Community-Editions/sway/blob/main/.config/waybar/config

Darkmode

gsettings get org.gnome.desktop.interface gtk-theme
'Yaru'
gsettings set org.gnome.desktop.interface gtk-theme Arc-Dark

Neovim:

:set background=light
:set background=dark