mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
hyprland: fixed incorrect suspend command preventing auto suspend when idle
This commit is contained in:
parent
4f82c8c5bb
commit
8d016e36c1
|
@ -104,7 +104,7 @@
|
||||||
idled =
|
idled =
|
||||||
if config.alyraffauf.desktop.hyprland.autoSuspend
|
if config.alyraffauf.desktop.hyprland.autoSuspend
|
||||||
then ''
|
then ''
|
||||||
${lib.getExe pkgs.swayidle} -w timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r' timeout 300 '${lock}' timeout 330 '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms off' resume '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms on' timeout 900 '${lib.getExe' pkgs.systemd "systemctl"}' before-sleep '${media} pause' before-sleep '${lock}'
|
${lib.getExe pkgs.swayidle} -w timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r' timeout 300 '${lock}' timeout 330 '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms off' resume '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms on' timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' before-sleep '${media} pause' before-sleep '${lock}'
|
||||||
|
|
||||||
''
|
''
|
||||||
else ''
|
else ''
|
||||||
|
|
Loading…
Reference in a new issue