[xmonad] Multiple Screens
Christian Sølje
csolje at gmail.com
Wed Feb 3 07:25:43 UTC 2016
Thank you Ben that was just what I need now I get how it works
On Wed, Feb 3, 2016, 5:44 AM Ben Boeckel <mathstuf at gmail.com> wrote:
> On Wed, 03 Feb, 2016 at 02:51:02 GMT, Dmitri Iouchtchenko wrote:
> > On 02/02/2016, Christian Solje <csolje at gmail.com> wrote:
> >> I am also trying to have the xmobar to show on every screen that I got.
> >
> > You could do this with X.H.DynamicBars
> > (
> http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DynamicBars.html
> ).
> > I can't find any examples for how to use it, but you can refer to my
> > configuration (the relevant commit is
> > https://github.com/0/.../commit/1bc32215ae60edd961f0304bd6aea8fbe9a43658
> ).
> > I'm not certain that I'm using it correctly, since my barDestroyer
> > doesn't "tear down previous instances" like the docs say it should,
>
> This is so that old instances of the bars don't stack up over time.
>
> > but it still works fine for me. I suspect it's because xmobar exits
> > automatically when its handle is closed.
>
> Yeah, this is fine.
>
> Here is how I do it (I authored DynamicBars):
>
> https://paste.fedoraproject.org/317789/54474221/
>
> I also use 3 monitors at work, so the setup is:
>
> - xmonad talks to xmonadpropwrite which writes a property to the root
> window with the xmonad part of the bar (per monitor);
> - xmonad also starts and stops xmobar at .service instances in my systemd
> --user session (one service per monitor, specified like
> xmobar at 0.service for monitor 0);
> - when xmonad restarts, xmobar doesn't notice (this was done because
> 3 xmobar instances was flaky and all of them wouldn't always start,
> so I made them able to be started independently of xmonad); and
> - xmobar is started with the -C argument to give an extra command
> which indicates the property to read from the root window.
>
> --Ben
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>
--
Best regards
Christian Sølje
Email: csolje at gmail.com
Phone: +4522612930
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20160203/3c427f93/attachment-0001.html>
More information about the xmonad
mailing list