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
715679b5
Commit
715679b5
authored
Sep 18, 2021
by
Jay Ta'ala
Browse files
Using slightly modified approach of previous master-stack.
parent
2e444f00
Changes
2
Hide whitespace changes
Inline
Side-by-side
i3/config
View file @
715679b5
...
...
@@ -142,17 +142,16 @@ 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)
# NOTE: requires 'jq'
#set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
#bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, move left, focus parent, focus right, layout $STK, focus parent, focus left"
#bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, move right, focus parent, focus left, layout $MST, focus parent, focus right"
# NOTE: requires 'xdotool' and 'jq'
bindsym $mod+period focus parent, focus right, focus child
bindsym $mod+comma focus parent, focus left, focus child
set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, focus right; STK=$get_layout; i3-msg layout stacked, focus left, move right, focus up, layout $STK, focus parent, focus left, layout $MST"
bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, focus left; MST=$get_layout; i3-msg layout stacked, focus right, move left, focus up, layout $MST, focus parent, focus right, layout $STK"
# simple master-stack moving
bindsym $mod+comma move left, focus right
bindsym $mod+period move right, focus left
# move to next / previous workspaces
bindsym $mod+Shift+period move window workspace prev
bindsym $mod+Shift+comma move window workspace next
#bindsym $mod+Shift+comma move left, focus right
#bindsym $mod+Shift+period move right, focus left
# container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool
...
...
i3/config.simple
View file @
715679b5
...
...
@@ -106,17 +106,16 @@ 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)
# NOTE: requires 'jq'
#set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
#bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, move left, focus parent, focus right, layout $STK, focus parent, focus left"
#bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, move right, focus parent, focus left, layout $MST, focus parent, focus right"
# NOTE: requires 'xdotool' and 'jq'
bindsym $mod+period focus parent, focus right, focus child
bindsym $mod+comma focus parent, focus left, focus child
set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, focus right; STK=$get_layout; i3-msg layout stacked, focus left, move right, focus up, layout $STK, focus parent, focus left, layout $MST"
bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, focus left; MST=$get_layout; i3-msg layout stacked, focus right, move left, focus up, layout $MST, focus parent, focus right, layout $STK"
# simple master-stack moving
bindsym $mod+comma move left, focus right
bindsym $mod+period move right, focus left
# move to next / previous workspaces
bindsym $mod+Shift+period move window workspace prev
bindsym $mod+Shift+comma move window workspace next
#bindsym $mod+Shift+comma move left, focus right
#bindsym $mod+Shift+period move right, focus left
# container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool
...
...
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