wez / evremap

A keyboard input remapper for Linux/Wayland systems, written by @wez
MIT License
384 stars 31 forks source link

Add Hyper_L #1

Closed grimnight closed 2 years ago

grimnight commented 3 years ago

Would it be possible to add Hyper_L? I would like to use Hyper as Mod3 in Sway.

Something like:

[[dual_role]]
input = "KEY_CAPSLOCK"
hold = ["KEY_LEFTHYPER"]
tap = ["KEY_ESC"]
wez commented 3 years ago

At the layer that the underlying evdev stuff works in linux, there isn't a concept of a physical hyper key.

https://unix.stackexchange.com/questions/614572/is-it-possible-to-configure-the-hyper-modifier-key-on-wayland suggests that you want to take multiple mods together in order to be recognized downstream as hyper.

So you'd probably want:

[[dual_role]]
input = "KEY_CAPSLOCK"
hold = ["KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_LEFTALT"]
tap = ["KEY_ESC"]