Eliminate use of pamixer because it is slow
This commit is contained in:
parent
436aee2220
commit
37c46b0e3a
1 changed files with 3 additions and 3 deletions
|
@ -21,11 +21,11 @@ while getopts ":bvt:" options; do
|
||||||
category='sysinfo'
|
category='sysinfo'
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
# Get volume
|
# Get volume (don't use pamixer because that is way slower)
|
||||||
value="$( pulsemixer --get-volume | cut -f1 -d' ' )%"
|
value=$(pactl get-sink-volume @DEFAULT_SINK@ | cut -d '/' -f2 | grep -o '[0-9]*%')
|
||||||
|
|
||||||
# If audio disabled
|
# If audio disabled
|
||||||
if [ ! "$( pulsemixer --get-mute )" -eq 0 ] ; then
|
if [ ! "$( pactl get-sink-mute @DEFAULT_SINK@ )" -eq "Mute: yes" ] ; then
|
||||||
width=0
|
width=0
|
||||||
value="${value} (Disabled)"
|
value="${value} (Disabled)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue