Skip to main content

show/hide MacOS desktop

Project description

Install

$ [sudo] pip install mac-desktop

Functions

function __doc__
mac_desktop.toggle() toggle Desktop (show/hide)
mac_desktop.visibility() return Desktop visibility percentage (0..1)

CLI

usage __doc__
python -m mac_desktop.toggle toggle Desktop (show/hide)
python -m mac_desktop.visibility print Desktop visibility percentage (0..1)

Examples

>>> import mac_desktop
>>> if mac_desktop.visibility()<0.7:    # Desktop hidden?
...     mac_desktop.toggle()            # show Desktop

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.

Files for mac-desktop, version 2019.2.28
Filename, size File type Python version Upload date Hashes
Filename, size mac_desktop-2019.2.28-py2.py3-none-any.whl (2.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mac-desktop-2019.2.28.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page