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

Ability to lock screen after period of idleness. #1359

Closed
tmccombs opened this issue Sep 20, 2017 · 4 comments
Closed

Ability to lock screen after period of idleness. #1359

tmccombs opened this issue Sep 20, 2017 · 4 comments

Comments

@tmccombs
Copy link
Contributor

The actual screen locking probably doesn't belong in sway, but sway should somehow report activity/idleness, so a dameon can watch for idleness and take some action (such as locking the screen, or suspending) after a period of idleness.

@Timidger
Copy link
Member

While I admit to not knowing the sway / i3 api off the top of my head, wouldn't it be better for this to be doable using a user script? Check for user input / event input and if it hadn't happened in n seconds lock the screen.

@ascent12
Copy link
Member

This is related to #541, which has a bounty on it.

@tmccombs
Copy link
Contributor Author

Check for user input / event input and if it hadn't happened in n seconds

I'm not super familiar with wayland, but from what I can tell there isn't a way to do that. What I'm really asking for is a way to ask sway when the last user input happened, so that a script like that is possible.

One option could be to have sway tell logind when the session is active or idle, and have systemd handle actually locking, suspending, etc. Of course, that doesn't work on systems without logind.

@ddevault
Copy link
Contributor

#541

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

4 participants