#!/bin/sh case $BLOCK_BUTTON in 1) i3-msg "exec urxvt -e alsamixer" >/dev/null ;; 3) pgrep -x dunst >/dev/null && notify-send -h string:x-canonical-private-synchronous:i3volHint -t 2000 "Click for alsamixer" ;; esac vol=$(pactl list sinks | grep "Volume: f" | tail -n 1 | awk '{print $5}') mute=$(pactl list sinks | grep "Mute:" | cut -d' ' -f2 | tail -n 1) if [ "$mute" = "no" ]; then echo "🔊 $vol" else echo "🔇($vol)" fi