aboutsummaryrefslogtreecommitdiffstats
path: root/dwm-statusbar
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2017-05-03 13:17:51 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2017-05-03 13:17:51 +0200
commitcb5c32e5fdab747fb7cb49a254a3057b03bf06c8 (patch)
tree7a8498925a1d18da0068c21d3065b96906423efa /dwm-statusbar
parent4ba8316ee8bba3fcad37a65bf9bdfefdea044623 (diff)
Modified statusbar so it shows proper volume percentage
Diffstat (limited to 'dwm-statusbar')
-rwxr-xr-xdwm-statusbar2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm-statusbar b/dwm-statusbar
index fd5b5f2..3008609 100755
--- a/dwm-statusbar
+++ b/dwm-statusbar
@@ -38,7 +38,7 @@ print_time() {
print_volume() {
# empty E022, low E023, full E024, mid E03B
- volume=$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')
+ volume=$(amixer get Master -M | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')
mute="$(amixer get Master | tail -n1 | sed -r 's/.*\[(on|off)\].*/\1/')"
if [ "$mute" == "off" ]; then