[xmonad] xmobar dynamic spacing
Eyal Erez
oneself at gmail.com
Mon Mar 13 17:40:32 UTC 2023
Hi,
I hope that this is the right place to ask. If not, please let me know.
I use xmonad with xmobar and trayer. Trayer is set in the upper right
corner, and xmobar fills the remainder of the top of the screen. I have
several right-aligned widgets, including date/time, CPU, memory, network,
etc., and two left-aligned widgets, which are the active workspace name and
the name of the active window. Currently, I set the name of the active
window to "shorten 200" in my xmonad.hs file. However, I use several
monitors with varying screen sizes, so it is challenging to set an
absolute value. When the screen is narrow, and the window title is long, it
pushes some widgets out of the right side of xmobar. I would like the
window title to take up as much space as possible but leave the other
right-aligned widgets where they are. Is there any way to do that?
Short window title
[image: image.png]
Long window title
[image: image.png]
--
There are 10 types of people, those who know binary and those who don't.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20230313/6b91cd5e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8383 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20230313/6b91cd5e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8203 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20230313/6b91cd5e/attachment-0001.png>
More information about the xmonad
mailing list