[xmonad] Refresh display, adapting to monitor resolution

Jean-Baptiste Mestelan mestelan at gmail.com
Sat Jan 11 12:03:52 UTC 2020


Thank you very much, Alexandre, for your kind answer.

Yes, I vaguely suspected that the answer might come from X tooling, rather
than XMonad itself; but thanks for putting up with me.

Looking at autorandr right now: it looks perfect for what I want.

Best regards.


On Fri, 10 Jan 2020 at 15:59, alexandre medeiros <
alexandre.n.medeiros at gmail.com> wrote:

> Hi friend,
>
> 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 autorandr <https://github.com/phillipberndt/autorandr>,
> 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.
>
> Hope this helps you!
>
> Best Regards,
>
> On Fri, Jan 10, 2020 at 6:20 AM Jean-Baptiste Mestelan <mestelan at gmail.com>
> wrote:
>
>> Hello,
>>
>> Is there a way to have XMonad adapt the display to the resolution of the
>> plugged monitor(s)?
>> 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?
>>
>> Thanks for attention.
>> _______________________________________________
>> xmonad mailing list
>> xmonad at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
>
>
> --
> Alexandre Medeiros
> Software Engineer @ Nubank
> BSc Computer Science - University of Campinas
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20200111/dfff122e/attachment.html>


More information about the xmonad mailing list