Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
09d4888f
Commit
09d4888f
authored
Sep 30, 2020
by
Jay Ta'ala
Browse files
EXPERIMENTAL: master-stack keys now respect stack layout (switch to
stacked and then switches back).
parent
799ded52
Changes
2
Hide whitespace changes
Inline
Side-by-side
i3/config
View file @
09d4888f
...
...
@@ -119,10 +119,11 @@ bindsym $mod+k focus up
bindsym $mod+l focus right
# 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+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+Shift+comma exec "i3-msg \\"focus up, move right, focus left\\""
bindsym $mod+m exec "i3-msg focus parent, focus right"
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, 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)
# NOTE: requires xdotool
...
...
@@ -465,7 +466,7 @@ bar {
}
# hide/unhide i3status bar
bindsym $mod+Control+
m
bar mode toggle
bindsym $mod+Control+
b
bar mode toggle
#############################
### settings for i3-gaps: ###
...
...
i3/config.simple
View file @
09d4888f
...
...
@@ -78,10 +78,11 @@ bindsym $mod+k focus up
bindsym $mod+l focus right
# 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+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+Shift+comma exec "i3-msg \\"focus up, move right, focus left\\""
bindsym $mod+m exec "i3-msg focus parent, focus right"
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, 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
bindsym $mod+Shift+Left move left 100px
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment