aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-25 22:08:30 -0600
committerCraig Jennings <c@cjennings.net>2026-01-25 22:08:30 -0600
commit4469387b990c402f8d004ca2c0e460a3f44ca5d6 (patch)
tree1eb6e9e8dcff8d4f075a58ca73fe3a7353833547 /dotfiles/hyprland
parent205e43d1e4c6a30d783f8e45c48b9c7a36c62dd1 (diff)
downloadarchsetup-4469387b990c402f8d004ca2c0e460a3f44ca5d6.tar.gz
archsetup-4469387b990c402f8d004ca2c0e460a3f44ca5d6.zip
feat(hyprland): change focus mode keybindings to mod+O
Change xtra-dispatchers plugin keybindings from Z to O for better ergonomics. Mnemonic: O = Only/Others (throw unfocused, bring back, close others). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/hyprland')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index df44e23..1ab1a84 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -165,6 +165,11 @@ bind = $mod SHIFT, SPACE, togglefloating
bind = $mod, I, layoutmsg, addmaster
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 CTRL, O, exec, hyprctl dispatch plugin:xtd:closeunfocused
# Gaps (from DWM)
bind = $mod, MINUS, exec, hyprctl keyword general:gaps_out $(( $(hyprctl getoption general:gaps_out -j | jq -r '.custom' | cut -d' ' -f1) - 5 )) && hyprctl keyword general:gaps_in $(( $(hyprctl getoption general:gaps_in -j | jq -r '.custom' | cut -d' ' -f1) - 5 ))