Code: Select all
#!/bin/sh
### MPC Gui Frontend
# (C) Chris Dorman, 2013
# License : CC-BY-SA 3.0
# Requires MPC, and MPD along with there dependencies
export mpc="
<window title=\"MPC Gui\">
<vbox>
<button>
<label>Prev</label>
<action>mpc prev</action>
<action>refresh:NOW_PLAYING</action>
</button>
<button>
<label>Stop</label>
<action>mpc stop</action>
<action>refresh:NOW_PLAYING</action>
</button>
<button>
<label>Play</label>
<action>mpc play</action>
<action>refresh:NOW_PLAYING</action>
</button>
<button>
<label>Next</label>
<action>mpc next</action>
<action>refresh:NOW_PLAYING</action>
</button>
<frame>
<text>
<label>MPC Gui</label>
</text>
<text>
<input>mpc current</input>
<variable>NOW_PLAYING</variable>
</text>
</frame>
</vbox>
</window>
"
gtkdialog3 -p mpc
Best regards, Chris[/code]