From: Oleg Broytman Date: Wed, 5 Jun 2019 20:52:06 +0000 (+0300) Subject: .xinitrc: Switch keyboard layout on both Shifts X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=a34bfb1919bca15f01c6d52ccee09119edc3b7d4 .xinitrc: Switch keyboard layout on both Shifts --- diff --git a/.xinitrc b/.xinitrc index f3daa2a..4a1b23f 100644 --- a/.xinitrc +++ b/.xinitrc @@ -40,9 +40,12 @@ fi # "$OPENWINHOME"/lib/openwin-init # Default OpenWindows tools #fi -# EN/RU, switch on RightAlt, Compose: RightControl, Level3:RightMenu +# EN/RU, switch on RightAlt and both Shifts, +# Compose: RightControl, Level3:RightMenu. setxkbmap -layout '' -variant '' -option '' -setxkbmap -layout 'us,ru' -variant ',common' -option 'grp:toggle,compose:rctrl,lv3:menu_switch' +setxkbmap -layout 'us,ru' -variant ',common' -option 'grp:toggle,grp:shifts_toggle,compose:rctrl,lv3:menu_switch' +# Terminate X session on Ctrl+Alt+Backspace +#setxkbmap -option terminate:ctrl_alt_bksp # adjust key bindings (if any) #[ -f "$HOME"/lib/X11/.Xmodmap ] && xmodmap "$HOME"/lib/X11/.Xmodmap