Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 2026-05-10

cycle-layout: fix hyprland 0.55.0 compatibility

### 2026-03-28

cycle-layout: added a flag to set previous layout
Expand Down
8 changes: 3 additions & 5 deletions cycle-layout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ Tiny script to cycle layouts (dwindle, scrolling, monocle, master) for current w

Run Makefile or simply copy this script where you'd want to, then add this to your hyprland config:

```ini
# Set next layout
bind = SUPER CTRL, tab, exec, cycle-layout
# Set previous layout
bind = SUPER SHIFT CTRL, tab, exec, cycle-layout --prev
```lua
hl.bind("SUPER + CTRL + tab", hl.dsp.exec_cmd("cycle-layout")) -- Set next layout
hl.bind("SUPER + SHIFT + CTRL + tab", hl.dsp.exec_cmd("cycle-layout --prev")) -- Set previous layout
```

5 changes: 4 additions & 1 deletion cycle-layout/cycle-layout
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ else
TARGET=$(( (i + 1) % ${#LAYOUTS[@]} ))
fi

hyprctl keyword workspace "$WORKSPACE_ID", layout:"${LAYOUTS[$TARGET]}" > /dev/null
# CLI used before v0.55.0
# hyprctl keyword workspace "$WORKSPACE_ID", layout:"${LAYOUTS[$TARGET]}" > /dev/null

hyprctl eval "hl.workspace_rule({ workspace = '$WORKSPACE_ID', layout = '${LAYOUTS[$TARGET]}' })" > /dev/null

notify-send --icon state-information \
--app-name $0 \
Expand Down
Loading