summaryrefslogtreecommitdiffstats
path: root/bin/hush/volume
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hush/volume')
-rwxr-xr-xbin/hush/volume9
1 files changed, 0 insertions, 9 deletions
diff --git a/bin/hush/volume b/bin/hush/volume
index bc37b45..e4c81fb 100755
--- a/bin/hush/volume
+++ b/bin/hush/volume
@@ -13,12 +13,3 @@ case $1 in
pactl set-sink-mute 0 toggle
;;
esac
-
-INFO=$(pacmd dump | grep analog-stereo)
-VOLUME=$(echo "$INFO" | grep 'set-sink-volume' | cut -d' ' -f 3 | perl -e'my $vol = 100*oct(<>)/0x10000; print $vol > 100 ? 100 : $vol')
-STATE=$(echo "$INFO" | grep 'set-sink-mute' | cut -d' ' -f 3)
-if [[ "x$STATE" == "xyes" ]]; then
- volnoti-show -m
-else
- volnoti-show $VOLUME
-fi