summaryrefslogtreecommitdiffstats
path: root/bin/lastfm.sh
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2012-08-11 02:40:34 +0200
committerRasmus Steinke <rasi@xssn.at>2012-08-11 02:40:34 +0200
commitf140a1642ebfde198946ad6760c1003c1cb9a8c3 (patch)
tree7538aa90092f99c661ec3abb4a69944767315dc5 /bin/lastfm.sh
parente3fd45703267ce67d8b1e1fb53a4a1b4ccda551e (diff)
downloaddotfiles-f140a1642ebfde198946ad6760c1003c1cb9a8c3.tar.gz
dotfiles-f140a1642ebfde198946ad6760c1003c1cb9a8c3.tar.xz
scripts
Diffstat (limited to 'bin/lastfm.sh')
-rwxr-xr-xbin/lastfm.sh8
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