added mod + space for toggeling keyboard layouts

This commit is contained in:
Jürg Hallenbarter
2026-02-10 09:23:11 +00:00
parent c114324dfc
commit 8ff6123893
2 changed files with 7 additions and 17 deletions

View File

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