aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/volume
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-18 18:08:51 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-18 18:08:51 +0100
commit798ed274c84f265bdf9a28fd171ff36807ff1b27 (patch)
treede94fe4cd2269e73269ee4f25c7a0211002490c8 /.local/bin/volume
parent8b8325da143e88cc1144f5ddc26f717d9b98aafd (diff)
dotfiles changes
Diffstat (limited to '.local/bin/volume')
-rwxr-xr-x.local/bin/volume9
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