hyprland: sleep 2 before suspend

This commit is contained in:
Aly Raffauf 2024-05-29 20:12:58 -04:00
parent 172f8b6b28
commit 5468b82b64

View file

@ -117,7 +117,7 @@
resume '${hyprctl} dispatch dpms on' \ resume '${hyprctl} dispatch dpms on' \
${ ${
if config.alyraffauf.desktop.hyprland.autoSuspend if config.alyraffauf.desktop.hyprland.autoSuspend
then '' timeout 900 'sleep 2 && ${lib.getExe' pkgs.systemd "systemctl"} suspend' \'' then ''timeout 900 'sleep 2 && ${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
else ''\'' else ''\''
} }
''; '';
@ -353,6 +353,12 @@
bind = ${modifier} SHIFT, 9, movetoworkspace, 9 bind = ${modifier} SHIFT, 9, movetoworkspace, 9
bind = ${modifier} SHIFT, 0, movetoworkspace, 10 bind = ${modifier} SHIFT, 0, movetoworkspace, 10
# Move workspace to another output.
bind = ${modifier} CONTROL SHIFT, Left, movecurrentworkspacetomonitor, l
bind = ${modifier} CONTROL SHIFT, Down, movecurrentworkspacetomonitor, d
bind = ${modifier} CONTROL SHIFT, Up, movecurrentworkspacetomonitor, u
bind = ${modifier} CONTROL SHIFT, Right, movecurrentworkspacetomonitor, r
# Scratchpad show and move # Scratchpad show and move
bind = ${modifier}, S, togglespecialworkspace, magic bind = ${modifier}, S, togglespecialworkspace, magic
bind = ${modifier} SHIFT, S, movetoworkspace, special:magic bind = ${modifier} SHIFT, S, movetoworkspace, special:magic