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:
parent
7559984430
commit
c5b665ca4f
5 changed files with 5 additions and 15 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue