[xmonad] xmobar dynamic spacing
Platon Pronko
platon7pronko at gmail.com
Fri Mar 24 14:37:27 UTC 2023
Maybe you can customize the value you provide to `shorten` depending on the screen size?
(a bit crumbesome, but might be easier than switching between bar applications, especially since polybar seems to have difficulties with displaying Xmonad workspaces info)
--
Best regards,
Platon Pronko
PGP 2A62D77A7A2CB94E
On 2023-03-24 22:11, Brandon Allbery wrote:
> Polybar is a popular alternative. I'll have to dig the rest of your
> message out of the spamtrap :/ (or more likely let someone more
> familiar with xmobar do it) but xmobar isn't really good at dynamic
> spacing.
>
> On Fri, Mar 24, 2023 at 10:07 AM Eyal Erez <oneself at gmail.com> wrote:
>>
>> Spam detection software, running on the system "mail.haskell.org", has
>> identified this incoming email as possible spam. The original message
>> has been attached to this so you can view it (if it isn't spam) or label
>> similar future email. If you have any questions, see
>> @@CONTACT_ADDRESS@@ for details.
>>
>> Content preview: Any advice would be greatly appreciated. Also, are there any
>> recommended alternatives to xmobar? On Mon, Mar 13, 2023 at 7:40 PM Eyal
>> Erez wrote: > 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. > > [...]
>>
>> Content analysis details: (5.1 points, 5.0 required)
>>
>> pts rule name description
>> ---- ---------------------- --------------------------------------------------
>> 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
>> (oneself[at]gmail.com)
>> -0.0 SPF_PASS SPF: sender matches SPF record
>> 1.4 HTML_IMAGE_ONLY_28 BODY: HTML: images with 2400-2800 bytes of words
>> 0.0 HTML_MESSAGE BODY: HTML included in message
>> 1.0 HTML_FONT_FACE_BAD BODY: HTML font face is not a word
>> 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60%
>> [score: 0.5000]
>> 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
>> 1.9 FREEMAIL_REPLY From and body contain different freemails
>>
>> The original message was not completely plain text, and may be unsafe to
>> open with some email clients; in particular, it may contain a virus,
>> or confirm that your address can receive spam. If you wish to view
>> it, it may be safer to save it to a file and open it with an editor.
>>
>> _______________________________________________
>> xmonad mailing list
>> xmonad at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>
>
>
More information about the xmonad
mailing list