langselect script

as requested, this version offers more keyboard layouts to select from
This commit is contained in:
BertramMiller 2020-05-16 01:34:34 -04:00 committed by GitHub
parent 4d7232a85f
commit 02009db96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
#!/bin/sh
# requirements: dmenu, xorg-setxkbmap
choices="us\\nfr\\nua\\nru"
chosen=$(echo -e "$choices" | dmenu -i )
chosen=$(localectl list-x11-keymap-layouts | dmenu -i )
s=$(echo "$chosen" | sed "s/.*; //")
setxkbmap $s
notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"