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

changing workspaces on two outputs at once?

asked May 18 '14

anonymous user

Anonymous

updated May 18 '14

I'd like to replicate gnome's functionality of being able to change the workspace on both screens in a dual monitor setup at once (e.g.: control+alt + left/right)

i've concocted the below two bindsym's but they don't seem to work:

bindsym $mod+$alt+Left focus output $monitorleft; workspace prev; focus output $monitorright; workspace prev

bindsym $mod+$alt+Right focus output $monitorleft; workspace next; focus output $monitorright; workspace next

it just seems that each workspace numerically is iterated through as opposed to changing both on each input.

any ideas what i'm missing here?

Comments

I think you want to use `workspace prev_on_output` instead of `workspace prev`.

Michael gravatar imageMichael (May 25 '14)edit

1 answer

Sort by » oldest newest most voted
0

answered May 26 '14

orangeotto gravatar image

updated Aug 15 '14

Adaephon gravatar image

That was exactly it! This bit of config works.

bindsym $mod+$alt+Left focus output left; workspace prev_on_output; focus output right; workspace prev_on_output
bindsym $mod+$alt+Right focus output left; workspace next_on_output; focus output right; workspace next_on_output

Thanks!

Question Tools

Stats

Asked: May 18 '14

Seen: 154 times

Last updated: Aug 15 '14