Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Description: Switch input language by Caps Lock
- --- ./liveinit~ 2016-01-17 11:38:26.243958975 +0300
- +++ ./liveinit 2016-01-17 11:46:24.732937759 +0300
- @@ -387,7 +387,18 @@
- chmod 755 /mnt/overlay/etc/rc.d/rc.keymap
- # Set a usable keyboard mapping in X.Org, derived from the console map:
- mkdir -p /mnt/overlay/etc/X11/xorg.conf.d
- - cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
- + case "$(echo $KEYMAP |cut -c1-2)" in
- + ru) cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
- +Section "InputClass"
- + Identifier "keyboard-all"
- + Driver "evdev"
- + Option "XkbLayout" "us,ru"
- + Option "XkbOptions" "grp:caps_toggle,grp_led:caps"
- + MatchIsKeyboard "on"
- +EndSection
- +EOT
- + ;;
- + *) cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
- Section "InputClass"
- Identifier "keyboard-all"
- Driver "evdev"
- @@ -395,6 +406,8 @@
- MatchIsKeyboard "on"
- EndSection
- EOT
- + ;;
- + esac
- fi
- if [ ! -z "$LOCALE" ]; then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement