aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/cycle-layout
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-03-07 11:18:18 -0600
committerCraig Jennings <c@cjennings.net>2026-03-07 11:18:18 -0600
commit324377297f06e610993a687c2c03740efd8b221e (patch)
treedee923aa574a8711a67a765a702d64e1067bf282 /dotfiles/hyprland/.local/bin/cycle-layout
parent23c98b106d3521485276b3811938ceaeec5811ce (diff)
downloadarchsetup-324377297f06e610993a687c2c03740efd8b221e.tar.gz
archsetup-324377297f06e610993a687c2c03740efd8b221e.zip
feat(hyprland): add monocle layout support, fix scrolling keybindings
Add monocle to layout cycle and waybar indicator. Fix scrolling layout move (swapwindow) and resize (resizeactive). Add layout-resize script.
Diffstat (limited to 'dotfiles/hyprland/.local/bin/cycle-layout')
-rwxr-xr-xdotfiles/hyprland/.local/bin/cycle-layout5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/hyprland/.local/bin/cycle-layout b/dotfiles/hyprland/.local/bin/cycle-layout
index a632142..310c182 100755
--- a/dotfiles/hyprland/.local/bin/cycle-layout
+++ b/dotfiles/hyprland/.local/bin/cycle-layout
@@ -1,6 +1,6 @@
#!/bin/sh
# Cycle through Hyprland layouts
-# Cycle: master -> scrolling -> floating -> master
+# Cycle: master -> scrolling -> monocle -> floating -> master
LAYOUT=$(hyprctl getoption general:layout -j | jq -r '.str')
FLOATING=$(hyprctl activewindow -j 2>/dev/null | jq -r '.floating // false')
@@ -11,6 +11,9 @@ case "$LAYOUT" in
hyprctl keyword general:layout scrolling
;;
scrolling)
+ hyprctl keyword general:layout monocle
+ ;;
+ monocle)
# Switch to master but float all windows
hyprctl keyword general:layout master
hyprctl dispatch workspaceopt allfloat