Files
omarchy/install/power.sh

15 lines
613 B
Bash
Raw Normal View History

2025-06-24 09:36:36 -07:00
# Setting the performance profile can make a big difference. By default, most systems seem to start in balanced mode,
# even if they're not running off a battery. So let's make sure that's changed to performance.
yay -S --noconfirm power-profiles-daemon
if ls /sys/class/power_supply/BAT* &>/dev/null; then
2025-06-24 09:36:36 -07:00
# This computer runs on a battery
powerprofilesctl set balanced || true
2025-07-10 19:04:40 +02:00
# Enable battery monitoring timer for low battery notifications
systemctl --user enable --now omarchy-battery-monitor.timer || true
else
2025-06-24 09:36:36 -07:00
# This computer runs on power outlet
powerprofilesctl set performance || true
fi