From 1844988bf20379465c2d42f4283473604f23f9bd Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 10 Jun 2024 00:03:17 +0200 Subject: [PATCH] Improve formatting --- modules/home/hyprland/keybinds.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/home/hyprland/keybinds.nix b/modules/home/hyprland/keybinds.nix index 5712067..3d71d63 100644 --- a/modules/home/hyprland/keybinds.nix +++ b/modules/home/hyprland/keybinds.nix @@ -48,10 +48,14 @@ bind = SUPER SHIFT, M, movetoworkspace, special:minimize bind = SUPER SHIFT, M, togglespecialworkspace, minimize - # Switch workspace ${lib.concatMapStringsSep "\n" (n: '' + # Switch workspace bind = SUPER, ${toString n}, focusworkspaceoncurrentmonitor, ${toString n} bind = SUPER SHIFT, ${toString n}, movetoworkspacesilent, ${toString n} + + # Escape special workspace + bind = SUPER, ${toString n}, togglespecialworkspace, blank + bind = SUPER, ${toString n}, togglespecialworkspace, blank '') (lib.range 1 9)} # Scroll through workspaces @@ -106,14 +110,6 @@ bind = , Print, exec, grimblast --notify --freeze copysave output bind = SHIFT, Print, exec, grimblast --notify --freeze copysave area - # Escape special workspace - ${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 bind = SUPER , X, togglespecialworkspace, scratchpad