ubuntu_remap_super_key
I have a keyboard without the "Win" key.
Reassigned this function to "Alt"
Default:
$ xmodmap -pm xmodmap: up to 4 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) mod2 Num_Lock (0x4d) mod3 mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
Remove "Super Key" from "mod4"
$ xmodmap -e "remove mod4 = Super_L"
$ xmodmap -e "remove mod4 = Super_R"
$ xmodmap -pm xmodmap: up to 3 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) mod2 Num_Lock (0x4d) mod3 mod4 Hyper_L (0xcf) mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
Add "Super_L" to "mod1"
xmodmap -e "add mod1 = Super_L"
$ xmodmap -pm xmodmap: up to 5 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R (0x6c), Super_L (0x85), Meta_L (0xcd), Super_L (0xce) mod2 Num_Lock (0x4d) mod3 mod4 Hyper_L (0xcf) mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
Why?
Ctrl
+Alt
+right_arrow
Ctrl
+Alt
+left_arrow
https://habr.com/ru/post/222285/
Только авторизованные участники могут оставлять комментарии.