23 lines
282 B
Bash
Executable File
23 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Script to change Xorg layout.
|
|
#
|
|
|
|
# dmenu
|
|
#option=$(echo -e $options | dmenu -i)
|
|
|
|
# rofi emulation of dmenu
|
|
option=$(echo "1) US|2) Colemak" | rofi -dmenu -sep '|' -i)
|
|
|
|
echo $option
|
|
|
|
case $option in
|
|
1*)
|
|
setxkbmap us
|
|
;;
|
|
2*)
|
|
setxkbmap us -variant colemak
|
|
;;
|
|
esac
|