#!/bin/sh if test "Mute: yes" = "$(pactl get-sink-mute 0)" then echo  exit fi echo  $(pactl get-sink-volume $(pactl list sinks |sed '/^Sink #./!d;s/^Sink #\(.\)/\1/' |tail -n1) |sed -E '/balance/d;s/.*([0-9 ][0-9 ][0-9]%).*/\1/' |tr -d " ")