diff options
Diffstat (limited to 'echovol')
| -rwxr-xr-x | echovol | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#!/bin/sh + +volume=$(pactl list sinks | grep -A 15 'Sink #0' | grep 'Volume:' | awk '{print $5}' | tr -d '%' | head -1) +mute=$(pactl list sinks | grep -A 15 'Sink #0' | grep 'Mute' | awk '{print $2}') + +if [ "$mute" = "yes" ]; then + echo "mute" +else + echo "$volume%" +fi |
