Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • This didn't work for me. As it finished executing and does not listen to the state changed. Commented Nov 1, 2016 at 13:12
  • which screen saver are you using? gnome or xscreensaver? which flavor ubuntu, xubuntu, kubuntu etc. which version (it was tested on 16.04) Commented Nov 1, 2016 at 14:06
  • ubuntu gnome 16.04 Commented Nov 2, 2016 at 9:25
  • 1
    this worked for me on Ubuntu 19.10, but for me the "else" condition kept triggering when other messages unrelated messages popped up on invocation. So I just changed the logic to explicitly check for "false" Commented Mar 10, 2020 at 17:02
  • 1
    Might be easier to use a case rather than (non-portable) [[. Instead of grep|awk, consider using a single awk invocation (awk '$1 == "boolean" {print $2}'). Commented Oct 13, 2022 at 15:55