diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-03-23 12:21:25 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-03-23 12:21:25 -0400 |
| commit | c8eae342fe13e0e7956be291c02269de4378681e (patch) | |
| tree | 8072a2f93a1a7af017ce1da21229e4f79d516bfd /.local/bin/statusbar | |
| parent | f6659aac334265a73c48d27a7babdfce1f5f886e (diff) | |
| download | eibhear-c8eae342fe13e0e7956be291c02269de4378681e.tar.gz eibhear-c8eae342fe13e0e7956be291c02269de4378681e.tar.zst eibhear-c8eae342fe13e0e7956be291c02269de4378681e.zip | |
volume multiline output error fixed
Diffstat (limited to '.local/bin/statusbar')
| -rwxr-xr-x | .local/bin/statusbar/volume | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index c16eded..fd59a6f 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -14,7 +14,7 @@ volstat="$(amixer get Master)" echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit -vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed 's/[^0-9]*//g') +vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed "s/[^0-9]*//g;1q") if [ "$vol" -gt "70" ]; then icon="🔊" |
