myhome/.local/bin/volume

8 lines
417 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
NOTIFY=no
pkill -RTMIN+10 dwmblocks
[ "$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 "