working on screens and power stuff

This commit is contained in:
Matt Nish-Lapidus 2025-02-16 16:24:34 -05:00
parent 6d3a143ce2
commit 2002da4dcf
14 changed files with 237 additions and 150 deletions

View file

@ -15,25 +15,40 @@
# TODO add screen dimming and test configurations with different monitors
listener = [
# battery timers
{
timeout = "60";
on-timeout = "systemd-ac-power || dim-all-monitors";
on-resume = "brillo -e -u 150000 -I";
}
{
timeout = "120";
on-timeout = "systemd-ac-power || lock-power-off-monitors";
}
{
timeout = "300";
on-timeout = "systemd-ac-power || lock-suspend";
}
# ac power timers
{
timeout = "90";
on-timeout = "systemd-ac-power && dim-all-monitors";
on-resume = "brillo -e -u 150000 -I";
}
{
timeout = "180";
on-timeout = "systemd-ac-power && loginctl lock-session";
}
{
timeout = "200";
on-timeout = "systemd-ac-power && lock-power-off-monitors";
}
{
timeout = "600";
on-timeout = "systemd-ac-power && loginctl lock-session && systemctl suspend";
on-timeout = "systemd-ac-power && lock-suspend";
}
];