add low power notfication

This commit is contained in:
Mads Nedergaard Paulsen
2025-07-10 19:04:40 +02:00
parent 55f30eba66
commit 4c58879481
4 changed files with 54 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