Skip to content

BProw/SleepTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.sleep()

icon

Utility application that puts machine to sleep after user set duration

Built with

  • Python3
  • AppleScript
  • PySide6
    • Designer

demo

Features

UI

  • text entry field
  • start/stop buttons

Display countdown

  • minutes entered -> expiration
    • duration decreases in real time

'Status' Display

  • current state (awake or winding down)
  • error messaging

'LCD' Display, Stylized Status & Title

  • on current app state
  • near expiration

ValueError checking

  • numerical values only
  • less than 1000 (display handles up to 3 digit inputs)
  • non-negative

Basic Osascript Utility

  • puts machine to sleep on timer expiration

Uses

Going to bed with video playing in background

  • Pauses video when triggered:
    • YT playlists or long videos
    • Netflix
    • Spotify
    • ...

Transformed Original Script

sleep.py 👎🏼

  • console required to execute
  • locks console on trigger for entirety of duration
  • no visual interface (entry field, time countdown)

Standalone Application 🙌🏼

  • no console required (pyinstaller)
  • application can be interrupted
  • interface avaialble to set minutes, start/stop

.sleep() title is reference to the 'timing' mechanism in sleep.py

Sleep icons created by Freepik - Flaticon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages