Commit 33d193a3 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

EXPERIMENTAL: changed behaviour of $mod+Shift+Comma. Now this move the

master stack (when multiple window on master stack) second window to
stack but not focused).
parent 3b5e3ff7
......@@ -124,7 +124,7 @@ bindsym $mod+comma exec "i3-msg focus up, move right, focus up, focus left"
# NOTE: requires jq
bindsym $mod+Shift+m exec "CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, focus right, layout $CURR, focus parent, focus left, move right, focus left"
bindsym $mod+Shift+n exec "CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, move right, focus up, layout $CURR, focus parent, focus left"
bindsym $mod+Shift+comma exec "i3-msg focus right; CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, focus right, layout $CURR, focus parent, focus left, move right, focus left"
bindsym $mod+Shift+comma exec "i3-msg focus up, focus right; CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, focus left, move right, move up, focus down, layout $CURR, focus parent, focus left"
# container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool
......
......@@ -83,7 +83,7 @@ bindsym $mod+comma exec "i3-msg focus up, move right, focus up, focus left"
# NOTE: requires jq
bindsym $mod+Shift+m exec "CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, focus right, layout $CURR, focus parent, focus left, move right, focus left"
bindsym $mod+Shift+n exec "CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, move right, focus up, layout $CURR, focus parent, focus left"
bindsym $mod+Shift+comma exec "i3-msg focus right; CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, move left, focus up, focus right, layout $CURR, focus parent, focus left, move right, focus left"
bindsym $mod+Shift+comma exec "i3-msg focus up, focus right; CURR=$(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout'); i3-msg layout stacked, focus left, move right, move up, focus down, layout $CURR, focus parent, focus left"
# move focused window
bindsym $mod+Shift+Left move left 100px
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment