Sept. 3, 2008

Tipp: Now Playing with MPD

a 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:

Kategorien: Software
Tagged: Tipps english now playing music MPD mpc notifiy-send Script

0 Kommentare

Kommentare

Kommentar schreiben