aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/cycle-layout
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/hyprland/.local/bin/cycle-layout')
-rwxr-xr-xdotfiles/hyprland/.local/bin/cycle-layout27
1 files changed, 0 insertions, 27 deletions
diff --git a/dotfiles/hyprland/.local/bin/cycle-layout b/dotfiles/hyprland/.local/bin/cycle-layout
deleted file mode 100755
index 310c182..0000000
--- a/dotfiles/hyprland/.local/bin/cycle-layout
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-# Cycle through Hyprland layouts
-# 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')
-
-# Check if we're in "all floating" mode by checking layout
-case "$LAYOUT" in
- master)
- 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
- ;;
- *)
- # Return to master tiled
- hyprctl dispatch workspaceopt allfloat
- hyprctl keyword general:layout master
- hyprctl keyword master:orientation left
- ;;
-esac