summary refs log tree commit diff
path: root/run_macos_dock.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'run_macos_dock.sh.tmpl')
-rw-r--r--run_macos_dock.sh.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/run_macos_dock.sh.tmpl b/run_macos_dock.sh.tmpl
new file mode 100644
index 0000000..231fb22
--- /dev/null
+++ b/run_macos_dock.sh.tmpl
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -e
+
+# TODO: Move the lookPath defaults and OS check to chezmoi ignore level
+{{ if eq .chezmoi.os "darwin" -}}
+if which defaults &>/dev/null; then
+    defaults write com.apple.dock autohide-time-modifier -float 0.25
+    defaults write com.apple.dock autohide-delay -float 0
+    defaults write com.apple.dock orientation -string left
+    defaults write com.apple.dock show-recents -bool false
+    defaults write com.apple.dock autohide -bool true
+    defaults write com.apple.dock tilesize -float 50.0
+    killall Dock
+fi
+{{ end }}