-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mons -a; problem going from 4:3 external to 16:9 internal #28
Comments
Thanks, but no change when trying with master. Aside: I was getting a |
Is the second monitor "VIRTUAL1" ? If yes, regarding your screenshot, the "VIRTUAL1" monitor has the "disconnected" status but it appears to be still plugged-in. Usually when a physical monitor is not plugged-in its status is automatically set "disconnected". The plugged-in monitor detection of mons is based on this rule. Here are the lines that handle the detection: 288: xrandr_out="$("$XRANDR")"
289: enabled_out="$(echo "$xrandr_out" | grep 'connect')"
...
294: enabled_out="$(echo "$enabled_out" | grep ' connect')"
295: [ -z "$enabled_out" ] && { echo 'No plugged-in monitor detected.'; exit 1; }
296: plug_mons="$(echo "$enabled_out" | cut -d' ' -f1)" |
I have
mons -a
in my .xinitrc, and an i3 hotkey to triggermons -s
after I've plugged my external in.On unplugging the external, I get a situation where all windows on my laptop screen are restricted in width, until I run
mons -o
, which resolves the problem.(In real life, I cannot see the bottom gap featured in the screenshot below, as it lies below the size of my laptop monitor.)
The text was updated successfully, but these errors were encountered: