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
@@ -0,0 +1,10 @@
#!/bin/bash
# This hook is called with the current battery percentage when the low battery
# notification is sent. To put it into use, remove .sample from this file name.
SOUND_FILE="/usr/share/sounds/freedesktop/stereo/dialog-warning.oga"
if omarchy-cmd-present mpv && [[ -f $SOUND_FILE ]]; then
mpv --no-video "$SOUND_FILE" >/dev/null 2>&1
fi