Skip to content

Commit

Permalink
👕
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Jan 25, 2017
1 parent 14a2129 commit 54bcd55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ntfy/screensaver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ def xscreensaver_detect():
else:
return True


def xscreensaver_is_locked():
return 'screen locked' in check_output(split('xscreensaver-command -time'))


def is_locked():
if xscreensaver_detect():
return xscreensaver_is_locked()
Expand Down

0 comments on commit 54bcd55

Please sign in to comment.