Files
omarchy/install/power.sh
2025-07-04 16:08:04 -07:00

12 lines
474 B
Bash

# 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
# This computer runs on a battery
powerprofilesctl set balanced || true
else
# This computer runs on power outlet
powerprofilesctl set performance || true
fi