mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
14 lines
320 B
Bash
Executable File
14 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# layout-toggle.sh
|
|
|
|
if [ -n "$SWAYSOCK" ]; then
|
|
swaymsg input type:keyboard xkb_switch_layout next
|
|
else
|
|
current=$(setxkbmap -query | awk '/layout/{print $2}')
|
|
if [ "$current" = "ch" ]; then
|
|
setxkbmap -layout us -variant workman
|
|
else
|
|
setxkbmap -layout ch -variant de
|
|
fi
|
|
fi |