From 0cc8e70b4bde8a3a87803a0a7a313000c5259c10 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 26 Mar 2024 14:43:47 -0400 Subject: [PATCH] hyprland: add hyprgnome for gnome-like workspace switching --- home/hypr/default.nix | 1 + home/hypr/hyprland.conf | 51 +++++++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/home/hypr/default.nix b/home/hypr/default.nix index 67d4a03f..99a2f2b4 100644 --- a/home/hypr/default.nix +++ b/home/hypr/default.nix @@ -8,6 +8,7 @@ hyprcursor hypridle hyprlock + hyprnome hyprpaper hyprshade hyprshot diff --git a/home/hypr/hyprland.conf b/home/hypr/hyprland.conf index e194b1f4..6faa174a 100644 --- a/home/hypr/hyprland.conf +++ b/home/hypr/hyprland.conf @@ -183,29 +183,36 @@ bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 +# Gnome-like workspaces. +bind = $mainMod, 1, exec, hyprnome --previous +bind = $mainMod, 2, exec, hyprnome +bind = $mainMod SHIFT, 1, exec, hyprnome --previous --move +bind = $mainMod SHIFT, 2, exec, hyprnome --move + +# # Switch workspaces with mainMod + [0-9] +# bind = $mainMod, 1, workspace, 1 +# bind = $mainMod, 2, workspace, 2 +# bind = $mainMod, 3, workspace, 3 +# bind = $mainMod, 4, workspace, 4 +# bind = $mainMod, 5, workspace, 5 +# bind = $mainMod, 6, workspace, 6 +# bind = $mainMod, 7, workspace, 7 +# bind = $mainMod, 8, workspace, 8 +# bind = $mainMod, 9, workspace, 9 +# bind = $mainMod, 0, workspace, 10 + +# # Move active window to a workspace with mainMod + SHIFT + [0-9] +# bind = $mainMod SHIFT, 1, movetoworkspace, 1 +# bind = $mainMod SHIFT, 2, movetoworkspace, 2 +# bind = $mainMod SHIFT, 3, movetoworkspace, 3 +# bind = $mainMod SHIFT, 4, movetoworkspace, 4 +# bind = $mainMod SHIFT, 5, movetoworkspace, 5 +# bind = $mainMod SHIFT, 6, movetoworkspace, 6 +# bind = $mainMod SHIFT, 7, movetoworkspace, 7 +# bind = $mainMod SHIFT, 8, movetoworkspace, 8 +# bind = $mainMod SHIFT, 9, movetoworkspace, 9 +# bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic