diff options
| author | David Moc <personal@cdatgoose.org> | 2026-05-24 11:48:07 +0200 |
|---|---|---|
| committer | David Moc <personal@cdatgoose.org> | 2026-05-24 11:48:07 +0200 |
| commit | 5fb19f10389b70ee2389755106092a9ef6c64598 (patch) | |
| tree | 969eb0466de581cb14aa09f751a95138620fc720 /polybar/scripts/kb-switch.sh~ | |
Go
Diffstat (limited to 'polybar/scripts/kb-switch.sh~')
| -rwxr-xr-x | polybar/scripts/kb-switch.sh~ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/polybar/scripts/kb-switch.sh~ b/polybar/scripts/kb-switch.sh~ new file mode 100755 index 0000000..69ff036 --- /dev/null +++ b/polybar/scripts/kb-switch.sh~ @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +options="us\nus dvorak\ncs" + +choice=$(echo -e "$options" | dmenu -i -p "Keyboard layout") + +case "$choice" in + "us") + setxkbmap us + ;; + "us dvorak") + setxkbmap us -variant dvorak + ;; + "cs") + setxkbmap cz + ;; +esac |
