From ef8fcf32cf97bf8fb33c25f11667572c8122b911 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda <jirikalvoda@kam.mff.cuni.cz> Date: Fri, 12 Feb 2021 18:38:17 +0100 Subject: [PATCH] not2osd: better color and ignore "This site has been updated" notification. --- not2osd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/not2osd b/not2osd index 94855ee..d77d71c 100755 --- a/not2osd +++ b/not2osd @@ -83,9 +83,12 @@ class NotificationFetcher(dbus.service.Object): for i in range(len(bo)): if bo[i]!="" and bo[i][0]=='-': bo[i] = ' '+bo[i]; + for i in range(len(bo)): + if bo[i] == "This site has been updated in the background.": + return notification_id if (expire_timeout <= 0) or (expire_timeout > 20000): expire_timeout = 5000 - cmd = ["osdc","--duration="+str(expire_timeout),"--min-duration=1000","--color=blue","--outline-color=red"] + su + ["--outline-color=black"] + bo + cmd = ["osdc","--duration="+str(expire_timeout),"--min-duration=1000","--color=#99F","--outline-color=red"] + su + ["--outline-color=black"] + bo subprocess.call(cmd) -- GitLab