Tipp: Now Playing with MPD
Mittwoch, September 3rd, 2008a convenient way to get “now playing” information from MPD can be achieved by this little script:
Dependencies
- xclip
- mpc (the official mpd commandline client)
- notify-send (from libnotify-bin)
Script
#!/bin/sh mpc|head -n1|xclip notify-send -t 2500 "now playing" "`xclip -o`"
The Script copies the current “artist – track” to the clipboard and displays it as passive popup:

![[Logo]](http://images.laxu.de/layout/schrift_blog.png)


Feed abbonieren
