You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distribution Information ( run uname -a ) Linux 5.15.61 #1-NixOS SMP Wed Aug 17 12:24:32 UTC 2022 x86_64 GNU/Linux
swhkd version ( swhkd -V ) swhkd 1.2.1
Describe the bug:
I'm trying to set up a simple config for a push-to-talk-style binding. I want to run a command when I press a button, and a command when I release that same button. swhks appears to only be running one of the two key down/up events that are bound.
Expected behavior:
swhks should run both the "activate" command as soon as I press the F18 key, and the "deactivate" command as soon as I release the F18 key.
Actual behavior:
swhks only runs the "activate" command.
To Reproduce:
My config:
f18
sh ~/discord-ptt.sh activate
@f18
sh ~/discord-ptt.sh deactivate
Any commands would work, of course - I'm just adding my own for completeness.
Additional information:
I haven't had much of a dig through the code, so it's entirely possible I'm doing something wrong or missed a flag.
The text was updated successfully, but these errors were encountered:
This is actually an issue in swhkd not swkhs, my bad. Looks like the hotkey handler loop exits too early. If I change line 352 in swhkd/daemon.rs to be continue; rather than break;, my release key starts working as expected.
Version Information:
uname -a
) Linux 5.15.61 #1-NixOS SMP Wed Aug 17 12:24:32 UTC 2022 x86_64 GNU/Linuxswhkd -V
) swhkd 1.2.1Describe the bug:
I'm trying to set up a simple config for a push-to-talk-style binding. I want to run a command when I press a button, and a command when I release that same button. swhks appears to only be running one of the two key down/up events that are bound.
Expected behavior:
swhks should run both the "activate" command as soon as I press the F18 key, and the "deactivate" command as soon as I release the F18 key.
Actual behavior:
swhks only runs the "activate" command.
To Reproduce:
My config:
Any commands would work, of course - I'm just adding my own for completeness.
Additional information:
I haven't had much of a dig through the code, so it's entirely possible I'm doing something wrong or missed a flag.
The text was updated successfully, but these errors were encountered: