Skip to main content

MacOS Dock

Project description

Install

$ [sudo] pip install mac-dock

Usage

CLI
$ python -m mac_dock.apps.add path ...                  # add apps to Dock
$ python -m mac_dock.apps.bundle                        # Dock apps bundle IDs
$ python -m mac_dock.apps.label                         # Dock apps labels
$ python -m mac_dock.apps.path                          # Dock apps paths
$ python -m mac_dock.apps.rm path ...                   # rm apps from Dock
$ python -m mac_dock.folders.add [options] path ...     # add folder to Dock
$ python -m mac_dock.folders.label                      # Dock folders labels
$ python -m mac_dock.folders.path                       # Dock folders paths
$ python -m mac_dock.folders.rm [path ...]              # rm folders from Docks
$ python -m mac_dock.files.add path ...                 # add files from Dock
$ python -m mac_dock.files.label                        # Dock files labels
$ python -m mac_dock.files.path                         # Dock files paths
$ python -m mac_dock.files.rm [path ...]                # rm files from Dock
Functions
mac_dock.apps.add(path)
mac_dock.apps.rm(path)
mac_dock.apps.items()
mac_dock.files.add(path)
mac_dock.files.rm(path)
mac_dock.files.items()
mac_dock.folders.add(path, arrangement, displayas, showas)
mac_dock.folders.rm(path)
mac_dock.folders.items()
folder options
  • arrangement: 1 - name (default), 2 - added, 3 - modification, 4 - creation, 5 - kind
  • displayas: 1 - folder, 2 - stack (default)
  • showas: 1 - beep, 2 - grid, 3 - list, 4 - auto (default)

Examples

Preferences
>>> mac_dock.autohide=False
>>> mac_dock.tilesize=85
>>> mac_dock.save()
CLI
$ python -m mac_dock.apps.add "/Applications/Safari.app" "/Applications/Siri.app"
$ python -m mac_dock.apps.rm "/Applications/Siri.app" "/Applications/Siri.app"
$ python -m mac_dock.files.rm # rm all files from Dock
$ python -m mac_dock.files.add "path/to/run.command" "path/to/site.webloc"
$ python -m mac_dock.files.rm "path/to/run.command" "path/to/site.webloc"
$ python -m mac_dock.folders.add # rm all folders from Dock
$ python -m mac_dock.folders.add --arrangement=4 --displayas=1 --showas=1 ~/Downloads
$ python -m mac_dock.folders.add --arrangement=1 --displayas=2 --showas=2 ~/Desktop
$ python -m mac_dock.folders.rm ~/Desktop ~/Downloads
Functions
>>> mac_dock.apps.add(["/Applications/Dashboard.app","/Applications/Safari.app"])
>>> mac_dock.apps.rm(["/Applications/Dashboard.app","/Applications/Safari.app"])
>>> mac_dock.files.rm()  # rm all files from Dock
>>> mac_dock.files.add(["path/to/site.webloc"])
>>> mac_dock.files.rm(["path/to/site.webloc"])
>>> mac_dock.folders.rm()  # rm all folders from Dock
>>> mac_dock.folders.add("~/Downloads",arrangement=4, displayas=1, showas=1)
>>> mac_dock.folders.rm(["~/Downloads"])

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mac_dock-0.0.1-py2.py3-none-any.whl (11.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3
mac-dock-0.0.1.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page