diff options
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 |
