Commit 09d4888f authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

EXPERIMENTAL: master-stack keys now respect stack layout (switch to

stacked and then switches back).
parent 799ded52
...@@ -119,10 +119,11 @@ bindsym $mod+k focus up ...@@ -119,10 +119,11 @@ bindsym $mod+k focus up
bindsym $mod+l focus right bindsym $mod+l focus right
# master-stack keybinding (moves stack window to master and current master back to stack window) # master-stack keybinding (moves stack window to master and current master back to stack window)
bindsym $mod+m exec "i3-msg \\"focus left, move right, focus up, move left\\"" bindsym $mod+m exec "i3-msg focus parent, focus right"
bindsym $mod+Shift+m exec "i3-msg \\"move right, focus up, move left\\"" bindsym $mod+comma exec "i3-msg focus up, move right, focus up, focus left"
bindsym $mod+comma exec "i3-msg \\"focus up, move right, focus up, focus left\\"" # NOTE: requires jq
bindsym $mod+Shift+comma exec "i3-msg \\"focus up, move right, focus left\\"" 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, move right, 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, move right, layout $CURR, focus parent, focus left"
# container focusing (with fallback for case where window is direct child of workspace container) # container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool # NOTE: requires xdotool
...@@ -465,7 +466,7 @@ bar { ...@@ -465,7 +466,7 @@ bar {
} }
# hide/unhide i3status bar # hide/unhide i3status bar
bindsym $mod+Control+m bar mode toggle bindsym $mod+Control+b bar mode toggle
############################# #############################
### settings for i3-gaps: ### ### settings for i3-gaps: ###
......
...@@ -78,10 +78,11 @@ bindsym $mod+k focus up ...@@ -78,10 +78,11 @@ bindsym $mod+k focus up
bindsym $mod+l focus right bindsym $mod+l focus right
# master-stack keybinding (moves stack window to master and current master back to stack window) # master-stack keybinding (moves stack window to master and current master back to stack window)
bindsym $mod+m exec "i3-msg \\"focus left, move right, focus up, move left\\"" bindsym $mod+m exec "i3-msg focus parent, focus right"
bindsym $mod+Shift+m exec "i3-msg \\"move right, focus up, move left\\"" bindsym $mod+comma exec "i3-msg focus up, move right, focus up, focus left"
bindsym $mod+comma exec "i3-msg \\"focus up, move right, focus up, focus left\\"" # NOTE: requires jq
bindsym $mod+Shift+comma exec "i3-msg \\"focus up, move right, focus left\\"" 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, move right, 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, move right, layout $CURR, focus parent, focus left"
# move focused window # move focused window
bindsym $mod+Shift+Left move left 100px 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