#!/bin/sh perc=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F/ '{print $2}' | xargs) num=$(echo ${perc::-1}) echo $num