<div dir="ltr"><div dir="ltr">Hi friend,<div><br></div><div>I have a similar setup, at home I have a single monitor and use the laptop screen and the monitor and at work I have two monitors and don't use the laptop screen. I don't use XMonad itself to change the resolution, I use a program called <a href="https://github.com/phillipberndt/autorandr">autorandr</a>, all you need to do is configure your resolution with xrandr and then save the profile with autorandr and it automatically detects the displays and the profile you saved for them. XMonad automatically adapts to this, changing the resolution and moving xmobar to the primary display.</div><div><br></div><div>Hope this helps you!</div><div><br></div><div>Best Regards,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at 6:20 AM Jean-Baptiste Mestelan <<a href="mailto:mestelan@gmail.com">mestelan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Is there a way to have XMonad adapt the display to the resolution of the plugged monitor(s)?</div><div>My problem is: at home, I have the laptop attached to one monitor. I suspend the session (systemctl hibernate), and resume it at work where I use a higher-resolution monitor. The display remains as it was set when starting the X session. The only way I have found to have the new monitor settings detected is to restart the X session (slim restart), which obviously kills user programs. So the question is: is there a command I can run to have the display adapt to the capabilities of the current monitor?</div><div><br></div><div>Thanks for attention.</div></div>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Alexandre Medeiros<br>Software Engineer @ Nubank<br>BSc Computer Science - University of Campinas<br></div></div></div>