#!/bin/sh # Prints the current volume or ﱝ if muted. [ "$(pamixer --get-mute)" = true ] && echo "\033[11mﱝ\033[10m" && exit vol="$(pamixer --get-volume)" if [ "$vol" -gt "70" ]; then icon="" elif [ "$vol" -gt "30" ]; then icon="" elif [ "$vol" -gt "0" ]; then icon="" elif [ "$vol" -eq "0" ]; then icon="" else printf "\033[11m\033[10m " && exit fi printf "\033[11m%s\033[10m %s\n" "$icon" "$vol"