summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmvol
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-16 21:40:35 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-16 21:40:35 +0200
commitbd1e9cdb2ac7e7e701e67a6c06b3816fd2609789 (patch)
tree1ce5e9caf111626988149d70429ca9e5ee4af2ee /bin/guiscripts/dmvol
parentd7e31fd34069c7222c956459cc799c6d07bd4b5e (diff)
renamed dmvol
Diffstat (limited to 'bin/guiscripts/dmvol')
-rwxr-xr-xbin/guiscripts/dmvol23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/guiscripts/dmvol b/bin/guiscripts/dmvol
deleted file mode 100755
index 0f36e18..0000000
--- a/bin/guiscripts/dmvol
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-if [ "$MENUCMD" = "tofi" ]
-then
- menucmd="tofi --width 5% --height 10% --prompt-text"
-elif [ "$MENUCMD" = "dmenu" ]
-then
- menucmd="dmenu -g 2 -l 1 -p"
-else
- menucmd="fzf --prompt"
-fi
-
-while true
-do
- volume="$(mpc volume | awk '{print $2}' | cut -f1 -d'%')"
- choice="$(echo "plus\nmin" |
- $menucmd "$volume" |
- sed 's/plus/+/;s/min/-/')"
- test -z "$choice" && break
- nb="$($menucmd "$volume$choice" < /dev/null)"
- test -z "$nb" && break
- mpc volume "$choice$nb"
-done