diff --git a/install/desktop.sh b/install/desktop.sh index 3a82248..ff80426 100644 --- a/install/desktop.sh +++ b/install/desktop.sh @@ -1,5 +1,5 @@ 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 \ wl-clip-persist clipse \ nautilus sushi gnome-calculator \ diff --git a/install/power.sh b/install/power.sh new file mode 100644 index 0000000..8adb17d --- /dev/null +++ b/install/power.sh @@ -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