summaryrefslogtreecommitdiff
path: root/echovol
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-21 10:36:12 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-21 10:36:12 +0100
commit88f0243428c4cf39029c8ffc5a7e1634951158a0 (patch)
treef8b05b9f056dd72b7955f90560c453b4c317bd92 /echovol
parent83954961af8b6337da100e038561f2fd975ac1fe (diff)
downloadchadscripts-88f0243428c4cf39029c8ffc5a7e1634951158a0.tar.gz
chadscripts-88f0243428c4cf39029c8ffc5a7e1634951158a0.tar.bz2
chadscripts-88f0243428c4cf39029c8ffc5a7e1634951158a0.zip
add comments to some scripts
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}')