#!/bin/sh mute=$(pulsemixer --get-mute) if [ "$mute" -eq 1 ] || [ "$mute" = "true" ] then echo "婢 muted" else volume=$(pulsemixer --get-volume) left=$(echo "$volume" | cut -d' ' -f1) right=$(echo "$volume" | cut -d' ' -f2) average=$(((left+right)/2)) echo "墳 $average%" fi