diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-25 21:54:04 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-25 21:54:04 -0600 |
| commit | ff88fc3cd752c34f364526683222deb0a7e5bbbf (patch) | |
| tree | 82c69bca2d01331f02c9be5f31f616e8616c0b18 /dotfiles/hyprland/.local/bin/layout-navigate | |
| parent | e601c536ec79e9c46105cdbc67825e0cd97e7818 (diff) | |
feat(hyprland): add plugins and simplify layouts
Plugins installed via hyprpm:
- hy3: i3-style manual tiling with tab groups (monocle)
- hyprscrolling: PaperWM-style horizontal scrolling
- xtra-dispatchers: throwunfocused, bringallfrom, closeunfocused
Layout system simplified to 4 modes:
- Master (tile) - default DWM-style
- Tab group (monocle) - via hy3 plugin
- Scrolling - horizontal columns
- Floating
New scripts:
- layout-navigate: layout-aware j/k navigation
- Updated cycle-layout: cycles through 4 layouts
- Updated waybar-layout: icons for new layouts
Other changes:
- Add hyprpm reload to startup
- Add cpio and fc-cache to archsetup
- Remove SSH fuzzel picker (conflicted with scrolling keybind)
- Add slidevert animation for scratchpads
- Update todo.org with plugin evaluation notes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/hyprland/.local/bin/layout-navigate')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/layout-navigate | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.local/bin/layout-navigate b/dotfiles/hyprland/.local/bin/layout-navigate new file mode 100755 index 0000000..ec2f659 --- /dev/null +++ b/dotfiles/hyprland/.local/bin/layout-navigate @@ -0,0 +1,58 @@ +#!/bin/sh +# Layout-aware navigation for Hyprland +# Usage: layout-navigate <direction> [move] +# direction: next|prev +# move: if present, move window instead of focus + +DIR="$1" +MOVE="$2" +LAYOUT=$(hyprctl getoption general:layout -j | jq -r '.str') + +case "$LAYOUT" in + scrolling) + if [ "$MOVE" = "move" ]; then + if [ "$DIR" = "next" ]; then + hyprctl dispatch layoutmsg movewindowto r + else + hyprctl dispatch layoutmsg movewindowto l + fi + else + if [ "$DIR" = "next" ]; then + hyprctl dispatch layoutmsg focus r + else + hyprctl dispatch layoutmsg focus l + fi + fi + ;; + hy3) + if [ "$MOVE" = "move" ]; then + if [ "$DIR" = "next" ]; then + hyprctl dispatch hy3:movewindow r + else + hyprctl dispatch hy3:movewindow l + fi + else + if [ "$DIR" = "next" ]; then + hyprctl dispatch hy3:movefocus r + else + hyprctl dispatch hy3:movefocus l + fi + fi + ;; + *) + # master, dwindle, etc. + if [ "$MOVE" = "move" ]; then + if [ "$DIR" = "next" ]; then + hyprctl dispatch layoutmsg swapnext + else + hyprctl dispatch layoutmsg swapprev + fi + else + if [ "$DIR" = "next" ]; then + hyprctl dispatch layoutmsg cyclenext + else + hyprctl dispatch layoutmsg cycleprev + fi + fi + ;; +esac |
