Skip to content

Commit 84ff3aa

Browse files
author
JoniVR
committed
fix dock not autohiding
1 parent 855795b commit 84ff3aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Intellidock.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,19 @@ then
5454
if [ $check_dock == "Yes" ]
5555
then
5656
echo "Clammshellmode: Yes, autohide: off."
57+
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to false"
58+
5759
if [ "$1" == "-n" ]
5860
then
59-
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to false"
6061
osascript -e 'display notification "Device in closed-lid mode, Dock autohide: off." with title "Intellidock"'
6162
fi
6263
# If not in clamshell mode, enable autohide dock
6364
else
6465
echo "Clamshellmode: No, autohide: on."
66+
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to true"
67+
6568
if [ "$1" == "-n" ]
6669
then
67-
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to true"
6870
osascript -e 'display notification "Device lid opened, Dock autohide: on." with title "Intellidock"'
6971
fi
7072
fi

0 commit comments

Comments
 (0)