hypridle fix on non-desktops
This commit is contained in:
parent
a1057f508a
commit
1c73349f55
1 changed files with 3 additions and 3 deletions
|
|
@ -37,17 +37,17 @@ in {
|
||||||
}
|
}
|
||||||
] ++ optionals (!cfg.desktop) [
|
] ++ optionals (!cfg.desktop) [
|
||||||
{
|
{
|
||||||
timeout = toDesktopTimeout 60; # 1 min
|
timeout = 60; # 1 min
|
||||||
on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state
|
on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state
|
||||||
on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state
|
on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = toDesktopTimeout 60; # 1 min
|
timeout = 60; # 1 min
|
||||||
on-timeout = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -s set 0"; # turn off keyboard backlight, save state
|
on-timeout = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -s set 0"; # turn off keyboard backlight, save state
|
||||||
on-resume = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -r"; # restore previous keyboard backlight state
|
on-resume = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -r"; # restore previous keyboard backlight state
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = toDesktopTimeout (60 * 15); # 15 min
|
timeout = 60 * 15; # 15 min
|
||||||
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
|
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
|
||||||
}
|
}
|
||||||
] ++ optional config.modules.desktop.niri.enable {
|
] ++ optional config.modules.desktop.niri.enable {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue