mirror of
https://github.com/jack-something/dmenu-keyboard
synced 2024-11-26 21:00:42 -05:00
13 lines
194 B
Plaintext
13 lines
194 B
Plaintext
|
#!/bin/sh
|
||
|
pgrep -x dmenu && exit
|
||
|
|
||
|
choice=$(echo "gb" | dmenu -i -p "Please type the keymap you wish to use:") || exit 1
|
||
|
|
||
|
if [ -z $choice ]; then
|
||
|
setxkbmap us
|
||
|
|
||
|
|
||
|
else
|
||
|
setxkbmap $choice
|
||
|
fi
|