From 019c873fc8ec98e615d70b2dcaf77ac277a352a0 Mon Sep 17 00:00:00 2001 From: Alen Date: Tue, 12 Sep 2023 00:06:46 +0400 Subject: Add shoddy macOS dock tweaks --- run_macos_dock.sh.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 run_macos_dock.sh.tmpl (limited to 'run_macos_dock.sh.tmpl') 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 }} -- cgit 1.4.1-2-gfad0