Skip to content

Script for automatically turning on/off autohiding of the Dock if in "closed-display mode" on macOS.

License

Notifications You must be signed in to change notification settings

JoniVR/IntelliDock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

IntelliDock

Bash script for automatically turning on/off autohiding of the Dock if in "closed-display mode" on macOS.

Short description

This script checks if the device is in "clamshell mode" also known as "closed-display mode", if it is, it will disable Dock authohide. If the device is not in closed-display mode, the script will enable Dock autohide.

I built this because I have a 13-inch Macbook Pro, when I'm not docked, I don't want the dock to take up screen real estate, but when I'm at home (working on a larger screen) and the device is docked, I'd like to disable autohide. This just automates that process.

Installation

  1. Download or clone the script to your computer
  2. Open a terminal window, navigate to the location where you saved the file (cd /<folder>/)
  3. Run chmod u+x Intellidock.sh to allow the user to run the script
  4. Run the script in the background nohup ./Intellidock.sh > /dev/null 2>&1&
  5. Optionally set the script to run at startup (see this link).

Options

-n 
    enable notifications
-l PATH
    enable logging, if no path is supplied, the containing directory will be used.

Extra

Something I've always hated about auto-hide on the dock is that there is a delay.

You can easily remove the autohide delay by entering this command in the terminal:

defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.2 && killall Dock

To reset to defaults, use the following command:

defaults delete com.apple.dock autohide-delay && defaults delete com.apple.dock autohide-time-modifier && killall Dock

Author

Joni Van Roost, [email protected]

License

Intellidock is available under the MIT license. See the LICENSE file for more info.

More

Feel free to submit a pull request, open an issue or fork this project. Any help is always appreciated.

About

Script for automatically turning on/off autohiding of the Dock if in "closed-display mode" on macOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages