aboutsummaryrefslogtreecommitdiffstats
path: root/bin/notify_mpd
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2023-12-03 18:33:16 +0100
committerDavid Runge <dave@sleepmap.de>2023-12-03 18:33:16 +0100
commit2f694cefe3d30fe65320941bb5ee77472fff0e2b (patch)
tree84aa7554b4ea733302a1ef62229dbfa67f50474e /bin/notify_mpd
parent6760e35c003b7a8efd9f3564773e5ff6a73bfe60 (diff)
downloaddotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.gz
dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.bz2
dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.xz
dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.zip
bin: Remove unused scripts
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to 'bin/notify_mpd')
-rwxr-xr-xbin/notify_mpd42
1 files changed, 0 insertions, 42 deletions
diff --git a/bin/notify_mpd b/bin/notify_mpd
deleted file mode 100755
index 8bdcf8c..0000000
--- a/bin/notify_mpd
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-# TODO: notify-send on non availabilty of mpc
-mpc "$@" > /dev/null
-lines=`mpc | wc -l`
-
-if [ $lines -gt 1 ];
-then
- line1="`mpc | head -n 1`"
- line2="`mpc | head -n 3 | tail -n 2 | sed 's/[a-z]*\:\ off//g'`"
-
- status="`echo $line2 | awk '{ print $1 }'`"
- position="`echo $line2 | awk '{ print $3 }'`"
- position="($position)"
- volume="[`echo $line2 | awk '{ print $5 $6 }' | sed 's/volume\://' | sed 's/repeat\://'`]"
-
- repeat="`echo $line2 | grep -c 'repeat: on' | sed 's/1/r/' | sed 's/0//'`"
- random="`echo $line2 | grep -c 'random: on' | sed 's/1/z/' | sed 's/0//'`"
- single="`echo $line2 | grep -c 'single: on' | sed 's/1/s/' | sed 's/0//'`"
- consume="`echo $line2 | grep -c 'consume: on' | sed 's/1/c/' | sed 's/0//'`"
- flags="[$repeat$random$single$consume]"
-
- title="$line1"
- text="$status $position $flags $volume"
-
-else
- line="`mpc | sed 's/[a-z]*\:\ off//g'`"
-
- volume="[`echo $line | awk '{ print $2 }'`]"
-
- repeat="`echo $line | grep -c 'repeat: on' | sed 's/1/r/' | sed 's/0//'`"
- random="`echo $line | grep -c 'random: on' | sed 's/1/z/' | sed 's/0//'`"
- single="`echo $line | grep -c 'single: on' | sed 's/1/s/' | sed 's/0//'`"
- consume="`echo $line | grep -c 'consume: on' | sed 's/1/c/' | sed 's/0//'`"
- flags="[$repeat$random$single$consume]"
-
- title="not playing"
- text="$flags $volume"
-fi
-
-## NOTIFY-SEND
-notify-send -t 2000 "$title" "$text"
-