<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks, It works perfect!<br>I've adapted Roman Cheplyaka's answer to my case, it works also good, but after a while, I've noticed that it writes to xmobar and also to ~/.xsession-errors, maybe I've missed something.<br>Later, I've seen your answer, tried it and saw it writes only to xmobar and not to ~/.xsession-errors anymore so I keep it.<br><br>--- En date de&nbsp;: <b>Sam 23.5.09, Johannes Höhn </b>a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">, Run Com "bash" ["~/system/mpc.sh"] "mpc" 10<br><div class="plainMail">worked fine for me with<br>#! /bin/sh<br>echo -n "$(mpc --format "%file%" | head -n 1)"<br></div></blockquote></td></tr></table><br>