Skip to content

Commit

Permalink
🍭 Added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
sananth12 committed Apr 9, 2015
1 parent 6509ebe commit 41d18f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Binary file added logo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions sauron/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@

Interrupt = False

def pop(title, message, logo):
def pop(title, message):
if notifyModule is "pynotify":
pynotify.init("Scorer")
pynotify.Notification(title, message, logo).show()
pynotify.Notification(title, message).show()
elif notifyModule is "Notify":
Notify.init("Scorer")
Notify.Notification.new(title, message, logo).show()
Notify.Notification.new(title, message).show()
else:
notify2.init("Scorer")
notify2.Notification(title, message, logo).show()
notify2.Notification(title, message).show()
return True

def get_args():
Expand All @@ -40,8 +40,7 @@ def console_main():
alert_time = get_args()
while True:
try:
pop("Sauron sees you!", "Time to rest those eyes!\n Look away from the screen for 20s!",
"path/to/image")
pop("Sauron sees you!", "Time to rest those eyes!\n Look away from the screen for 20s!")
sleep(alert_time)

except KeyboardInterrupt:
Expand Down

0 comments on commit 41d18f9

Please sign in to comment.