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.
|
2025-06-24 08:48:33 -07:00
|
|
|
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
|
2025-07-04 16:08:04 -07:00
|
|
|
powerprofilesctl set balanced || true
|
2025-06-24 08:48:33 -07:00
|
|
|
else
|
2025-06-24 09:36:36 -07:00
|
|
|
# This computer runs on power outlet
|
2025-07-04 16:08:04 -07:00
|
|
|
powerprofilesctl set performance || true
|
2025-06-24 08:48:33 -07:00
|
|
|
fi
|