Added script for toggling hyprscrolling vs dwindle

This commit is contained in:
henrov committed 2026-02-27 17:03:17 +01:00
1 parent f094ed5fb6
commit 90c010a11d
2 files changed
+9

No files matched your search

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