rvaiya / keyd

A key remapping daemon for linux.
MIT License
2.88k stars 170 forks source link

Bind longpress `leftctrl` to `hyper`, one hit `leftctrl` to capslock not work. #581

Closed eval-exec closed 1 year ago

eval-exec commented 1 year ago

I want:

  1. bind long press capslock to control
  2. bind one hit capslock to esc
  3. bind long press leftctrl to hyper (C-M-S-A)
  4. bind one hit leftctrl to trigger capslock

1 and 2 work well, but 3 and 4 not work. When I long press leftctrl, it's still leftctrl, when I short hit leftctrl is's leftctrl also.

My configuration is:

[main]
capslock=overload(control, esc)
leftctrl=overload(hyper, capslock)

[hyper:C-M-S-A]

Do you think my configuration is wrong?

nsbgn commented 1 year ago

Iirc, leftctrl should be leftcontrol (cf. keyd monitor). Looks good otherwise.

eval-exec commented 1 year ago

Iirc, leftctrl should be leftcontrol (cf. keyd monitor). Looks good otherwise.

Thank you, it works well after I changed to leftcontrol :smile: