Xmobar not updating

Rated 4.22/5 based on 663 customer reviews

Using named pipes this change is instant and you also void redundant calls. All my startup logic is inside a script which is called from In order to display the volume information we will create a small script which can be used to increase/decrease/mute/show the volume levels.

After each operation it will send the output to the named pipe.

) This works rather nicely with trayer, which support near identical tint and transparency behavior.

Trayer also is nice on Oneiric, because it sizes the new battery icon sensibly, whereas stalonetray doesn’t.

I'm using the script from https://github.com/davidbrewer/xmonad-ubuntu-conf and have configured xmobar as described on github.

(Someone should also drum up a more complete set of XRender bindings!

However, when I run it at the command line it appears to be working: Run your "get-volume" script, replace your current line with: Run Com "bash" ["~/.xmonad/get-volume"] "myvolume" 10 I don't know why the interpreter has to be specified when running scripts(in eg home directory), but my guess is that xmobar looks only in "global" directories specified by the PATH variable for executables.

Bash exists in one or several of those paths, and bash can execute programs anywhere. Run your "get-volume" script, replace your current line with: Run Com "bash" ["~/.xmonad/get-volume"] "myvolume" 10 I don't know why the interpreter has to be specified when running scripts(in eg home directory), but my guess is that xmobar looks only in "global" directories specified by the PATH variable for executables.

Xmobar also has an alsa plugin but distributions do not always compile xmobar with alsa support.

An alternative approach is to write a small script that will parse the output of the command and then call it from xmobar in regular intervals to show the current volume levels.

Leave a Reply