From 1299bc9d412c57d8f4b393e0f763c7932d141d97 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 15 Apr 2026 10:59:01 -0700 Subject: [PATCH] fix: keep Hyprland workspace focus local --- dotfiles/config/hypr/hyprland.conf | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/dotfiles/config/hypr/hyprland.conf b/dotfiles/config/hypr/hyprland.conf index 0194a11d..524b907a 100644 --- a/dotfiles/config/hypr/hyprland.conf +++ b/dotfiles/config/hypr/hyprland.conf @@ -402,16 +402,16 @@ submap = reset # WORKSPACE CONTROL # ----------------------------------------------------------------------------- -# Switch workspaces (1-9 only) -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 +# Switch workspaces (1-9 only) on the currently focused monitor. +bind = $mainMod, 1, focusworkspaceoncurrentmonitor, 1 +bind = $mainMod, 2, focusworkspaceoncurrentmonitor, 2 +bind = $mainMod, 3, focusworkspaceoncurrentmonitor, 3 +bind = $mainMod, 4, focusworkspaceoncurrentmonitor, 4 +bind = $mainMod, 5, focusworkspaceoncurrentmonitor, 5 +bind = $mainMod, 6, focusworkspaceoncurrentmonitor, 6 +bind = $mainMod, 7, focusworkspaceoncurrentmonitor, 7 +bind = $mainMod, 8, focusworkspaceoncurrentmonitor, 8 +bind = $mainMod, 9, focusworkspaceoncurrentmonitor, 9 # Move window to workspace bind = $mainMod SHIFT, 1, movetoworkspace, 1 @@ -426,23 +426,23 @@ bind = $mainMod SHIFT, 9, movetoworkspace, 9 # Move and follow to workspace (like XMonad's shiftThenView) bind = $mainMod CTRL, 1, movetoworkspacesilent, 1 -bind = $mainMod CTRL, 1, workspace, 1 +bind = $mainMod CTRL, 1, focusworkspaceoncurrentmonitor, 1 bind = $mainMod CTRL, 2, movetoworkspacesilent, 2 -bind = $mainMod CTRL, 2, workspace, 2 +bind = $mainMod CTRL, 2, focusworkspaceoncurrentmonitor, 2 bind = $mainMod CTRL, 3, movetoworkspacesilent, 3 -bind = $mainMod CTRL, 3, workspace, 3 +bind = $mainMod CTRL, 3, focusworkspaceoncurrentmonitor, 3 bind = $mainMod CTRL, 4, movetoworkspacesilent, 4 -bind = $mainMod CTRL, 4, workspace, 4 +bind = $mainMod CTRL, 4, focusworkspaceoncurrentmonitor, 4 bind = $mainMod CTRL, 5, movetoworkspacesilent, 5 -bind = $mainMod CTRL, 5, workspace, 5 +bind = $mainMod CTRL, 5, focusworkspaceoncurrentmonitor, 5 bind = $mainMod CTRL, 6, movetoworkspacesilent, 6 -bind = $mainMod CTRL, 6, workspace, 6 +bind = $mainMod CTRL, 6, focusworkspaceoncurrentmonitor, 6 bind = $mainMod CTRL, 7, movetoworkspacesilent, 7 -bind = $mainMod CTRL, 7, workspace, 7 +bind = $mainMod CTRL, 7, focusworkspaceoncurrentmonitor, 7 bind = $mainMod CTRL, 8, movetoworkspacesilent, 8 -bind = $mainMod CTRL, 8, workspace, 8 +bind = $mainMod CTRL, 8, focusworkspaceoncurrentmonitor, 8 bind = $mainMod CTRL, 9, movetoworkspacesilent, 9 -bind = $mainMod CTRL, 9, workspace, 9 +bind = $mainMod CTRL, 9, focusworkspaceoncurrentmonitor, 9 # Toggle to the previous workspace on the current monitor using Hyprland's # built-in per-monitor workspace history.