mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Add post-boot.d hooks and give daily weather as an example
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user