r/windowmaker • u/M1buKy0sh1r0 • Oct 27 '26
Question Howto switch between different monitor setups
WM is great. I like the NEXTstep look & feel. I use it as my daily driver for several weeks now. But I am not sure how to handle different monitor setups especially when working on notebook. I use autorandr with matching profiles. But WM doesn't recognize the switch correctly and "loses" windows out of monitor range, so I can't reach them. Also dock and app icons get messed up on the screen. Restarting WM mostly brings dock and app icons back into position but windows get stuck somewhere.
And, when starting WM I also cannot get the right monitor setup from beginning. I have to run autorandr afterwards and this will need a restart of WM also. I would like to automate this.
How do you handle this?
3
u/jcarnat Oct 27 '26
The magic trick here (OpenBSD) is to add
`pkill -usr1 -lf "/usr/local/bin/wmaker --for-real"` after the call to `xrandr`.
2
u/gryf73 29d ago
I have well-organized
~/.xinitrcfile which deals with whole pre wmaker X things for me. On one machine (work laptop) I do have GDM, so all of the things are in~/.xsession(also needed to installxorg-11-xinit-session).This file (either
~/.xinitrcor~/.xsession) have following things run after X start, but before wmaker:Xft.dpirunning some X apps, like
So that I don't need to restart wmaker on first run. For subsequent restarts, it'll be probably needed to restart wmaker, so it will remap the new layout, although I don't need to do that on my builds (either on Fedora nor Gentoo), as I have it both compiled with RandR, so wmaker will automatically restart after layout change.
As for the unreachable windows - a workaround for me is just using keyboard shortcuts for bringing them to visible space - under keyboard user pref in WPrefs there are "Move/resize active window", "Move to left/top/right/bottom head", "Move to right/bottom/left/top head", "Maximize active window XXX half" (there are 4 directions, and 4 directions for corners placement), but for those you'll also need to select "Allow move half-maximized windows between multiple screens" in expert prefs.
1
u/Savven Oct 27 '26
I've been dealing with a similar issue for sometime, and ultimately gave upđ I hope you manage to find a solutionÂ
1
u/rafaelruscher 28d ago
VocĂȘ pode testar o meu projeto?
https://github.com/big-windowmaker
Quero saber se estou com o mesmo problema que vocĂȘ relatou!
Grato
Ruscher