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 | 0a98a1721271536db3e79f2f170deced839b6aec (patch) | |
| tree | a00b72e69486e93f28ac0ca86d837073e1147e63 /dotfiles/hyprland/.local/bin/layout-navigate | |
| parent | 33d6162d3adbe4efefc8fb5b2c1596c103342b1a (diff) | |
| download | archsetup-0a98a1721271536db3e79f2f170deced839b6aec.tar.gz archsetup-0a98a1721271536db3e79f2f170deced839b6aec.zip | |
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 |
