#!/bin/bash echo "/me is playing: " > /tmp/qlinfo cat ~/.quodlibet/current | grep "artist=" | sed -e's/artist\=//' >> /tmp/qlinfo echo " - " >> /tmp/qlinfo cat ~/.quodlibet/current | grep "album=" | sed -e's/album\=//' >> /tmp/qlinfo echo " - " >> /tmp/qlinfo cat ~/.quodlibet/current | grep "tracknumber=" | sed -e's/tracknumber\=//' >> /tmp/qlinfo echo " - " >> /tmp/qlinfo cat ~/.quodlibet/current | grep "title=" | sed -e's/title\=//' >> /tmp/qlinfo echo " @ " >> /tmp/qlinfo cat ~/.quodlibet/current | grep "bitrate=" | sed -e's/\~\#bitrate\=//' | sed -e's/000//' >> /tmp/qlinfo echo "kbps" >> /tmp/qlinfo sed -i -e':a;N;$!ba;s/\n//g' /tmp/qlinfo xclip /tmp/qlinfo