summary refs log tree commit diff
path: root/run_macos_dock.sh.tmpl
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2023-09-12 00:22:35 +0400
committerAlen <alen@dotfiles.xyz>2023-09-12 00:28:38 +0400
commite8015fdbc726da24fde3f71ce9445500a41c2103 (patch)
treeaad3abdcd9ecd4ab67e74025e0c69835e6a65954 /run_macos_dock.sh.tmpl
parent019c873fc8ec98e615d70b2dcaf77ac277a352a0 (diff)
Refactor run scripts to be tad bit simpler
Diffstat (limited to 'run_macos_dock.sh.tmpl')
-rw-r--r--run_macos_dock.sh.tmpl19
1 files changed, 7 insertions, 12 deletions
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