diff --git a/.local/bin/langselect b/.local/bin/langselect new file mode 100644 index 00000000..b3a5bdb7 --- /dev/null +++ b/.local/bin/langselect @@ -0,0 +1,7 @@ +#!/bin/sh +# requirements: dmenu, xorg-setxkbmap +choices="us\\nfr\\nua\\nru" +chosen=$(echo -e "$choices" | dmenu -i ) +s=$(echo "$chosen" | sed "s/.*; //") +setxkbmap $s +notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"