Explain purpose

This commit is contained in:
David Heinemeier Hansson
2025-06-24 09:36:36 -07:00
parent 483ca41894
commit 70ed069249

View File

@ -1,8 +1,11 @@
# 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 yay -S --noconfirm power-profiles-daemon
if ls /sys/class/power_supply/BAT* &>/dev/null; then if ls /sys/class/power_supply/BAT* &>/dev/null; then
# This computer runs on a battery, leave powerprofile at Balanced # This computer runs on a battery
powerprofilesctl set balanced
else else
# Always use maximum power when using a desktop machine # This computer runs on power outlet
powerprofilesctl set performance powerprofilesctl set performance
fi fi