Kainoa Kanter
Kainoa Kanter
Especially now that we have shadows!
As of niri 0.1.7, my screen does sleep on close, but I would also really like a way to automatically run `swaylock` or something like that on lid close.
Here's a bit of a workaround I did -- I modified [this](https://github.com/ThatOneCalculator/redmibook-pro-15s-acpi-sleep-listener/blob/main/lid_event.rs) to be: ```rs use std::process::Command; fn main() { let args: Vec = std::env::args().collect(); if args.len() < 3 {...
I don't actually know how to do this properly with logind lol
Now that it's implemented in smithay, can this be looked at again?
My naïve thought would be something like this, and you could have as many of these as you want. ``` idle { timeout "300" // 300 seconds, could be "5m"...
And that's why I shouldn't write GitHub comments right before going to bed 😆
Although this could work... ``` idle { timeout 300 monitor-off // this could be omitted for a non-monitor-off idle tast run-after { spawn "swaylockniri"; } }
Maybe it could be a part of `output`? ``` output "DP-1" { // Other monitor settings poweroff-timeout 300 // 300 seconds } ```
Please fix, as this lack of functionality can lead to detremental results. Ref: https://gitlab.com/schmiddi-on-mobile/flare/-/issues/202