From 3a36b18d65fb84793fc23811d727fcc6574c45d7 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 21 Aug 2023 09:14:25 +0200 Subject: [PATCH] feat: Add desktop notification functionality with icon Adds functionality to send desktop notifications with an icon. The `notify()` function now accepts an optional `urgency` parameter and a `timeout` parameter. The notification is sent using the `notify-send` command and includes an icon. The icon used is the "parcel-delivery-icon.webp" file located in the assets folder. --- assets/parcel-delivery-icon.txt | 3 +++ assets/parcel-delivery-icon.webp | Bin 0 -> 4592 bytes trackbert.py | 13 +++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 assets/parcel-delivery-icon.txt create mode 100644 assets/parcel-delivery-icon.webp diff --git a/assets/parcel-delivery-icon.txt b/assets/parcel-delivery-icon.txt new file mode 100644 index 0000000..b1244c0 --- /dev/null +++ b/assets/parcel-delivery-icon.txt @@ -0,0 +1,3 @@ +Icon taken from uxwing.com: https://uxwing.com/parcel-delivery-icon/ + +License for the icon: https://uxwing.com/license/ \ No newline at end of file diff --git a/assets/parcel-delivery-icon.webp b/assets/parcel-delivery-icon.webp new file mode 100644 index 0000000000000000000000000000000000000000..81df2c641d439ff0572b218f932557b7f71b0e98 GIT binary patch literal 4592 zcmeI0=|2?iyT@mUX)qMom#^$uDr5;osH|fjjD26mWFL`TUmCJE*6bS8jD03cmTXx< z7>pSqdqN>wqN8(u56#& zYYHb5!^hXs+`AR8Y!vtfhr8;ux-bS{4m{gCL@WE!zcxoUsDHM%r@^QwDb~yt;Gn5Y zn0E@*;e4$Zm=9)A=uvh?|P_d zE`q%*eFbULP-(3~gPH!f6iMaF?vYMjnBz`PBDk;5;E%Np&_o$XOH99%efW&{w zali90uBHgc92{QYj&L(tdvUd+=;OdYX)C$iJcqFcH|oW-tEa8^Ty65@-CR%7mHKfyn$lkWMXmFo5o*X z!kg!CmPuc0Cw{!3F(PhVWQR{^iToHHaGR--Sn47&URKJPr#rhjx1Xd(u9qoYXq=Kg zvwxW&&~}Y#daO5b(QOz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