Discussion:
[xmonad] Multiple Screens
Christian Solje
2016-02-02 21:39:19 UTC
Permalink
I am trying to get my 3 monitor setup to work with independent screens, I am also trying to have the xmobar to show on every screen that I got.
How should I go about getting it to work?

Best Regards

Christian
Peter Jones
2016-02-02 21:53:19 UTC
Permalink
Post by Christian Solje
I am trying to get my 3 monitor setup to work with independent
screens, I am also trying to have the xmobar to show on every screen
that I got.
How should I go about getting it to work?
What do you mean by "independent screens"? Are you talking about
XMonad.Layout.IndependentScreens or your physical monitors?

As long as the X11 Haskell module was compiled with Xinerama support
then multiple monitor support works out of the box. The default
behavior is to allow each monitor to display a workspace independent of
what the other monitors are displaying.

XMonad.Layout.IndependentScreens allows you to change that behavior to
match that of dwm's.

https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Layout-IndependentScreens.html

As for three copies of xmobar, I believe you just need three
configuration files specifying where each bar should be displayed and
then start three copies.
--
Peter Jones, Founder, Devalot.com
Defending the honor of good code
Christian Solje
2016-02-02 22:06:29 UTC
Permalink
That is what I am looking for but I just can seem to figure out how to configure it to work. Like what do I need to add and where.

Best Regards

Christian
Post by Peter Jones
Post by Christian Solje
I am trying to get my 3 monitor setup to work with independent
screens, I am also trying to have the xmobar to show on every screen
that I got.
How should I go about getting it to work?
What do you mean by "independent screens"? Are you talking about
XMonad.Layout.IndependentScreens or your physical monitors?
As long as the X11 Haskell module was compiled with Xinerama support
then multiple monitor support works out of the box. The default
behavior is to allow each monitor to display a workspace independent of
what the other monitors are displaying.
XMonad.Layout.IndependentScreens allows you to change that behavior to
match that of dwm's.
https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Layout-IndependentScreens.html
As for three copies of xmobar, I believe you just need three
configuration files specifying where each bar should be displayed and
then start three copies.
--
Peter Jones, Founder, Devalot.com
Defending the honor of good code
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Dmitri Iouchtchenko
2016-02-03 02:51:02 UTC
Permalink
Post by Christian Solje
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,
but it still works fine for me. I suspect it's because xmobar exits
automatically when its handle is closed.

Dmitri
Ben Boeckel
2016-02-03 04:43:42 UTC
Permalink
Post by Dmitri Iouchtchenko
Post by Christian Solje
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.
Post by Dmitri Iouchtchenko
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 ***@.service instances in my systemd
--user session (one service per monitor, specified like
***@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
Christian Sølje
2016-02-03 07:25:43 UTC
Permalink
Thank you Ben that was just what I need now I get how it works
Post by Dmitri Iouchtchenko
Post by Dmitri Iouchtchenko
Post by Christian Solje
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
).
Post by Dmitri Iouchtchenko
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
).
Post by Dmitri Iouchtchenko
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.
Post by Dmitri Iouchtchenko
but it still works fine for me. I suspect it's because xmobar exits
automatically when its handle is closed.
Yeah, this is fine.
https://paste.fedoraproject.org/317789/54474221/
- xmonad talks to xmonadpropwrite which writes a property to the root
window with the xmonad part of the bar (per monitor);
--user session (one service per monitor, specified like
- 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
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
Best regards

Christian SÞlje
Email: ***@gmail.com
Phone: +4522612930
Continue reading on narkive:
Loading...