XMonad: how to bind Super (Win key) + Space to keyboard layout switch?

Geradlus_RU

I used to switch keyboard layout pressing ❖ win+spacebar on Windows 8, and +spacebar on OS X.

However, on Linux I have ❖ win key dedicated to XMonad as modificator key. So, to switch between layouts I have to use alt+⇧ shift.

This was not a problem until I've installed Emacs. Now I'm able to use all meta+shift key combinations, because I have alt as meta (⎋ escape could help, but it's very unhandy).

I think the easiest workaround for this case is to configure ❖ win+space to layout switch combination. Though XMonad by default use this combination to switching layouts, I rarely cycle layouts in both direction, so I will happy to have ❖ win+space for switching keyboard layout, and ❖ win+shift+space to switch XMonad layout. If I could make such configuration I will be able to use alt key as meta in Emacs.

However, I don't know how to make XMonad to use ❖ win+space as keyboard switch combination, being more preciese I don't know is it even possible.

deshtop

All you've got to do is unbind Win-Space (using removeKeys), and create bindings for xmonad-layout switching and keyboard-layout switching (using additionalKeys or additionalKeysP). Details and examples in the documentation. The keyboard-layout switching command can be launched by using spawn from the Core library.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Disable Win+Space keyboard-layout switch in Windows 10

From Dev

Where to change default <Super>+<Space> keyboard switch key by a terminal?

From Dev

Xmonad, how to bind a key to running a shell script?

From Dev

"Super" key shortcut to Activities with second keyboard layout

From Dev

Hold a key to temporarily switch keyboard layout?

From Dev

Hold a key to temporarily switch keyboard layout?

From Dev

xkb: how toggle keyboard layout with win + capslock?

From Dev

How to switch keyboard layout in Openbox using keyboard shortcuts?

From Dev

How to disable super+space key in Unity?

From Dev

How to disable super+space key in Unity?

From Dev

Awesome: keyboard layout switch

From Dev

How to disable Ctrl+Shift keyboard layout switch in Windows 8?

From Dev

How do I disable the ctrl + space hotkey for switching keyboard layout?

From Dev

How to disable keyboard shortcut list on holding Super key?

From Dev

Keyboard layout switch in fedora 31

From Dev

An alternative to the Super key on an old keyboard

From Dev

Super key not working on external keyboard

From Dev

An alternative to the Super key on an old keyboard

From Dev

How to bind the super/mod/windows key to a custom command

From Dev

How do I disable the "Space" Key on the keyboard in Swift?

From Dev

Under "Tweaks > Keyboard & Mouse > Additional Layout Options > Alt/Win key behavior", what does the "Disabled" option mean?

From Dev

Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?

From Dev

how to change keyboard layout in android by pressing Shift key

From Dev

Key Mapping to Switch Keyboard Language?

From Dev

How to bind the Super-key to whiskermenu without breaking Super+Other combinations?

From Dev

Keyboard layout switching key combinations

From Dev

bind Super key to control key Ubuntu 14.04

From Dev

Tkinter Bind method to Space Key

From Dev

Switch keyboard layout for next keystroke only

Related Related

  1. 1

    Disable Win+Space keyboard-layout switch in Windows 10

  2. 2

    Where to change default <Super>+<Space> keyboard switch key by a terminal?

  3. 3

    Xmonad, how to bind a key to running a shell script?

  4. 4

    "Super" key shortcut to Activities with second keyboard layout

  5. 5

    Hold a key to temporarily switch keyboard layout?

  6. 6

    Hold a key to temporarily switch keyboard layout?

  7. 7

    xkb: how toggle keyboard layout with win + capslock?

  8. 8

    How to switch keyboard layout in Openbox using keyboard shortcuts?

  9. 9

    How to disable super+space key in Unity?

  10. 10

    How to disable super+space key in Unity?

  11. 11

    Awesome: keyboard layout switch

  12. 12

    How to disable Ctrl+Shift keyboard layout switch in Windows 8?

  13. 13

    How do I disable the ctrl + space hotkey for switching keyboard layout?

  14. 14

    How to disable keyboard shortcut list on holding Super key?

  15. 15

    Keyboard layout switch in fedora 31

  16. 16

    An alternative to the Super key on an old keyboard

  17. 17

    Super key not working on external keyboard

  18. 18

    An alternative to the Super key on an old keyboard

  19. 19

    How to bind the super/mod/windows key to a custom command

  20. 20

    How do I disable the "Space" Key on the keyboard in Swift?

  21. 21

    Under "Tweaks > Keyboard & Mouse > Additional Layout Options > Alt/Win key behavior", what does the "Disabled" option mean?

  22. 22

    Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?

  23. 23

    how to change keyboard layout in android by pressing Shift key

  24. 24

    Key Mapping to Switch Keyboard Language?

  25. 25

    How to bind the Super-key to whiskermenu without breaking Super+Other combinations?

  26. 26

    Keyboard layout switching key combinations

  27. 27

    bind Super key to control key Ubuntu 14.04

  28. 28

    Tkinter Bind method to Space Key

  29. 29

    Switch keyboard layout for next keystroke only

HotTag

Archive