Skip to content

Conversation

@dschep
Copy link
Owner

@dschep dschep commented May 12, 2017

separate backends implemented via a 'multi' meta-backend.
Uses config like this:

backends: [multi]
multi:
    locked:
        pushover:
            user_key: user-api-key
    unfocused:
        default: {}
    focused: {}

This config would cause no notifications if the shell is focused, desktop
notifications when unfocused, and pushover notifications when the screen is
locked. Freaking magic. 🎉

Currently supports linux 🐧 with xscreensaver, lightlocker(detection seems iffy), and Gnome.

There's also a --locked-only cli option.

Todo:

  • macOS 🍎 support
  • Windows 🎏 support
  • a better solution than the multi module
  • documentation

@dschep dschep force-pushed the locked branch 6 times, most recently from b24477c to 72886d4 Compare May 12, 2017 04:00
separate backends implemented via a 'multi' meta-backend.
Uses config like this:

```
backends: [multi]
multi:
    locked:
        pushover:
            user_key: user-api-key
    unfocused:
        default: {}
    focused: {}

```
This config would cause no notifications if the shell is focused, desktop
notifications when unfocused, and pushover notifications when the screen is
locked. Freaking magic. 🎉
@coveralls
Copy link

coveralls commented Jun 8, 2017

Coverage Status

Coverage decreased (-4.5%) to 80.91% when pulling 7e30cc4 on locked into c7cbf8f on master.

@coveralls
Copy link

coveralls commented Oct 1, 2017

Coverage Status

Coverage decreased (-8.3%) to 76.479% when pulling 8ce5240 on locked into 7a79b95 on master.

3 similar comments
@coveralls
Copy link

coveralls commented Oct 1, 2017

Coverage Status

Coverage decreased (-8.3%) to 76.479% when pulling 8ce5240 on locked into 7a79b95 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-8.3%) to 76.479% when pulling 8ce5240 on locked into 7a79b95 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-8.3%) to 76.479% when pulling 8ce5240 on locked into 7a79b95 on master.

@coveralls
Copy link

coveralls commented Oct 1, 2017

Coverage Status

Coverage decreased (-7.7%) to 75.676% when pulling fa49894 on locked into bd06e7f on master.

ianwremmel added a commit to ianwremmel/ntfy that referenced this pull request Mar 22, 2018
WIP of dschep#125: screen locking detection

* dschep/locked:
  yapf-ify
  WIP of dschep#125: screen locking detection
@dschep
Copy link
Owner Author

dschep commented Apr 3, 2018

Closed in favor of #170

@dschep dschep closed this Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants