aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/volume
blob: c8c3dc55c6e90c24fe0e0adeb63ef5099aefba74 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
sinks="$(pactl list sinks)"
vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
mpc_vol="$($HOME/.local/scripts/mpc_volume)"

if [[ $mpc_vol == "n/a" ]]
then
    echo " $vol%"
else
    echo " $vol% $mpc_vol%"
fi