diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-10-18 08:50:21 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-10-18 08:50:21 -0400 |
| commit | 7deabbf3e443bf7d2afbdd2a57323219e329cbf1 (patch) | |
| tree | aa24522f0e469438facd4acf5e0066232e04b3f6 | |
| parent | 163738e6ad1954c8a8a16dae98829c51cf9da4be (diff) | |
| parent | 96c782f5121d18896470582ead77dbeb8555265e (diff) | |
| download | eibhear-7deabbf3e443bf7d2afbdd2a57323219e329cbf1.tar.gz eibhear-7deabbf3e443bf7d2afbdd2a57323219e329cbf1.tar.zst eibhear-7deabbf3e443bf7d2afbdd2a57323219e329cbf1.zip | |
Merge branch 'coloradocolby-sb-volume-fix'
| -rwxr-xr-x | .local/bin/statusbar/sb-volume | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 61588c3..3cfdc45 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -19,10 +19,12 @@ vol="$(pamixer --get-volume)" if [ "$vol" -gt "70" ]; then icon="🔊" -elif [ "$vol" -lt "30" ]; then +elif [ "$vol" -gt "30" ]; then + icon="🔉" +elif [ "$vol" -gt "0" ]; then icon="🔈" else - icon="🔉" + echo 🔇 && exit fi echo "$icon$vol%" |
