pulseaudio-tail: fix grep ouput

This commit is contained in:
Mustaqim Malim 2018-08-28 07:50:03 +02:00 committed by x70b1
parent 42347e8662
commit 229adb3970

View File

@ -17,7 +17,7 @@ volume_mute() {
volume_print() {
if pacmd list-sinks | grep active | head -n 1 | grep -q speaker; then
icon="#1"
elif pacmd list-sinks | grep active | head -n 1 | grep headphones; then
elif pacmd list-sinks | grep active | head -n 1 | grep -q headphones; then
icon="#2"
else
icon="#3"