Commit dd8d4e05 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Disabled focus_wrapping and now $mod+r (master/stack focus switching)

has fallback so that if attempt result in no change, focuses other
direction.
parent 031da67f
...@@ -80,9 +80,10 @@ for_window [class=".*"] title_window_icon padding 3px ...@@ -80,9 +80,10 @@ for_window [class=".*"] title_window_icon padding 3px
# focus_wrapping <yes|no|force|workspace> # focus_wrapping <yes|no|force|workspace>
# Legacy syntax: "force_focus_wrapping force" # Legacy syntax: "force_focus_wrapping force"
focus_wrapping yes focus_wrapping no
# parent focus switch (useful for master/stack switching) # parent focus switch (useful for master/stack switching) - has fallback for no focus_wrapping
bindsym $mod+r focus parent; focus left # required xdotool
bindsym $mod+r exec --no-startup-id "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus left; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus right\\"; fi"
# Hide borders <none|vertical|horizontal|both|smart> # Hide borders <none|vertical|horizontal|both|smart>
hide_edge_borders none hide_edge_borders none
......
...@@ -80,9 +80,10 @@ for_window [class=".*"] title_window_icon padding 3px ...@@ -80,9 +80,10 @@ for_window [class=".*"] title_window_icon padding 3px
# focus_wrapping <yes|no|force|workspace> # focus_wrapping <yes|no|force|workspace>
# Legacy syntax: "force_focus_wrapping force" # Legacy syntax: "force_focus_wrapping force"
focus_wrapping yes focus_wrapping no
# parent focus switch (useful for master/stack switching) # parent focus switch (useful for master/stack switching) - has fallback for no focus_wrapping
bindsym $mod+r focus parent; focus left # required xdotool
bindsym $mod+r exec --no-startup-id "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus left; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus right\\"; fi"
# Hide borders <none|vertical|horizontal|both|smart> # Hide borders <none|vertical|horizontal|both|smart>
hide_edge_borders none hide_edge_borders none
......
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