aboutsummaryrefslogtreecommitdiff
path: root/bin/vol
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vol')
-rwxr-xr-xbin/vol16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/vol b/bin/vol
deleted file mode 100755
index 003e833..0000000
--- a/bin/vol
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# prints volume from pulseaudio
-vol() {
- vol="$(pactl get-sink-volume @DEFAULT_SINK@ | awk ' { print $5 } ' | sed -e 's;%;;')"
- mute="$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}' | sed -e 's;não;0;' -e 's;sim;1;')"
-
- icon=""
-
- # if muted
- [ "$mute" -eq 1 ] || [ "$vol" -eq 0 ] && icon="婢" && vol=0
-
- printf "%s %s%%" "$icon" "$vol"
-}
-
-vol