Closed xircon closed 2 years ago
This is a known bug, we have implemented chords in the config but daemon doesn't support it yet. Eden, who is working on it is currently sick so it'll be implemented as soon as they're back!
@xircon would you mind trying out the new branch where we implemented a new feature called modes
, which is supposed to work similar to chords
but with a greater readability and functionality.
The basic syntax of key modes:
# the default mode is `normal` mode, which is always on the bottom of the mode stack
super + m
# commands starting with `@` are internal commands. Internal commands can be combined with normal commands with `&&`
# @enter will push a mode into the mode stack
@enter music && echo music > .swhkd_mode
mode music # define a mode with the `mode` statement
super + {n,p,space}
mpc {next,prev,pause}
q
@escape # an internal command to pop the current mode out of the mode stack
endmode # end a mode definition with `endmode`
Seems to work OK, need to get my head around it, will have some questions :smile: First one:
@enter music && echo music > .swhkd_mode This is set, but never unset? The file always contains music.
KP_Add & KP_Subtract don't work as keys.
Thanks for your tests
echo normal > .swhkd_mode
after the @escape
Seems to work OK, need to get my head around it, will have some questions smile First one:
- @Enter music && echo music > .swhkd_mode This is set, but never unset? The file always contains music.
- KP_Add & KP_Subtract don't work as keys.
Hi kpsubtract and kpplusminus exists, can you try binding them?
@Shinyzenith - kpminus works for the "-" key (numeric keypad), kpplusminus is valid, but does nothing as do all combinations I invented which all error :smile:
Chords should work now, if you face any issue then please make a new ticket 😁.
Version Information:
uname -a
) Linux xircon-w6567sz 5.16.16-zen1-1-zen #1 ZEN SMP PREEMPT Mon, 21 Mar 2022 22:59:42 +0000 x86_64 GNU/Linuxswhkd -V
) swhkd 1.1.7Describe the bug: Chords not working
Expected behavior: Should work as it does in sxhkd.
Actual behavior: See error swhkd does not load.