diff options
Diffstat (limited to 'home/xyz/.local/bin')
-rwxr-xr-x | home/xyz/.local/bin/sbar | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar index 3e1a6eed..2981d683 100755 --- a/home/xyz/.local/bin/sbar +++ b/home/xyz/.local/bin/sbar @@ -33,10 +33,12 @@ update_vpn () { } update_vol () { + # $(NF-1) for both alsa and pulseaudio vol="$(amixer get Master | awk -F'[][]' 'END{printf"%d %s",($(NF-1)=="on")?1:0,$2}')" } update_mic () { + # $(NF-1) for both alsa and pulseaudio mic="$(amixer get Capture | awk -F'[][]' 'END{print $(NF-1)}' | bool)" } |