#!/bin/bash if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then echo " mute" else echo " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" fi