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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mac-screensaver-2018.11.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fbfbe6c910d8b75237628d92ff8c77ca4a3b57ae9ec4d132c47c415ae98cd1 |
|
MD5 | 67e21383f58deb41a4ddfd9f1580f485 |
|
BLAKE2b-256 | 001485eafb4df40439d52d81ebf0732843c5b9812f17976c7a931295d2029997 |
Close
Hashes for mac_screensaver-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903852cb1a3a2cfc133421fee8a95f8fe6f7242719882b7da25b5cb8fcbb6865 |
|
MD5 | 0da8ea1930d8366905bbe3e1e018f7cd |
|
BLAKE2b-256 | 11f6d02455e222997b925e35e86dcd73b256a627a41969bf7f9e7efe976a9c5f |