Skip to content

Commit

Permalink
fix dock not autohiding
Browse files Browse the repository at this point in the history
  • Loading branch information
JoniVR committed May 26, 2018
1 parent 855795b commit 84ff3aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Intellidock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,19 @@ then
if [ $check_dock == "Yes" ]
then
echo "Clammshellmode: Yes, autohide: off."
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to false"

if [ "$1" == "-n" ]
then
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to false"
osascript -e 'display notification "Device in closed-lid mode, Dock autohide: off." with title "Intellidock"'
fi
# If not in clamshell mode, enable autohide dock
else
echo "Clamshellmode: No, autohide: on."
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to true"

if [ "$1" == "-n" ]
then
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to true"
osascript -e 'display notification "Device lid opened, Dock autohide: on." with title "Intellidock"'
fi
fi
Expand Down

0 comments on commit 84ff3aa

Please sign in to comment.