The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

move focus to monitor

asked Jul 28 '14

jarda-wien gravatar image

updated Jul 29 '14

Is there a way to bind a "move focus to monitor left" shortcut?

I am using a dual monitor setup and would like to switch focus between whatever there is currently in focus on either screen.

I know that I can use the arrows to move focus left or right, but one could have multiple vertical tabs open on both screens. Changing focus from the leftmost on the left screen to the rightmost on the right screen is a pain.

I know that one can focus the parent and then use the arrows, but this still seems odd.

Update: Thank you both, Adaephon and konni.

"focus output left" works like a charm!

2 answers

Sort by » oldest newest most voted
0

answered Jul 29 '14

Adaephon gravatar image

The focus command can also used for outputs (See Section 6.4 of the User's Guide)

focus output <<left|right|down|up>|output>

So you can set something like this in your configuration:

bindsym $mod+Control+Left focus output left
bindsym $mod+Control+Right focus output right

BTW: The same works for the move command (Although it seems to be undocumented in the User's Guide)

bindsym $mod+Control+Shift+Left move output left
bindsym $mod+Control+Shift+Right move output right
0

answered Jul 28 '14

konni gravatar image

updated Jul 28 '14

xrandr -q, check the names,

bindsym $mod+i focus output DP-0
bindsym $mod+u focus output DVI-I-1

Question Tools

1 follower

Stats

Asked: Jul 28 '14

Seen: 357 times

Last updated: Jul 29 '14