2021-03-22 21:27:54 +01:00
|
|
|
#!/bin/bash
|
2021-03-24 00:54:14 +01:00
|
|
|
NOTIFY=no
|
2021-03-22 21:27:54 +01:00
|
|
|
pkill -RTMIN+10 dwmblocks
|
2021-03-24 00:54:14 +01:00
|
|
|
|
|
|
|
[ "$1" = "up" ] && ponymix increase 5 > /dev/null && [ $NOTIFY == "yes" ] && notify-send "🔊 Volume $(ponymix get-volume)"
|
|
|
|
[ "$1" = "down" ] && ponymix decrease 5 > /dev/null && [ $NOTIFY == "yes" ] && notify-send "🔉 Volume $(ponymix get-volume)"
|
|
|
|
[ "$1" = "toggle" ] && ponymix toggle> /dev/null && [ $NOTIFY == "no" ] && notify-send "🔇 Volume (un)mute "
|