ctucx.git: nixfiles

ctucx' nixfiles

commit 88e53dcdd023b2c1b86a8bd4b96c92bea64bcbb5
parent ef1fca222621a27cedd1b949dcf9f1028d88df4c
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 6 Mar 2022 20:03:10 +0100

programs/{sway,cli/bash}: add 1 sec delay to sleep keybind and shell-alias
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/configurations/programs/cli/bash.nix b/configurations/programs/cli/bash.nix
@@ -39,7 +39,7 @@
 
           "youtube-dl" = "yt-dlp";
 
-          zzz          = "systemctl suspend";
+          zzz          = "sleep 1 && systemctl suspend";
 
           eval-system-config  = "nix-instantiate \"<nixpkgs/nixos>\" -A config.system.build.toplevel -I /etc/nixos/configuration.nix";
           nix-collect-garbage = "sudo nix-collect-garbage";
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -131,6 +131,7 @@
           "${modifier}+Return"        = "exec ${cfg.config.terminal}";
           "${modifier}+Space"         = "exec ${pkgs.wofi}/bin/wofi --style ${./wofi/style.css} --conf ${./wofi/config} --show drun";
           "${modifier}+l"             = "exec ${pkgs.systemd}/bin/loginctl lock-session";
+          "${modifier}+z"             = "exec sleep 1 && systemctl suspend";
 
           "Shift+Print"               = "exec ${pkgs.grim}/bin/grim ~/Pictures/Screenshots/$(date +\"%Y-%m-%d_%H:%m:%S\").png";
           "${modifier}+Shift+Print"   = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" ~/Pictures/Screenshots/$(date +\"%Y-%m-%d_%H:%m:%S\").png";