From 2f9b558d35ebce5bd74a6d36228e8007064c9be1 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 8 Nov 2022 08:10:32 -0700 Subject: toggle focus_wrapping in C-i o for Sway & update comment I believe it wasn't possible to toggle like this under i3, hence the global setting, but it does seem to be possible under Sway. Not yet tested with multiple outputs, however. --- .config/sway/config | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 464b17d8..9a49a7c9 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -17,12 +17,6 @@ floating_modifier Mod4 # default workspace layout workspace_layout tabbed -# this is so that C-i o will stay within the same output; I have convenient -# bindings to get to other outputs so no need for directional movement to -# permit moving between outputs (it would be even better if we could just -# toggle this setting around the execution of C-i o, however) -focus_wrapping workspace - mouse_warping output # Key binding strategy: @@ -119,10 +113,11 @@ mode "C-i-" { # focus the child container bindsym d focus child, mode "default" - # when screen is divided into two containers where at least one has - # several tabs, as I usually have it on a small laptop screen, this - # works well to go back and forth - bindsym o focus parent, focus right, mode "default" + # when screen is divided into two containers where at least one might + # have several tabs, as I usually have it, this works well to go back + # and forth + bindsym o focus_wrapping workspace, focus parent, focus right, \ + focus_wrapping yes, mode "default" # switch to workspace bindsym 1 workspace 1, mode "default" -- cgit v1.2.3