3 # keyboard layout quick switcher; usage:
5 # k .rdp # loads ~/.Xmodmap.rdp
6 # k us # uses stock US layout
7 # k de nodeadkeys # switches to stock German layout
10 x|x.*) noxkb() { true; }; noxmm() { false; } ;;
11 *) noxkb() { false; }; noxmm() { true; } ;;
15 noxkb || setxkbmap "$@"
16 setxkbmap -option grp_led:caps
17 setxkbmap -option caps:none
18 noxmm || xmodmap ~/".Xmodmap$1"