dotfiles/.config/awesome/layout.sh

23 lines
312 B
Bash
Raw Normal View History

2020-08-04 16:43:33 +08:00
#!/bin/bash
# dmenu script to change Xorg layout
options="
1) US\n\
2) Colemak
"
# dmenu
#option=$(echo -e $options | dmenu -i)
# rofi emulation of dmenu
option=$(echo "1) a|2) colemak" | rofi -dmenu -sep '|' -i)
2020-08-04 16:43:33 +08:00
echo $option
case $option in
1*)
setxkbmap us
;;
2*)
setxkbmap us -variant colemak
;;
esac