Wikia

Music Player Daemon Community Wiki

Hack:smpc

525pages on
this wiki
Talk0

Use it with dzen to show a nice output of mpc at the top of the screen (you can modify this if you know how to use dzen well, i just dled it xD):


smpc.sh:

#!/bin/bash
opt=$@
mpc $opt &> /dev/null 
title="`mpc --format \"[[%artist%  - ]%title%]\" | head -n 1`"
status="`mpc | head -n 2 | tail -n 1`"
volume="`mpc | tail -n 1`"
message="$title -- $status -- $volume" 
echo $message
(echo $message; sleep 2) | dzen2 -u

Around Wikia's network

Random Wiki