summaryrefslogtreecommitdiffstats
path: root/lib/panel/volmon
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-21 20:31:59 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-21 20:31:59 (EDT)
commite0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb (patch)
treeed81ac6411f5f964e56691bdf5c18a45bdd6fd7d /lib/panel/volmon
parente17c5fd38073afb135e3a992498d63bc0ffb181f (diff)
downloadfluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.zip
fluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.tar.gz
fluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.tar.bz2
Move panel applet scripts to lib/panel/
Diffstat (limited to 'lib/panel/volmon')
-rwxr-xr-xlib/panel/volmon10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/panel/volmon b/lib/panel/volmon
new file mode 100755
index 0000000..0b1b87e
--- /dev/null
+++ b/lib/panel/volmon
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+main()
+{
+ vol="$(amixer get Master,0 | \
+ sed -n 's/^.*Playback [0-9]* \[\([0-9]*\)%\].*$/\1/p')"
+ printf '🔉%3d%%\n' ${vol}
+}
+
+main "${@}"