.dotfiles/configs/dunst/scripts/actions

28 lines
353 B
Plaintext
Raw Normal View History

2022-05-13 19:19:05 +02:00
#!/bin/bash
reply_action () {
echo "Eyyy"
}
forward_action () {
echo "Sup"
}
handle_dismiss () {
echo "Dismiss"
}
ACTION=$(dunstify --action="default,Reply" --action="forwardAction,Forward" "Message Received")
case "$ACTION" in
"default")
reply_action
;;
"forwardAction")
forward_action
;;
"2")
handle_dismiss
;;
esac