As I suspected, I could not let go of this. I did some more research on the subject of my
previous post about this. Then I made a slightly different change to the keyboard section of /etc/X11/xorg.conf:
Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc101" Option "XkbLayout" "us,us(intl)" Option "XkbOptions" "grp:lwin_toggle" # In the last line above, replace "lwin_switch" by "lwin_toggle" EndSection
This way the left windows key is simply a toggle between the two keyboards; I do not have to hold it down while typing the accents. I got this from the Gentoo Wiki:
- grp:switch — toggle using right alt key, but only until unpressed
- grp:lswitch — Left Alt key switches group while pressed
- grp:lwin_switch — Left Win-key switches group while pressed
- grp:rwin_switch — Right Win-key switches group while pressed
- grp:win_switch — Both Win-keys switch group while pressed
- grp:toggle — Right Alt key changes group
- grp:lalt_toggle — Left Alt key changes group
- grp:caps_toggle — Caps Lock key changes group
- grp:shift_caps_toggle — Shift+CapsLock changes group
- grp:shift_toggle — Both Shift keys together change group
- grp:alts_toggle — Both Alt keys together change group
- grp:ctrls_toggle — Both Ctrl keys together change group
- grp:ctrl_shift_toggle — Control+Shift changes group
- grp:ctrl_alt_toggle — Alt+Control changes group
- grp:alt_shift_toggle — Alt+Shift changes group
- grp:menu_toggle — toggle using “context menu” key on Windows keyboards
- grp:lwin_toggle — toggle using left win key on Windows keyboards
- grp:rwin_toggle — toggle using right win key on Windows keyboards
- grp:lshift_toggle — Left Shift key changes group
- grp:rshift_toggle — Right Shift key changes group
- grp:lctrl_toggle — Left Ctrl key changes group
- grp:rctrl_toggle — Right Ctrl key changes group
Possible signs using grp_led:
- grp_led — use keyboard leds to indicate group change
- grp_led:num — Num_Lock led indicates group change
- grp_led:caps — Caps_Lock led indicates group change
- grp_led:scroll — Scroll_Lock led indicates group change
if you have problems with setting up your keyboard, /etc/X11/xkb/README.config will be most helpful for you, so make sure to read that file
I could change the line
Option "XkbLayout" "us,us(intl)"
to
Option "XkbLayout" "us,us(intl),ru"
which would include a Russian (Cyrillic) keyboard in the toggle rotation. This is about 40 years too late. When I was taking Russian back in college I often wished I had a Russian typewriter. I am sure that my professors, who had to contend with my handwriting, also wished that I had had one.