dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d4f36cf9cd18e33525d7941a3205105efb97b12a
parent 80db5488018df736b5d0a69fda18dfa2282d9b04
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  2 Jan 2019 15:15:17 +0100

Increase urgency for calendar notifications

Diffstat:
Mlinks/bin/calcurse_reminders.py | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/links/bin/calcurse_reminders.py b/links/bin/calcurse_reminders.py @@ -29,7 +29,7 @@ def show_time(event, s = ""): # show scheduled event hrs = str(event[0][0]); mnts = str(event[0][1]) mnts = "0"+mnts if len(mnts) != 2 else mnts - subprocess.call(["notify-send", s, "At "+hrs+":"+mnts+" - "+event[1]]) + subprocess.call(["notify-send", "--urgency=critical", s, "At "+hrs+":"+mnts+" - "+event[1]]) startups = []; times = [] @@ -52,7 +52,7 @@ while True: if not item in startups: # all- day events if len(item) == 1: - subprocess.call(["notify-send", "Today - "+item[0]]) + subprocess.call(["notify-send", "--urgency=critical", "Today - "+item[0]]) # time- specific events elif len(item) == 2: show_time(item, "Appointment") @@ -65,4 +65,4 @@ while True: times.append(item) # clean up events startups = cleanup(startups, groups); times = cleanup(times, groups) - time.sleep(30)- \ No newline at end of file + time.sleep(30)