diff options
-rw-r--r-- | machammer/functions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/machammer/functions.py b/machammer/functions.py index 0a7b853..728f55a 100644 --- a/machammer/functions.py +++ b/machammer/functions.py @@ -173,6 +173,11 @@ def enable_ard(username): '-restart', '-agent']) +def sleep(): + """Put this Mac to sleep""" + tell_app('Finder', 'sleep') + + def is_laptop(): profile = SystemProfile('Hardware') return 'Book' in profile.machine_model |