Re:i3 4.18
by flyingcircus3 on Monday February 17, 2020 @03:05PM
(#22350263)
Is there a way to force certain workspaces to always be on certain monitors?
[ Parent
| on HN ]
Re:i3 4.18
by racingmars on Monday February 17, 2020 @04:02PM
(#22350723)
Yes. On my system, for example, I like to pin odd-numbered workspaces to my left screen and even-numbered workspaces to my right screen:
workspace $ws1 output DisplayPort-0
workspace $ws2 output DisplayPort-1
workspace $ws3 output DisplayPort-0
workspace $ws4 output DisplayPort-1
workspace $ws5 output DisplayPort-0
workspace $ws6 output DisplayPort-1
workspace $ws7 output DisplayPort-0
workspace $ws8 output DisplayPort-1
workspace $ws9 output DisplayPort-0
workspace $ws10 output DisplayPort-1You can have your cake and eat it to-
set $monL DP-1.3
set $monR DP-2
set $ws1L "1L"
set $ws2L "2L"
...
set $ws1R "1R"
set $ws2R "2R"
...
workspace $ws1L output $monL
workspace $ws1R output $monR
workspace $ws2L output $monL
workspace $ws2R output $monR
...
and upidate bindsyms (maybe add a modifier to switch right workspaces..?) bindsym $mod+1 workspace $ws1L
bindsym $mod+2 workspace $ws2L
...If you switch workspaces on monitor A, whatever workspace you have on monitor B will not move.
So what you want is already supported. Just don't switch over to monitor B and switch it to a different workspace.