summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-25 17:41:40 -0600
committerCraig Jennings <c@cjennings.net>2026-01-25 17:41:40 -0600
commitd4c2eec713b0eee47cd5b97ce811ed2b06c6dbdc (patch)
treed32a432df54d6c3b1145cdfcba40cec0a505081d /dotfiles/hyprland
parent78d53d65a4b707f2c993e4a2d8207fc2383c846e (diff)
downloadarchsetup-d4c2eec713b0eee47cd5b97ce811ed2b06c6dbdc.tar.gz
archsetup-d4c2eec713b0eee47cd5b97ce811ed2b06c6dbdc.zip
fix(hyprland): correct gaps keybindings for custom values
Parse gaps_out/gaps_in using jq '.custom' instead of '.int'. Adjust both gaps_out and gaps_in together for consistent spacing.
Diffstat (limited to 'dotfiles/hyprland')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index cb6bec7..3ea9569 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -176,9 +176,9 @@ bind = $mod, I, layoutmsg, addmaster
bind = $mod, D, layoutmsg, removemaster
# Gaps (from DWM)
-bind = $mod, MINUS, exec, hyprctl keyword general:gaps_out $(( $(hyprctl getoption general:gaps_out -j | jq '.int') - 5 ))
-bind = $mod, EQUAL, exec, hyprctl keyword general:gaps_out $(( $(hyprctl getoption general:gaps_out -j | jq '.int') + 5 ))
-bind = $mod SHIFT, EQUAL, exec, hyprctl keyword general:gaps_out 10
+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 ))
+bind = $mod, EQUAL, 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 ))
+bind = $mod SHIFT, EQUAL, exec, hyprctl keyword general:gaps_out 10 && hyprctl keyword general:gaps_in 5
# Toggle bar
bind = $mod, B, exec, killall -SIGUSR1 waybar