summary refs log tree commit diff
path: root/run_macos_dock.sh.tmpl
blob: 231fb22683d00e84c2f274018d1284364a2e0c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 }}