Merge pull request #121 from Mane-Pal/battery-low-notification

add low power notfication issue #59
This commit is contained in:
David Heinemeier Hansson
2025-07-10 18:33:36 -04:00
committed by GitHub
5 changed files with 69 additions and 0 deletions

15
migrations/1752168292.sh Executable file
View File

@ -0,0 +1,15 @@
echo "Enable battery low notifications for laptops"
if ls /sys/class/power_supply/BAT* &>/dev/null; then
mkdir -p ~/.config/systemd/user
cp ~/.local/share/omarchy/config/systemd/user/omarchy-battery-monitor.* ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now omarchy-battery-monitor.timer || true
echo "Battery monitoring enabled - you'll receive notifications at 10% battery"
else
echo "No battery detected - skipping battery monitor setup"
fi