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
@@ -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