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 2014-07-28 13:27:40 +0000

jarda-wien gravatar image

updated 2014-07-29 07:36:43 +0000

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!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-07-29 05:36:50 +0000

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
edit flag offensive delete link more
0

answered 2014-07-28 13:43:02 +0000

konni gravatar image

updated 2014-07-28 13:43:34 +0000

xrandr -q, check the names,

bindsym $mod+i focus output DP-0
bindsym $mod+u focus output DVI-I-1
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-28 13:27:40 +0000

Seen: 357 times

Last updated: Jul 29 '14