notifier

Checks current IM messages for different platforms and sends a notification for new messages
git clone https://src.jayvii.de/pub/notifier.git
Log | Files | Refs | README

commit 6156099fb3425d5b508e2a7b95953615d758cb7a
parent 025d48109163c951821c1352ca08039a909d1a25
Author: JayVii <jayvii@posteo.de>
Date:   Sun, 22 Aug 2021 14:58:02 +0200

Parse the Message too...

Diffstat:
Mim-notifier.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/im-notifier.sh b/im-notifier.sh @@ -14,7 +14,7 @@ function im_notify { --dest=org.freedesktop.Notifications \ --object-path=/org/freedesktop/Notifications \ --method=org.freedesktop.Notifications.Notify \ - "$1" $2 "$3" "$1" '[]' '{"category": <"im.received">}' 3000 + "$1" $2 "$3" "$1" "$4" '[]' '{"category": <"im.received">}' 3000 echo 1 > /sys/devices/platform/leds/leds/pinephone\:blue/brightness } function im_unnotify { @@ -39,7 +39,7 @@ function tg_kill { fi } function tg_notify { - im_notify "Telegram" $2 "telegram" + im_notify "Telegram" $2 "telegram" $1 } # Run Daemon ------------------------------------------------------------------