From 5fb19f10389b70ee2389755106092a9ef6c64598 Mon Sep 17 00:00:00 2001 From: David Moc Date: Sun, 24 May 2026 11:48:07 +0200 Subject: Go --- polybar/scripts/kb-switch.sh~ | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 polybar/scripts/kb-switch.sh~ (limited to 'polybar/scripts/kb-switch.sh~') 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 -- cgit v1.2.3