From bf0faf55c0b1f2fa0aacf6c5ac4abbaa727d1d40 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 20 May 2024 16:09:10 +0200 Subject: [PATCH] Exit special workspace when switching workspace --- modules/home/de/hyprland/keybinds.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/home/de/hyprland/keybinds.nix b/modules/home/de/hyprland/keybinds.nix index edf2e89..6b250c9 100644 --- a/modules/home/de/hyprland/keybinds.nix +++ b/modules/home/de/hyprland/keybinds.nix @@ -54,11 +54,11 @@ bind = SUPER SHIFT, M, togglespecialworkspace, minimize # Switch workspace - ${lib.concatMapStringsSep "\n" (n: "bind=SUPER, ${toString n}, workspace, ${toString n}") ( + ${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, workspace, ${toString n}") ( lib.range 1 9 )} ${lib.concatMapStringsSep "\n" ( - n: "bind=SUPER:SHIFT, ${toString n}, movetoworkspacesilent, ${toString n}" + n: "bind = SUPER SHIFT, ${toString n}, movetoworkspacesilent, ${toString n}" ) (lib.range 1 9)} # Scroll through workspaces @@ -110,8 +110,12 @@ bind = SHIFT, Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave area # Escape special workspace - bind = SUPER, ESCAPE, togglespecialworkspace, blank - bind = SUPER, ESCAPE, togglespecialworkspace, blank + ${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, togglespecialworkspace, blank") ( + lib.range 1 9 + )} + ${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, togglespecialworkspace, blank") ( + lib.range 1 9 + )} # Scratchpad workspace workspace = special:scratchpad, gapsout:30