Added script for toggling hyprscrolling vs dwindle

This commit is contained in:
2026-02-27 17:03:17 +01:00
parent f094ed5fb6
commit 90c010a11d
2 changed files with 9 additions and 0 deletions
@@ -56,6 +56,7 @@ bind = $mainMod, S, togglegroup
# Cycle tabs in the group
bind = $mainMod, L, changegroupactive, f
bind = $mainMod, H, changegroupactive, b
bind = $mainMod, T, exec, ~/.config/hypr/scripts/toggle-layout-scrolling-dwindle.sh
# Focus movement
bind = $mainMod, H, movefocus, l
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
cur="$(hyprctl getoption general:layout | awk '/str:/ {print $2; exit}')"
if [[ "$cur" == "scrolling" ]]; then
hyprctl keyword general:layout dwindle
else
hyprctl keyword general:layout scrolling
fi