Skip to content
Snippets Groups Projects
Commit ef8fcf32 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

not2osd: better color and ignore "This site has been updated" notification.

parent 042bd869
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment