Lock session on screen blanking

This commit is contained in:
Ian Douglas Scott 2024-10-30 13:02:46 -07:00
parent a45b68f0cf
commit 7a20c88896
2 changed files with 15 additions and 0 deletions

View file

@ -148,6 +148,16 @@ impl State {
}
}
// Fade surfaces on all outputs have finished fading out
fn fade_done(&mut self) {
if let Some(command) = self
.system_actions
.get(&shortcuts::action::System::LockScreen)
{
crate::run_command(command.to_string());
}
}
fn update_suspend_idle(&mut self, is_idle: bool) {
if is_idle {
// TODO: Make command configurable