aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-27 21:05:45 -0600
committerCraig Jennings <c@cjennings.net>2026-01-27 21:05:45 -0600
commit1a15231e2be3745b0963a532d76ea81616965fe4 (patch)
tree002d3e6d63c8b12466d6052b252244949fa72199 /dotfiles/hyprland/.config
parentad25b31be425f0e47badda11702d184af921ec02 (diff)
downloadarchsetup-1a15231e2be3745b0963a532d76ea81616965fe4.tar.gz
archsetup-1a15231e2be3745b0963a532d76ea81616965fe4.zip
feat(hyprland): add focus-restore script to preserve master on mod+shift+o
The xtra-dispatchers bringallfrom dispatcher doesn't preserve window positions, displacing the focused window from master. The new script captures the focused window address, brings all windows back, then swaps the original window back to master. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/hyprland/.config')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index 585147e..34e44b6 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -197,7 +197,7 @@ bind = $mod, D, layoutmsg, removemaster
# Focus mode (xtra-dispatchers plugin)
# O = "Only this window" / "bring back Others" / "close Others"
bind = $mod, O, exec, hyprctl dispatch plugin:xtd:throwunfocused 10
-bind = $mod SHIFT, O, exec, hyprctl dispatch plugin:xtd:bringallfrom 10
+bind = $mod SHIFT, O, exec, focus-restore
bind = $mod CTRL, O, exec, hyprctl dispatch plugin:xtd:closeunfocused
# Gaps (from DWM)