From 230fb1ccf0e9e1dc785a69ab90c06a3e4cc2e768 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 17 Oct 2011 14:42:32 -0400 Subject: [PATCH] hours: check for manually logged screen unlock events --- hours | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hours b/hours index 6fe6b2f..cbcf437 100755 --- a/hours +++ b/hours @@ -117,7 +117,8 @@ def main(argv): line = f.readline() if line == '': break - if re.search(r'gnome-screensaver.*unlocked.login.keyring', line): + if (re.search(r'gnome-screensaver.*unlocked.login.keyring', line) + or re.search(r'screen unlocked', line)): # found a login line dt = get_dt_from_log_line(line) idx = (dt.date() - monday).days