swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

[ISSUE] Swayidle doesn't recognize resume when pressing and holding a key #140

Open Biasio opened 1 year ago

Biasio commented 1 year ago

Hi, I have noticed something that I assume it isn't the wanted behaviour: Suppose I have a command like this: swayidle timeout 5 "command 1" resume "command 2" if i press any key the command 2 will execute normally but if I press it and hold it for more than the timeout it triggers the timeout command and when I release the key it executes the resume command. I don' know if this it's desired but if I hold a key I assume I'm at the PC and so the timeout clock shouldn't be started while i'm holding a key, but should be restarted when I release it, or not?

Sorry for my bad english