starting dbrw config
All checks were successful
/ update-readme (push) Successful in 50s

This commit is contained in:
dim
2024-12-30 11:27:00 +07:00
parent 863253bc74
commit 4c874e960d
45 changed files with 1068 additions and 594 deletions

View File

@@ -13,13 +13,29 @@
listener = [
{
timeout = 600;
timeout = 150; # 2.5min.
on-timeout =
"${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume =
"${pkgs.brightnessctl}/bin/brightnessctl -r"; # monitor backlight restore.
}
{
timeout = 300;
on-timeout = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 660;
on-timeout = "systemctl suspend";
timeout = 430; # 5.5min
on-timeout =
"${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; # screen off when timeout has passed
on-resume =
"${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
}
{
timeout = 960;
on-timeout = "systemctl sleep";
}
];
};