scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit f4613ba20afa3d128db438d280d26e1b0d3d2198
parent c2e007f8a5e8f20868c1a63e8adc9c99df104a03
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon,  7 Nov 2016 18:53:11 +0100

[dwmstatus] use the 1st available sink.

Diffstat:
Msrc/dwmstatus | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dwmstatus b/src/dwmstatus @@ -58,7 +58,7 @@ getalsavol() { } getpulsevol() { - fds="$(pactl list sinks |grep -A9 "Sink #8")" + fds="$(pactl list sinks |grep -m1 -A9 "^Sink")" pct="$(echo "$fds" |tail -1 |cut -d'/' -f2 |tr -d ' ')" mute="$(echo "$fds" |tail -2 |head -1 |cut -d: -f2 |tr -d ' ')" [ "$mute" = "no" ] && echo "$pct" || echo "${pct}*"