From 812faa06ae61106b02080510ca5e1c7315ae54ae Mon Sep 17 00:00:00 2001 From: Justin Vincent Date: Tue, 24 Feb 2015 09:42:06 -0800 Subject: [PATCH 1/2] Update logactivewin.sh When I run gnome-screensaver-comand I get different results than what's expected. It's also printed to stderr. justinvf@wabbit:~$ gnome-screensaver-command -q ** Message: Screensaver is not running! justinvf@wabbit:~$ gnome-screensaver-command --version gnome-screensaver-command 3.6.1 --- logactivewin.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logactivewin.sh b/logactivewin.sh index 672da4f..dc628b3 100755 --- a/logactivewin.sh +++ b/logactivewin.sh @@ -17,8 +17,7 @@ last_write="0" lasttitle="" while true do - - islocked=true; if [[ $(gnome-screensaver-command -q) =~ .*inactive.* ]]; then islocked=false; fi + islocked=true; if [[ $(gnome-screensaver-command -q 2>&1) =~ (not\ running|inactive) ]]; then islocked=false; fi if [ $islocked = true ]; then curtitle="__LOCKEDSCREEN" else From 0d66e353fd598bf32c85b2b169abcbca25a0e402 Mon Sep 17 00:00:00 2001 From: Justin Vincent Date: Tue, 10 Mar 2015 09:51:26 -0700 Subject: [PATCH 2/2] Update logactivewin.sh --- logactivewin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logactivewin.sh b/logactivewin.sh index dc628b3..73a1c1d 100755 --- a/logactivewin.sh +++ b/logactivewin.sh @@ -17,7 +17,7 @@ last_write="0" lasttitle="" while true do - islocked=true; if [[ $(gnome-screensaver-command -q 2>&1) =~ (not\ running|inactive) ]]; then islocked=false; fi + islocked=false; if [[ $(gnome-screensaver-command -q) =~ "is active" ]]; then islocked=true; fi if [ $islocked = true ]; then curtitle="__LOCKEDSCREEN" else