IntelliDock
Script for automatically turning on/off autohiding of the Dock if in "closed-display mode" on macOS.
Install / Use
/learn @JoniVR/IntelliDockREADME
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
- Download or clone the script to your computer
- Open a terminal window, navigate to the location where you saved the file (
cd /<folder>/) - Run
chmod u+x Intellidock.shto allow the user to run the script - Run the script in the background
nohup ./Intellidock.sh > /dev/null 2>&1& - 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, joni.VR@hotmail.com
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.
Related Skills
imsg
338.7kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
338.7kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
lobster
338.7kLobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (s
