diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-18 18:08:51 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-18 18:08:51 +0100 |
| commit | 798ed274c84f265bdf9a28fd171ff36807ff1b27 (patch) | |
| tree | de94fe4cd2269e73269ee4f25c7a0211002490c8 /.local/bin/volume | |
| parent | 8b8325da143e88cc1144f5ddc26f717d9b98aafd (diff) | |
dotfiles changes
Diffstat (limited to '.local/bin/volume')
| -rwxr-xr-x | .local/bin/volume | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.local/bin/volume b/.local/bin/volume index 6acc16c..6e8c689 100755 --- a/.local/bin/volume +++ b/.local/bin/volume @@ -13,8 +13,13 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -[ $(pamixer --get-mute) = true ] && echo 🔇 && exit +[ $(pamixer --get-mute) = true ] && echo 󰓄 && exit vol="$(pamixer --sink 0 --get-volume)" -echo "$vol%" +if [ "$vol" = "0" ]; then + echo 󰓄 +else + printf "󰓃 " + bar "$vol" +fi |