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

Add example to config describing how to power off monitors after locking #856

Open
Hofer-Julian opened this issue Dec 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Hofer-Julian
Copy link

With the current default behavior, Mod + Alt + L opens swaylock, but doesn't power off monitors. The config should include a commented out example showing how to add the power-off after logging out.

@YaLTeR YaLTeR added the enhancement New feature or request label Dec 10, 2024
@BRS5672023
Copy link

Actually I think this might be the desired behavior.. One can add a rule in swayidle so that if swaylock is running, then after some time the screen is turned off. For example, I'm using the following swayidle config:

timeout 900 'pidof swaylock || swaylock -f'
timeout 960 'niri msg action power-off-monitors'
timeout 60 'pidof swaylock && niri msg action power-off-monitors'
before-sleep 'pidof swaylock || swaylock -f'

@YaLTeR
Copy link
Owner

YaLTeR commented Dec 11, 2024

Oh, that's an interesting way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants