-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeouts are handled in the "wrong" order with SIGUSR1 #54
Comments
Right now the order is undefined. What would be the "right behaviour"?
|
I would expect it to be sorted by timeout value. |
I would also expect them to be sorted by timeout value. |
I'd also expect them to be handled by timeout value, the same way they are handled when the computer is left idle. I think it would be (and is) weird that timeouts are handled differently between being idle and SIGUSR1. If desired, I can try to put up a pull request for this, but I'd like to do so only if there is a chance it will be merged. |
Maybe it can be as simple as reversing a list insertion order ( |
This would allow for sorting by order in CLI, right? Just want to confirm I understand what you're saying. Either way, I think having some defined order would be a nice improvement. If sorting by CLI is easiest, then I think that's a fine solution. |
Try executing pkill twice:
|
When enabling idle state through with SIGUSR1 (
pkill -USR1 swayidle
), the events are processed in the reversed order than if they are activated through the regular timeout.Take for example the following configuration:
Normally, first (after 5min) the screen gets locked by swaylock(-blur), and then (after 10min) the screen gets blanked.
With USR1, these commands are executed in the opposite order: First the screen gets blanked, then it gets locked.
This is a problem in this case, because
swaylock-blur
needs the display to generate the lock image forswaylock
.Is this behavior intentional?
A workaround would be to use
timeout 600 'sh -c \'sleep 3 && swaymsg "output * dpms off"\'&'
, but this seems to be buggy (the display doesn't turn on anymore).The text was updated successfully, but these errors were encountered: