From 5468b82b6498f164e6e7aeef2c6480668c8f3134 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 29 May 2024 20:12:58 -0400 Subject: [PATCH] hyprland: sleep 2 before suspend --- homeManagerModules/desktop/hyprland/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/hyprland/default.nix b/homeManagerModules/desktop/hyprland/default.nix index be44a7a8..4ffebf60 100644 --- a/homeManagerModules/desktop/hyprland/default.nix +++ b/homeManagerModules/desktop/hyprland/default.nix @@ -117,7 +117,7 @@ resume '${hyprctl} dispatch dpms on' \ ${ 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 ''\'' } ''; @@ -353,6 +353,12 @@ bind = ${modifier} SHIFT, 9, movetoworkspace, 9 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 bind = ${modifier}, S, togglespecialworkspace, magic bind = ${modifier} SHIFT, S, movetoworkspace, special:magic