Skip to main content

MacOS screensaver

Project description

Install

$ [sudo] pip install mac-screensaver

Functions

function description
mac_screensaver.name() return active screensaver name
mac_screensaver.names() return list of screensavers names
mac_screensaver.pid() return screensaver pid
mac_screensaver.start() start screensaver
mac_screensaver.stop() kill screensaver process
mac_screensaver.preferences.clock() return True if "Show with clock" enabled, else False
mac_screensaver.preferences.idle() return screensaver idle time in seconds. 0 if disabled

CLI

usage description
python -m mac_screensaver.name print current screensaver name
python -m mac_screensaver.pid print screensaver pid
python -m mac_screensaver.start start screensaver
python -m mac_screensaver.stop stop screensaver

Examples

>>> mac_screensaver.start()
>>> mac_screensaver.pid()
1488
>>> mac_screensaver.stop()
>>> mac_screensaver.names()
['Random', 'Flurry', 'Arabesque', 'Word of the Day', 'iTunes Artwork', 'Computer Name', 'Shell', 'FloatingMessage', 'iLifeSlideshows']
>>> mac_screensaver.name()  # current name
'iLifeSlideshows'

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-screensaver-2018.11.19.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

mac_screensaver-2018.11.19-py2.py3-none-any.whl (4.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