S
S
syxoi2016-06-13 07:50:29
linux
syxoi, 2016-06-13 07:50:29

How to switch the layout on the Super keys on i3?

I read on habré that you can set up switching layouts in i3 wm in this way

setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle"

But here's how to set up switching on the left and right Super keys? And then I got used to it all the time, but here I can’t set it up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-06-13
@sim3x

Double clicking will not work through setxkbmap
Separately - you can
unix.stackexchange.com/questions/45447/other-than-...
man xkeyboard-config

.
   ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   │Option                      Description                                                                    │
   ├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤
   │grp:switch                  Right Alt (while pressed)                                                      │
   │grp:lswitch                 Left Alt (while pressed)                                                       │
   │grp:lwin_switch             Left Win (while pressed)                                                       │
   │grp:rwin_switch             Right Win (while pressed)                                                      │
   │grp:win_switch              Any Win key (while pressed)                                                    │
   │grp:caps_switch             Caps Lock (while pressed), Alt+Caps Lock does the original capslock action     │
   │grp:rctrl_switch            Right Ctrl (while pressed)                                                     │
   │grp:toggle                  Right Alt                                                                      │
   │grp:lalt_toggle             Left Alt                                                                       │
   │grp:caps_toggle             Caps Lock                                                                      │
   │grp:shift_caps_toggle       Shift+Caps Lock                                                                │
   │grp:shift_caps_switch       Caps Lock (to first layout), Shift+Caps Lock (to last layout)                  │
   │grp:win_menu_switch         Left Win (to first layout), Right Win/Menu (to last layout)                    │
   │grp:lctrl_rctrl_switch      Left Ctrl (to first layout), Right Ctrl (to last layout)                       │
   │grp:alt_caps_toggle         Alt+Caps Lock                                                                  │
   │grp:shifts_toggle           Both Shift keys together                                                       │
   │grp:alts_toggle             Both Alt keys together                                                         │
   │grp:ctrls_toggle            Both Ctrl keys together                                                        │
   │grp:ctrl_shift_toggle       Ctrl+Shift                                                                     │
   │grp:lctrl_lshift_toggle     Left Ctrl+Left Shift                                                           │
   │grp:rctrl_rshift_toggle     Right Ctrl+Right Shift                                                         │
   │grp:ctrl_alt_toggle         Alt+Ctrl                                                                       │
   │grp:alt_shift_toggle        Alt+Shift                                                                      │
   │grp:lalt_lshift_toggle      Left Alt+Left Shift                                                            │
   │grp:alt_space_toggle        Alt+Space                                                                      │
   │grp:menu_toggle             Menu                                                                           │
   │grp:lwin_toggle             Left Win                                                                       │
   │grp:rwin_toggle             Right Win                                                                      │
   │grp:lshift_toggle           Left Shift                                                                     │
   │grp:rshift_toggle           Right Shift                                                                    │
   │grp:lctrl_toggle            Left Ctrl                                                                      │
   │grp:rctrl_toggle            Right Ctrl                                                                     │
   │grp:sclk_toggle             Scroll Lock                                                                    │
   │grp:lctrl_lwin_rctrl_menu   LeftCtrl+LeftWin (to first layout), RightCtrl+Menu (to second layout)          │
   │                                                                                                           │
   └───────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question