Switching window focus ($mod+Up
/ $mod+Right
/ $mod+Down
/ $mod+Left
) in i3 cycles through all windows on a workspace, meaning when you hit one edge of the screen, it will start again on the other side.
I was looking for a way to disable that, but was unable to find a way to change this via configuration. Therefore I have created the following script.
Place i3-focus-nowrap.sh
somewhere within your path (eg /usr/local/bin
) or use an absolute reference in the keybindings below.
And replace the keybindings in your .i3 config (eg ~/.i3/config
)