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 2014-05-18 02:25:59 +0000

anonymous user

Anonymous

updated 2014-05-18 10:16:18 +0000

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?

edit retag flag offensive close merge delete

Comments

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

Michael gravatar imageMichael ( 2014-05-25 18:21:14 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-26 10:18:29 +0000

orangeotto gravatar image

updated 2014-08-15 06:05:34 +0000

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!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-18 02:25:59 +0000

Seen: 154 times

Last updated: Aug 15 '14