I have just one question regarding workspaces in multi-monitor. As suggested in the dkrc comments, I’m “embracing the default behaviour and allow access to any workspace from any monitor”, so I left “dkmcd set static” to false.
The problem though is that for some reason my monitor are inverted, so I have workspaces 1, 3, 5, 7, 9 on second monitor and the other ones on the primary.
Is there away to switch them somehow, so the workspace 1 is on the first monitor?
Hey, thanks for the answer!
I already use xrandr and I already set a primary monitor with it, but it seems like my xorg.conf somehow overrides it as this it’s ignored.
I was hoping for a way to do it through dkrc or a script…iirc on bspwm there was a way to swap monitors.
EDIT: actually I managed to set the primary monitor in xorg.conf but the issue remains, so i guess it doesn’t have nothing to do with the primary monitor.
Another way will be to call at the end of the dkrc file:
dkcmd mon $mon1; dkcmd ws 1
(ws 1 is the first workspace on monitor 1) So the focus will be right and it will force to start your session with the workspaces in the right order.
Hey @natemaia do you have that “issue” on multi-heads?
I can check it out. I don’t use multi-head in my daily setup but it’s strange behaviour. I suspect it’s due to the way X is reporting the monitor order. Dk doesn’t really do any sorting of the arrangement, whatever monitor is given first will be the head of the list and be assigned workspaces first. With static=false it shouldn’t matter and your above dkcmd would be the best solution for now.
if [[ -n $(pidof nvidia-persistenced) ]]; then
MONITOR1="DVI-D-0"
MONITOR2="HDMI-0"
MONITOR3="DP-0"
else
MONITOR1="DVI-D-1"
MONITOR2="HDMI-1"
MONITOR3="DP-1"
fi
The output you have from xrandr would be what dk uses as well (call into the xcb randr library returning a list of monitors)
I could look into the bsp/i3 source (which I do a fair bit when looking for solutions) but AFAIK they do the same thing as dk. They don’t use dynamic workspaces though which is a big difference.