12 lines
229 B
Bash
Executable File
12 lines
229 B
Bash
Executable File
#!/bin/sh
|
|
|
|
status=$(pactl list sinks | grep "Mute:" | awk '{print $2}')
|
|
volume=$(pactl list sinks | grep "Volume: front" | awk {'print $5'})
|
|
|
|
if [ "$status" = "no" ]; then
|
|
echo " $volume"
|
|
else
|
|
echo " $volume"
|
|
fi
|
|
|