summaryrefslogtreecommitdiff
path: root/bin/st-vol
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
commit7b21727285e50b0b050c4ddd70d07542229c5366 (patch)
tree5d369153c5df5b41f3750d25479a68f20169c8ff /bin/st-vol
init
Diffstat (limited to 'bin/st-vol')
-rwxr-xr-xbin/st-vol10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/st-vol b/bin/st-vol
new file mode 100755
index 0000000..970bd68
--- /dev/null
+++ b/bin/st-vol
@@ -0,0 +1,10 @@
+#!/bin/sh
+VOLUME=$(wpctl get-volume @DEFAULT_SINK@)
+#VOLUME=$(mixer | grep vol)
+case $VOLUME in
+ *MUTED*)
+ echo " MUTED";;
+esac
+#VOLUME=$(echo $VOLUME | awk '{print $3}' | sed 's/:.*//;s/^0//;s/\.//')
+VOLUME=$(echo $VOLUME | awk '{print $2}' | sed s/^0\.//g)
+echo " $VOLUME"