diff --git a/logactivewin.sh b/logactivewin.sh index 672da4f..73a1c1d 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=false; if [[ $(gnome-screensaver-command -q) =~ "is active" ]]; then islocked=true; fi if [ $islocked = true ]; then curtitle="__LOCKEDSCREEN" else