Skip to content
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

Postpone resuming after wake up #72

Open
knezi opened this issue Jun 17, 2020 · 0 comments
Open

Postpone resuming after wake up #72

knezi opened this issue Jun 17, 2020 · 0 comments

Comments

@knezi
Copy link

knezi commented Jun 17, 2020

Not sure if this is desirable, but when using:

swayidle -w timeout 180 'swaymsg "output * dpms off"' \
                   resume 'swaymsg "output * dpms on"'`

and the laptop is idle, when you hit the sleep button or close the lid, swayidle resumes before going to sleep. This results in a blink of the screen.

Another use case is for tracking non-idle time: I have a simple script for timer, which is paused/resumed on swayidle events. When I close the lid, the timer is started.

Enhancement:

postpone resuming after waking up if the event causing resume causes sleep as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant