mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
added compatibility with sway
This commit is contained in:
10
scripts/keyboard-setup.sh
Executable file
10
scripts/keyboard-setup.sh
Executable 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
|
||||
Reference in New Issue
Block a user