working on screens and power stuff
This commit is contained in:
parent
ca06918f79
commit
743efa1782
9 changed files with 88 additions and 66 deletions
|
@ -9,40 +9,49 @@
|
|||
before_sleep_cmd = "loginctl lock-session";
|
||||
};
|
||||
|
||||
# battery timers
|
||||
listener = [
|
||||
# battery timers
|
||||
{
|
||||
timeout = "30";
|
||||
on-timeout = "systemd-ac-power || light -O && light -S 0 && light -s razer/0003:1532:02B6.0003/backlight -S 0";
|
||||
on-resume = "systemd-ac-power || light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "120";
|
||||
on-timeout = "systemd-ac-power || loginctl lock-session && niri msg action power-off-monitors";
|
||||
on-timeout = "systemd-ac-power || light -O && loginctl lock-session && niri msg action power-off-monitors";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "300";
|
||||
on-timeout = "systemd-ac-power || loginctl lock-session && systemctl suspend";
|
||||
on-timeout = "systemd-ac-power || light -O && loginctl lock-session && systemctl suspend";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
# ac power timers
|
||||
{
|
||||
timeout = "60";
|
||||
on-timeout = "systemd-ac-power && light -O && light -S 0 && light -s razer/0003:1532:02B6.0003/backlight -S 0";
|
||||
on-resume = "systemd-ac-power && light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{ timeout = "180";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session"; }
|
||||
{
|
||||
timeout = "180";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{ timeout = "300";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session && niri msg action power-off-monitors"; }
|
||||
{
|
||||
timeout = "300";
|
||||
on-timeout = "systemd-ac-power && light -O && loginctl lock-session && niri msg action power-off-monitors";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "900";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session && systemctl suspend";
|
||||
on-timeout = "systemd-ac-power && light -O && loginctl lock-session && systemctl suspend";
|
||||
on-resume = "light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue