added compatibility with sway

This commit is contained in:
Jürg Hallenbarter
2026-02-09 11:42:36 +00:00
parent 91b07e4589
commit 1a8b6dc83b
12 changed files with 341 additions and 132 deletions

10
scripts/keyboard-setup.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -n "$SWAYSOCK" ]; then
# Sway
swaymsg input "*" xkb_layout "ch"
swaymsg input "*" xkb_variant "de"
else
# i3
setxkbmap -layout ch -variant de
fi