Artur Zimmer | 29 May 2013 21:22
Picon

bug: icon endless read

Hi,

xmonad + xmobar(commit 99e1e9c122c0bc5ca509912e26920317517b2215) with StdinReader activ:

so the window title is parsed by xmobar,
if you have a window named: "<icon=/dev/null></icon>" you get a cpu-load of 100%.

for example: firefox title is the head-title of the html.

so following website will produce a cpu-load of 100%:

<html>
<head>
	<title>&lt;icon=/dev/null&gt;title&lt;/icon&gt;</title>
</head>
</html>

and this website will produce anpother color-schema:

<html>
<head>
<title>&lt;fc=red&gt;title&lt;/fc&gt;</title>
</head>
<body>
</body>
</html>

bye,
Artur
(Continue reading)

Daniel Patrick Sullivan | 15 May 2013 02:07
Picon
Gravatar

Render special characters as field separators in template

Hi,

I apologize if this is dumb question;  I am trying to use a special character as the field separator in my template.  I can render the character (a vertical centered dot) by executing the following command from a shell:

--[dps <at> neve]-[~/Dropbox/github/arch_x86_64_configs]--
> echo -e "\x00\x00\xb7"
·

This works all fine and good.  I am using the same font on my xterm as I am using for xmobar.  Now, when I try to copy and paste this character to my template, xmobar does not properly load.  If I delete the character and change it to a period, it does.   So, what I did was try to create a new command that explicitly uses the echo command from above (as opposed to copying and pasting the character directly).  My problem is that xmobar just says "Updating..." and the field separator never renders.  Is there an elegant way render a special character in the template?  Should I just make a bitmap of the character and load that?

Below is my configuration (see %fancyDot%).  Any input you could provide would be most appreciated.  Thank-you, I wish you a wonderful night.

Dan Sullivan

Config {
       --font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
       --This appears to work with any from xfontsel 12/28/2012
       --font = "-nil-profont-medium-r-normal--12-120-72-72-c-60-iso8859-1"
       font = "-*-profont-*-*-*-*-15-*-*-*-*-*-*-*"
       --Place the bar at the bottom, centered with 75% of the screen width
       --, position = BottomW C 75
       , position = Top
       , bgColor = "black"
       , fgColor = "grey"
       , border = BottomB
       , borderColor = "#af00ff"
       --Send the window to the bottom of the window stack initially
       , lowerOnStart = True
       , commands = [
            Run Network "eth0" ["-L","0","-H","32","--normal","grey","--high","grey"] 10
            , Run Cpu ["-L","3","-H","50","--normal","grey","--high","grey"] 10
            , Run Memory ["-t","Mem: <usedratio>%"] 10
            , Run StdinReader
            , Run Com "echo" ["dps"] "echoInitials" 0 --0 means run only once
            , Run Com "date" [] "customClock" 10 --do it once per second (last parameter is tenths of second).
            , Run Com "echo" ["-e", "\"\\x00\\x00\\xb7\""] "fancyDot" 0
       ]
       --The character to be used for indicating commands in the output template.
       , sepChar = "%"
       --The text before the first character will be left aligned, the text between them
       --will be centered, and the text to the right of the last character will be right aligned.
       , alignSep = "}{"
       , template = "%echoInitials% <fc=#8ae234>%fancyDot%</fc> %eth0% %memory% %cpu% %customClock% }{ %StdinReader%"
}

_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Mateusz Kowalczyk | 17 Feb 2013 11:45
Picon

Command execute error with Unicode output

Greetings,

I'm using ‘Run Com "python myscript.py" [] 10"’ to effectively poll and
process some data that is then displayed onto the bar.

It works beautifully until Unicode shows up. I searched around the net
and found issues (many of the years old) with Unicode but not quite the
same I'm experiencing. While other people would have the Unicode not
display at all or display wrongly, I simply get ‘Could not execute
python ~/bin/myscript.py’.

I'm at a quite a loss on how to proceed. I have built with Unicode
support. Moreover, Unicode actually displays if I simply put it into the
config file to test it. I don't understand what the issue might be. Help
appreciated.
--

-- 
Mateusz K.
Devyn Cairns | 2 Feb 2013 11:23
Picon
Gravatar

xmobar's MPD integration does not appear to respect UTF-8

If I play a song with a Japanese title, such as 例えば唄えなかったら, xmobar just shows missing glyph rectangles even though I do have Japanese fonts installed.

--
    ~devyn
_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Jose A. Ortega Ruiz | 3 Dec 2012 01:16
Picon
Gravatar

[ANN] xmobar 0.16 released


I've just released xmobar 0.16, the lightweight text-based system
monitor written in Haskell.  See http://projects.haskell.org/xmobar, and
full release notes below.

