aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2016-03-26 21:15:24 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2016-03-26 21:15:24 +0100
commit5287466d9b12f385bc42dad3e21dc49c0b82ca9b (patch)
treef68e8d83c421964d48d78b3204a2c98cd5f9dda0
parent2280a8ab9fa2eae9362f7e3f51b167c8d1ec646b (diff)
Minor change to dwm-statusbar for more useful volume display
-rwxr-xr-xdwm-statusbar4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm-statusbar b/dwm-statusbar
index 453488e..a79f328 100755
--- a/dwm-statusbar
+++ b/dwm-statusbar
@@ -37,8 +37,8 @@ print_time() {
print_volume() {
# empty E022, low E023, full E024, mid E03B
- volume=$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')
- mute="$(amixer get Master | tail -n1 | sed -r 's/.*\[(on|off)\].*/\1/')"
+ volume=$(amixer get Master -M | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')
+ mute="$(amixer get Master -M | tail -n1 | sed -r 's/.*\[(on|off)\].*/\1/')"
if [ "$mute" == "off" ]; then
vol_colour=$colour_warning