Add post-boot.d hooks and give daily weather as an example

This commit is contained in:
David Heinemeier Hansson
2026-05-08 08:39:25 +02:00
parent 5c3ca6084b
commit a43c304d21
3 changed files with 20 additions and 0 deletions
@@ -0,0 +1,10 @@
#!/bin/bash
# Show the weather status notification after Omarchy has started.
# To put it into use, remove .sample from this file name.
weather=$(omarchy-weather-status 2>/dev/null) || true
if [[ -n $weather && $weather != "Weather unavailable" ]]; then
notify-send -u low "$weather"
fi
+3
View File
@@ -11,3 +11,6 @@ exec-once = uwsm-app -- omarchy-hyprland-monitor-watch
# Slow app launch fix -- set systemd vars
exec-once = systemctl --user import-environment $(env | cut -d'=' -f 1)
exec-once = dbus-update-activation-environment --systemd --all
# Run post-boot hooks after startup config has loaded
exec-once = sleep 2 && omarchy-hook post-boot
+7
View File
@@ -0,0 +1,7 @@
echo "Add sample post-boot hook"
mkdir -p ~/.config/omarchy/hooks/post-boot.d
if [[ ! -f ~/.config/omarchy/hooks/post-boot.d/weather.sample ]]; then
cp "$OMARCHY_PATH/config/omarchy/hooks/post-boot.d/weather.sample" ~/.config/omarchy/hooks/post-boot.d/weather.sample
fi