more refactor. adding shikane
This commit is contained in:
parent
14ad4cd2c5
commit
7b26c73b59
18 changed files with 851 additions and 764 deletions
|
@ -8,52 +8,41 @@
|
|||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
};
|
||||
# TODO: add monitor shut off timout
|
||||
|
||||
# battery timers
|
||||
listener = [
|
||||
{
|
||||
timeout = 30;
|
||||
on-timeout = "systemd-ac-power || light -S 0";
|
||||
on-resume = "systemd-ac-power || light -I";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "30";
|
||||
on-timeout = "systemd-ac-power || light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power || light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
on-timeout = "systemd-ac-power || light -S 0 && light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power || light -I && light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "120";
|
||||
on-timeout = "systemd-ac-power || systemd-ac-power && loginctl lock-session";
|
||||
on-timeout = "systemd-ac-power || loginctl lock-session && niri msg action power-off-monitors";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "600";
|
||||
on-timeout = "systemd-ac-power || systemctl suspend";
|
||||
timeout = "300";
|
||||
on-timeout = "systemd-ac-power || loginctl lock-session && systemctl suspend";
|
||||
}
|
||||
|
||||
# ac power timers
|
||||
{
|
||||
timeout = "60";
|
||||
on-timeout = "systemd-ac-power && light -S 0";
|
||||
on-resume = "systemd-ac-power && light -I";
|
||||
on-timeout = "systemd-ac-power && light -S 0 && light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power && light -I && light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "60";
|
||||
on-timeout = "systemd-ac-power && light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power && light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
}
|
||||
{ timeout = "180";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session"; }
|
||||
|
||||
{ timeout = "300";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session && niri msg action power-off-monitors"; }
|
||||
|
||||
{
|
||||
timeout = "300";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "1800";
|
||||
on-timeout = "systemd-ac-power && systemctl suspend";
|
||||
timeout = "900";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session && systemctl suspend";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue