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.

Source Distribution

mac-desktop-2019.2.28.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

mac_desktop-2019.2.28-py2.py3-none-any.whl (2.9 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