Skip to main content

sleep/wake display

Project description

Install

$ [sudo] pip install mac-display

Functions

function description
mac_display.sleep() put your display to sleep
mac_display.sleeping() return True if display is sleeping
mac_display.wake() wake from sleep

CLI

usage description
python -m mac_display.sleep put your display to sleep
python -m mac_display.sleeping print true if display is sleeping, else false
python -m mac_display.wake wake from sleep

Examples

>>> import mac_display
>>> mac_display.sleep()
>>> mac_display.sleeping()
True
>>> mac_display.wake()
>>> mac_display.sleeping()
False

readme-md - README.md generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mac-display-2018.11.19.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

mac_display-2018.11.19-py2.py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page