cdwmblocks/blocks.def/notifications_button.sh

22 lines
325 B
Bash
Executable File

#!/bin/sh
toggleNotifications() {
dunstctl set-paused toggle
}
getNotifications() {
dunstctl history-pop
}
refreshNotificationsBlock() {
sigdwmblocks 6
}
case "$1" in
1) getNotifications ;;
2) toggleNotifications ;;
#3) pactl set-sink-mute @DEFAULT_SINK@ toggle;;
esac
refreshNotificationsBlock