sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 59697deda71f676f605c7e26c00516ac5ba5a824
parent 6c9d55ce528239ec5963b30547df867987addb0f
Author: Klemens Nanni <kl3@posteo.org>
Date:   Wed, 17 Feb 2016 05:05:55 +0100

[dwm] Update volume script example

1. Use '-n1' instead of ambiguous '-1' with tail
2. awk is way more readable here than sed

Diffstat:
Mdwm.suckless.org/scripts/simple_monitors.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwm.suckless.org/scripts/simple_monitors.md b/dwm.suckless.org/scripts/simple_monitors.md @@ -33,7 +33,7 @@ Returns the temperature of the cpu, in celcius. Volume --- - amixer get Front | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/' + amixer get Front | tail -n1 | awk '{ print $5 }' | tr -d [] Change "Front" to your audio device