Look for ATTRIB events for notifications updates; remove "Pickup" menu

Picking up call can be done from both dunst notification & notifications menu;
so for more consistency / less bugs the Pickup menu entry has been removed.
This commit is contained in:
Miles Alan 2020-08-20 21:55:46 -05:00
parent 7559984430
commit c5b665ca4f
5 changed files with 5 additions and 15 deletions

View file

@ -343,16 +343,6 @@ getprogchoices() {
# E.g. sets CHOICES var
programchoicesinit "$@"
# Decorate menu at top *always* w/ incoming call entry if present
if [ -e "$NOTIFDIR"/incomingcall ]; then
INCOMINGCALLMSG="$(tail -n+3 "$NOTIFDIR"/incomingcall)"
INCOMINGCALLPICKUPACTION="$(head -n1 "$NOTIFDIR"/incomingcall)"
CHOICES="
$INCOMINGCALLMSG ^ sh -c "rm "$NOTIFDIR"/incomingcall; "$INCOMINGCALLPICKUPACTION""
$CHOICES
"
fi
# For the Sys menu decorate at top with notifications if >1 notification
if [ "$WINNAME" = "Sys" ]; then
NNOTIFICATIONS="$(find "$NOTIFDIR" -type f | wc -l)"