Ensure we are running at maximum power on a desktop machine

This commit is contained in:
David Heinemeier Hansson
2025-06-24 08:48:33 -07:00
parent 20d0aed349
commit 483ca41894
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
yay -S --noconfirm --needed \ yay -S --noconfirm --needed \
brightnessctl playerctl wpctl pamixer pavucontrol wireplumber power-profiles-daemon blueberry \ brightnessctl playerctl wpctl pamixer pavucontrol wireplumber blueberry \
fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool \ fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool \
wl-clip-persist clipse \ wl-clip-persist clipse \
nautilus sushi gnome-calculator \ nautilus sushi gnome-calculator \

8
install/power.sh Normal file
View File

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