Move to .d directories for hooks instead of a single file

Easier to manage especially with separate installs
This commit is contained in:
David Heinemeier Hansson
2026-05-07 09:59:18 +02:00
parent f0969c6793
commit fe0ea4de3e
6 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
echo "Add sample low battery notification hook"
mkdir -p ~/.config/omarchy/hooks
mkdir -p ~/.config/omarchy/hooks/battery-low.d
if [[ ! -f ~/.config/omarchy/hooks/battery-low.sample ]]; then
cp "$OMARCHY_PATH/config/omarchy/hooks/battery-low.sample" ~/.config/omarchy/hooks/battery-low.sample
if [[ ! -f ~/.config/omarchy/hooks/battery-low.d/play-warning-sound.sample ]]; then
cp "$OMARCHY_PATH/config/omarchy/hooks/battery-low.d/play-warning-sound.sample" ~/.config/omarchy/hooks/battery-low.d/play-warning-sound.sample
fi