#!/bin/sh # Prints the current volume or MUT if muted. if [ "$(pamixer --get-mute)" = true ]; then vol="MUT" else vol="$(pamixer --get-volume)" fi # for slstatus printf "%s" "$vol" > /tmp/volume # for dwmblocks printf "%3d" $vol