1
0
Fork 0
ryzowanie/config/i3blocks/blocklets/microphone

17 lines
276 B
Text
Raw Permalink Normal View History

2024-06-11 21:55:28 +02:00
#!/bin/sh
case $BLOCK_BUTTON in
1) pamixer -t ;;
3) pavucontrol ;;
4) pamixer -i 5 ;;
5) pamixer -d 5 ;;
esac
vol=$(pamixer --get-volume)%
if [[ $(pamixer --get-mute) = "true" ]]
then
echo '<span foreground="#FF0000"> '$vol'</span>'
else
echo "" $vol
fi