diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-05-11 14:57:58 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-05-11 14:57:58 (EDT) |
commit | 79fb30926ba3a478679c385e8933c160194b152d (patch) | |
tree | 0a04a6e61a3b968b8c46a083c18fde9848822f96 /lib/panel/volmon | |
parent | 78928a3a3f161d088b118d989ffd893406adce2b (diff) | |
download | fluxbox-79fb30926ba3a478679c385e8933c160194b152d.zip fluxbox-79fb30926ba3a478679c385e8933c160194b152d.tar.gz fluxbox-79fb30926ba3a478679c385e8933c160194b152d.tar.bz2 |
Move panel applet scripts to lib/panel/
Diffstat (limited to 'lib/panel/volmon')
-rwxr-xr-x | lib/panel/volmon | 10 |
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 "${@}" |