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

View File

@ -5,6 +5,9 @@ yay -S --noconfirm power-profiles-daemon
if ls /sys/class/power_supply/BAT* &>/dev/null; then
# This computer runs on a battery
powerprofilesctl set balanced || true
# Enable battery monitoring timer for low battery notifications
systemctl --user enable --now omarchy-battery-monitor.timer || true
else
# This computer runs on power outlet
powerprofilesctl set performance || true