#!/bin/sh cur_vol=$(pamixer --get-volume) if [ $(pamixer --get-mute) = true ]; then printf 'mt \n' "$cur_vol" else printf '%02d \n' "$cur_vol" fi