diff options
| author | krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> | 2022-02-17 18:13:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 18:13:14 +0100 |
| commit | c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5 (patch) | |
| tree | 21b640553e5efd77b05cb63dbb30496867ce224d /.local/bin/statusbar | |
| parent | 9ad912fe4eaf8c1b9c844780829aaea693c1e6de (diff) | |
| parent | 82b70e3a8e3aed45998c38024e8c3e16f9680cff (diff) | |
| download | eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.tar.gz eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.tar.zst eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.zip | |
Merge branch 'LukeSmithxyz:master' into patch-4
Diffstat (limited to '.local/bin/statusbar')
| -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%" |
