more refactor. adding shikane

This commit is contained in:
Matt Nish-Lapidus 2025-02-06 13:56:58 -05:00
parent 14ad4cd2c5
commit 7b26c73b59
18 changed files with 851 additions and 764 deletions

View file

@ -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";
}
];