
Audacious 2.x IRC Now Playing Announcer Manual-paste
By: a guest on Aug 19th, 2010 | syntax:
Bash | size: 0.78 KB | hits: 167 | expires: Never
#!usr/bin/bash
#Audacious 2.x IRC Now Playing Announcer Manual-paste by Honoo http://daishirokisame.wordpress.com
#This script requires Audacious 2.x, xclip and notify-send installed
#Try to see if Audacious is running, if it is then proceed with the output, else ignore it
#and notify the user that it is not running
if [ -z "$(pgrep audacious2)" ]
then
DISPLAY=:0.0 notify-send "Audacious Text Announcer (aud-announceme):" "Audacious is not running."
else
echo "/me np: 8,1" `audtool2 current-song` " 5" `audtool2 current-song-info` " at 10[ " `audtool2 current-song-output-length` " - 7" `audtool2 current-song-length` " ]"| xclip
DISPLAY=:0.0 notify-send "Successfully done! Go into your IRC client" " and just press the middle mouse button to paste it!"
fi