summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/waybar-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
commit2d75b3ea4dc6d58b476e9ca435639cf5a6dacd60 (patch)
tree451a97432521703c3d32b914be60d249d91e8394 /dotfiles/hyprland/.local/bin/waybar-layout
parentb6cfe80008c038eca90b8dc35ab9ba703b411524 (diff)
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/waybar-layout')
-rwxr-xr-xdotfiles/hyprland/.local/bin/waybar-layout5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/hyprland/.local/bin/waybar-layout b/dotfiles/hyprland/.local/bin/waybar-layout
index 1750eff..083e9ef 100755
--- a/dotfiles/hyprland/.local/bin/waybar-layout
+++ b/dotfiles/hyprland/.local/bin/waybar-layout
@@ -1,7 +1,7 @@
#!/bin/sh
# Hyprland layout indicator for waybar
# Shows current layout with nerd font icons
-# Layouts: master -> scrolling -> floating
+# Layouts: master -> scrolling -> monocle -> floating
# Check if hyprctl is reachable
if ! hyprctl version >/dev/null 2>&1; then
@@ -22,6 +22,9 @@ if [ "$LAYOUT" = "master" ] && echo "$WSRULES" | grep -q "allfloat"; then
elif [ "$LAYOUT" = "scrolling" ]; then
ICON="󰯍"
TOOLTIP="Scrolling"
+elif [ "$LAYOUT" = "monocle" ]; then
+ ICON="󰊓"
+ TOOLTIP="Monocle"
elif [ "$LAYOUT" = "master" ]; then
ICON="󰕰"
TOOLTIP="Master"