summaryrefslogtreecommitdiff
path: root/echovol
diff options
context:
space:
mode:
Diffstat (limited to 'echovol')
-rwxr-xr-xechovol1
1 files changed, 1 insertions, 0 deletions
diff --git a/echovol b/echovol
index 9845a55..8413c1b 100755
--- a/echovol
+++ b/echovol
@@ -1,4 +1,5 @@
#!/bin/sh
+# Print current volume on standard output
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}')