As always, thanks a bunch to the many contributors, who keep helping me
improving xmobar and making it more and more useful.  The continuous
flow of patches and suggestions is one the nicest things about hacking
on and maitaining xmobar.

This is a somewhat risky release, because some users are reporting
problems with GHC 7.6.1 and xmonad (see links below), but there are so
many new features and fixes, and happy users of the unstable version,
that i thought a release was in order.  Please, do not hesitate to
complain about problems you might encounter: i'll do my best to fix them
in subsequent releases.

Thanks!

## Version 0.16 (Dec 3, 2012)

_New features_

  - New monitor `AutoMPD`, which uses asynchronous events to display
    MPD status (thanks to Ben Boeckel).
  - New monitor `BufferedPipeReader` displaying data from multiple
    pipes (thanks to Jochen Keil).
  - New monitor `DynNetwork`, which detects the active interface
    automatically, by Reto Hablützel
  - New monitor, `Locks`, displaying the status of lock keys, by
    Patrick Chilton.
  - Extension for DBUS signal handling (Jochen Keil)
  - Hide/Reveal: one can send signals to xmobar and make it (un)hide
    itself (Jochen again).
  - `PipeReader`'s default text is now configurable, by Reto Hablützel.
  - Dependencies updated to latest mtl and libmpd (thanks to Sergei
    Trofimovich).
  - Dependencies on the deprecated dbus-core removed in favour of
    dbus 0.10 (thanks to Jochen Keil).
  - MPris2 now includes genre and composer among its fields.

