diff options
Diffstat (limited to 'bin/lastfm.sh')
-rwxr-xr-x | bin/lastfm.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/lastfm.sh b/bin/lastfm.sh new file mode 100755 index 0000000..70057b7 --- /dev/null +++ b/bin/lastfm.sh @@ -0,0 +1,8 @@ +if [ "$(pgrep mpdscribble)" ] +then + #killall mpdscribble && echo "last.fm scrobbling is disabled" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -ta c -sa c + killall mpdscribble && echo "last.fm scrobbling is disabled" | notify-send --hint=int:transient:1 -t 2000 "MPD" "LastFM Scrobbling Disabled" + else + #mpdscribble && echo "last.fm scrobbling is enabled" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -ta c -sa c + mpdscribble && echo "last.fm scrobbling is enabled" | notify-send --hint=int:transient:1 -t 2000 "MPD" "LastFM Scrobbling Enabled" +fi |