Implemented shortcut for picking up incoming calls #135
This commit is contained in:
parent
a42f160ed2
commit
9f11cd6a63
1 changed files with 11 additions and 0 deletions
|
@ -384,6 +384,7 @@ getprogchoices() {
|
|||
# E.g. sets CHOICES var
|
||||
programchoicesinit "$@"
|
||||
|
||||
|
||||
# For the Sys menu decorate at top with notifications if >1 notification
|
||||
if [ "$WINNAME" = "Sys" ]; then
|
||||
NNOTIFICATIONS="$(find "$NOTIFDIR" -type f | wc -l)"
|
||||
|
@ -395,6 +396,16 @@ getprogchoices() {
|
|||
fi
|
||||
fi
|
||||
|
||||
#shellcheck disable=SC2044
|
||||
for NOTIFFILE in $(find "$NOTIFDIR" -name 'incomingcall*'); do
|
||||
NOTIFACTION="$(head -n1 "$NOTIFFILE")"
|
||||
CHOICES="
|
||||
Pick up incoming call ^ 0 ^ $NOTIFACTION
|
||||
$CHOICES
|
||||
"
|
||||
break
|
||||
done
|
||||
|
||||
# Decorate menu at bottom w/ system menu entry if not system menu
|
||||
echo $WINNAME | grep -v Sys && CHOICES="
|
||||
$CHOICES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue