diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-25 21:57:07 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-25 21:57:07 -0600 |
| commit | 63aa4e3c5fd1ee0e78f32808aedcc9418331543a (patch) | |
| tree | 846df5e58919fc9e7012e710b1d9786ebda07d7c /dotfiles/hyprland/.local/bin/layout-navigate | |
| parent | aa00b0251bb013ff508bdb9d8bf3292e52c87703 (diff) | |
| download | archsetup-63aa4e3c5fd1ee0e78f32808aedcc9418331543a.tar.gz archsetup-63aa4e3c5fd1ee0e78f32808aedcc9418331543a.zip | |
fix(hyprland): preserve j/k direction in master layout
Swap directions only in scrolling layout, not master.
- Master: J=next (down), K=prev (up) - original behavior
- Scrolling: J=left, K=right - swapped for intuitive scroll
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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dotfiles/hyprland/.local/bin/layout-navigate b/dotfiles/hyprland/.local/bin/layout-navigate index ec2f659..4fc02c2 100755 --- a/dotfiles/hyprland/.local/bin/layout-navigate +++ b/dotfiles/hyprland/.local/bin/layout-navigate @@ -10,17 +10,18 @@ LAYOUT=$(hyprctl getoption general:layout -j | jq -r '.str') case "$LAYOUT" in scrolling) + # Swap directions: J (next) goes left, K (prev) goes right if [ "$MOVE" = "move" ]; then if [ "$DIR" = "next" ]; then - hyprctl dispatch layoutmsg movewindowto r - else hyprctl dispatch layoutmsg movewindowto l + else + hyprctl dispatch layoutmsg movewindowto r fi else if [ "$DIR" = "next" ]; then - hyprctl dispatch layoutmsg focus r - else hyprctl dispatch layoutmsg focus l + else + hyprctl dispatch layoutmsg focus r fi fi ;; |
