1

I have a laptop keyboard with right AltGr, PrintSc and Right CTRL and a MacOS X one with right Super and right Alt.

When using one, I'd like the right ctrl to be the compose key and when using the other one, I'd like the right alt to be the compose key.

Do you know if it is possible to use the XKB options to configure that?

I tried ['ctrl:rctrl_ralt', 'compose:ralt'] but no luck so far.

2
  • To be honest I would really like to be able to set those options with regards to the selected keyboard layout, – Natim Sep 27 '19 at 9:50
  • A current hack is to set ['altwin:swap_lalt_lwin', 'lv3:rwin_switch', 'compose:ralt'] but it just allows me to configure the mac keyboard as expected – Natim Sep 27 '19 at 12:37
0

I ended up adding a couple of aliases to this commands:

Laptop Keyboard

alias xkb-linux-on="gsettings set org.gnome.desktop.input-sources xkb-options \"['compose:rctrl']\""

MacOS Keyboard

 alias xkb-macos-on="gsettings set org.gnome.desktop.input-sources xkb-options \"['altwin:swap_lalt_lwin', 'lv3:rwin_switch', 'compose:ralt']\""

If anybody knows how to run them when switching input-sources, I would be interested.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.