[xmonad] xmobar troubles

Jose A. Ortega Ruiz jao at gnu.org
Fri Feb 11 14:53:52 CET 2011


Hi,

On Fri, Feb 11 2011, Tony Morris wrote:

> Hello,
> I am trying to run a script to check gmail as described here (with
> some errors)
> https://wiki.archlinux.org/index.php/Xmobar#Gmail_integration
>
> When I set the template to %mail% and restart xmobar, the bar refuses
> to display. If I set the script to a non-existent file, I see xmobar
> with a message "Could not execute command", so I know it's all
> configured fine, but for the script that checks gmail. If I run that
> script manually, I see a single integer value on standard output.
>
> I can't seem to find any place that xmobar is logging to help identify
> what is causing the error (xmobar refusing to display when asked to
> Run Com my script.

It works for me, with xmobar 0.12 (i haven't tried an earlier
version). Using "mail" as the alias can give problems if you've compiled
the Mail plugin: one thing to try is to change that to, say,
"gmail". Also, make sure that the refresh time has a reasonable value
(e.g., 3000 for checking every five minutes). This is the config line
i'm using:

  , Run Com "sh" ["/home/jao/tmp/gmail.sh"] "gmail" 3000

xmobar logs to either the bar itself or stdout: just run 'xmobar
/path/to/config' in a terminal window to see if there's any additional
error message.

HTH,
jao
-- 
"I don't want to achieve immortality through my work... I want to
achieve it through not dying" -- Woody Allen




More information about the xmonad mailing list