_Bug fixes_

  - `DiskIO` now can report overall activity in all partitions of a device
    which is not mounted itself (e.g., sda when sda1, sda3, etc. are
    the mounted partitions).  Thanks to John Soros. See [github #73].
  - `DiskU`, the disk usage monitor, works again correctly on Linux,
    instead of randomly crashing every now and then, and reporting
    wrong used size.
  - When using antialiased fonts, we were causing a memory leak in the
    X server by repeatedly allocating colors that, apparently, the
    server doesn't know how to get rid of (even when told so!).  We're
    caching them now and X server memory doesn't grow.
  - Compilation errors and warnings with GHC 7.6 removed (thanks to
    Raghavendra D Prabhu for his reports in [github #71]).

_Known problems_

Some users have reported problems with xmobar compiled with GHC 7.6 in
ArchLinux: see [github #78] and pointers therein.  Please, send
reports of any problems or successes in that regard so that we can fix
any remaining issues.  Thanks!

[github #71]: https://github.com/jaor/xmobar/issues/71
[github #73]: https://github.com/jaor/xmobar/issues/73
[github #78]: https://github.com/jaor/xmobar/issues/78

_______________________________________________
Xmobar mailing list
Xmobar <at> projects.haskell.org
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Reto Hablützel | 29 Aug 2012 23:28
Picon

Experimenting with a dynamic network monitor

Hello there


I've been experimenting with a new dynamic networking plugin for xmobar. What it does is, of a list of configured devices, it shows the most active on the status bar. For me, this was quite handy as I am constantly changing between wired and wireless connection.

If you have some time, please try it out and tell me your suggestions and ideas on how to make it better. Once I have a stable version, I will open a pull request for the master branch at joar's (unless it turns out to be useless).

I use this configuration in my .xmobarrc:
 Run DynNetwork ["eth0", "wlan0"] ["-L","0","-H","32","--normal","green","--high","red"] 10

So it is essentially the same as the normal Network plugin except that it takes a list of devices to scan.

What I want to improve:
 - instead of configuring a list, search for networks devices automatically
 - smarter algorithm to decide which one to display if neither is transferring

Cheers,
Reto
_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Jochen Keil | 5 Aug 2012 12:30
Picon

Automatic flushing for PipeReader (with Patch)


Hello,

I've written a small patch for PipeReader which does the following.

After a given amount of time (atm in tenth of seconds) the input is
"flushed" i.e. overwritten with "" so that any previous input becomes
invisible.

The old behaviour is still available by specifying 0 as flush delay.

As an use case example, I'm using it to temporarily display the
current Volume and Brightness while changing it. Like a much simpler
OSD. :)
If anyone is interested in the shell script that I'm using for this,
just send me a mail.

Best Wishes,

Jochen
Attachment (PipeReader.hs.patch): text/x-patch, 1202 bytes
_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Jose A. Ortega Ruiz | 4 Jun 2012 14:46
Picon
Gravatar

0.15 released!


Hi,

I've just released version 0.15 of xmobar.  In the release notes below
you'll see there's a new compilation option to use GHC's threaded
runtime: one person has reported that xmobar won't work unless you set
that option, but i haven't been able to reproduce the problem:  please
let me know if you need it too, so that we make it the default.

I've been also having problems latetly with the disk usage monitor in my
thinkpad: since a couple months ago or so, xmobar will just die without
any warning, reason or rhyme every now and then... i'm blaming the
statfs FFI calls, because i would expect an exception or similar on the
Haskell side.  Please let me know if you're also suffering from this
problem.

Happy monitoring!

## Version 0.15 (June 4, 2012)

_Incompatible changes_

  - `Batt` monitor no longer uses `-c` to specify the charge file: it
    should figure things out by itself (cf. [issue 69]).

_New features_

  - New command line option, `-C`, that allows *adding* commands to
    those specified in the configuration file (Ben Boeckel).
  - Dependency on GHC's threaded runtime has been eliminated.
  - New MPRIS (versions 1 and 2) monitor, by Artem Tarasov.
  - New monitor option `-d` to specify the number of decimal places to
    display for float numbers.  Defaults to 0. See [issue 58].
  - New compilation option `--with_threaded`, to use GHC's threaded
    runtime to compile xmobar.  Disabled by default (cf. discussion in
    [github #36]).

_Bug fixes_

  - Stricter build dependencies versioning in cabal file.
  - [issue 56]: vertical alignment of text improved.
  - [issue 64]: display of `watts` in `Batt` monitor fixed.
  - [issue 69]: miscellaneous battery reporting issues.
  - [issue 67]: compilation in DragonFly.
  - DiskIO works also when device path in mtab are symbolic links
    to the real device file.
  - Wireless monitor honours padding settings for ESSID names.
  - CoreTemp monitor fixed for newer kernels ([github #38]).

[issue 56]: http://code.google.com/p/xmobar/issues/detail?id=56
[issue 58]: http://code.google.com/p/xmobar/issues/detail?id=58
[issue 64]: http://code.google.com/p/xmobar/issues/detail?id=64
[issue 67]: http://code.google.com/p/xmobar/issues/detail?id=67
[issue 69]: http://code.google.com/p/xmobar/issues/detail?id=69
[github #36]: https://github.com/jaor/xmobar/issues/38
[github #38]: https://github.com/jaor/xmobar/issues/38

jao
--

-- 
"Light thinks it travels faster than anything but it is wrong. No matter
 how fast light travels it finds the darkness has always got there first,
 and is waiting for it."
  -Terry Pratchett, Reaper Man
Richard Carter | 17 Aug 2011 17:23
Picon
Gravatar

Getting message "Could not parse the template" after upgrade

Hi xmobar people!


I updated a computer this morning which doesn't often get updates, so it just updated to xmobar 0.13-2 from the Arch community repository. However now when I run xmonad, I get a bar which looks like this:

Could not parse the template }{ 93 | Wed Aug 17 2011 11:21:45AM

where }{ is the alignSep, working as it should (the text to the left of it is left-aligned, and the battery and date are in the top right).

So clearly it's having an issue parsing my template. Which I didn't touch before or after the upgrade. I haven't touched it in months. Here is the contents of my xmobarrc file:

Config 
{ bgColor = "black"
, fgColor = "grey"
, position = Top
, lowerOnStart = True
, commands = 
[ Run Date "%a %b %_d %Y %I:%M:%S%p" "date" 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run BatteryP ["BAT0"] ["-t","<left>","--","-O","[on] ","-o",""] 50
]
, alignSep = "}{"
, sepChar = "%"
, template = "mod-p, mod-shift-enter, mod-shift-q }{ %battery% | %date%"
}

Any idea what could be breaking? I've tried removing the hyphens in the text, surrounding it with <fc=#FFFFFF> </fc>, and removing the alignSep. Google is showing nothing, except a person who removed their alignSep to success - and I'd rather not do that, because I want things to be in the top-left and top-right.

Thanks for any help!!
Richard

P.S. I signed up to the mailing list but not yet sure if I am actually receiving the messages, so please reply directly to me (CC the mailing list if you want).
_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Christophe Raffalli | 5 Jun 2011 15:43
Picon

Volume plugin not working on ubuntu 11.4 ?


Hello,

Trying the Volume plugin with:

Volume "default" "Master" [] 10


I get the error message

error: AlsaException.Cons "snd_mixer_selem_get_playback_dB" "Invalig_argument" (Errno 22)

Has anyone having the same problem ?

Cheers,
Christophe


_______________________________________________
Xmobar mailing list
Xmobar@...
http://projects.haskell.org/cgi-bin/mailman/listinfo/xmobar
Jan Snyder | 9 May 2011 19:36
Favicon

xmobar on slackware

Hi, I am using Xmonad on Slackware and need xmobar to work. However, the
bug looks like this:

         xmobar: user error (createFontSet) 

It should be working fine. I tried installing a slackbuild, then I tried
installing it from source, but neither worked. Howeever, Dzen2 works as
one would expect. I also need UTF8 support.

Thanks 

Gmane