From e8015fdbc726da24fde3f71ce9445500a41c2103 Mon Sep 17 00:00:00 2001 From: Alen Date: Tue, 12 Sep 2023 00:22:35 +0400 Subject: Refactor run scripts to be tad bit simpler --- run_macos_dock.sh.tmpl | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'run_macos_dock.sh.tmpl') diff --git a/run_macos_dock.sh.tmpl b/run_macos_dock.sh.tmpl index 231fb22..db87fbd 100644 --- a/run_macos_dock.sh.tmpl +++ b/run_macos_dock.sh.tmpl @@ -2,15 +2,10 @@ 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 }} +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 -- cgit 1.4.1-2-gfad0