summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/layout-navigate
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/hyprland/.local/bin/layout-navigate')
-rwxr-xr-xdotfiles/hyprland/.local/bin/layout-navigate9
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
;;