waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

[Question] Using key in mode when it also part of a chord #206

Open heyzec opened 1 year ago

heyzec commented 1 year ago

I would like to use the Super+Escape key to enter a mode while using Escape to exit the mode.

My first approach is to do:

super + escape
    @enter system

mode system
a
    notify-send Hello World
escape
    @escape
endmode

However, if the Super key is released before the Enter key, the mode is exited before immediately on enter. Hence, I tried

super + @escape
    @enter system

mode system
a
    notify-send Hello World
escape
    @escape
endmode

But now, the mode does not enter at all.

Shinyzenith commented 1 year ago

I'm sorry to hear that you're having trouble with our chord system. I do not use the chord system nor did I implement it so I'll wait for @EdenQwQ to take a look at it when they're free.