mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00
Structure the installers explicitly with clearly defined segments
This commit is contained in:
16
install/config/power.sh
Normal file
16
install/config/power.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/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
|
||||
|
||||
# Enable battery monitoring timer for low battery notifications
|
||||
systemctl --user enable --now omarchy-battery-monitor.timer || true
|
||||
else
|
||||
# This computer runs on power outlet
|
||||
powerprofilesctl set performance || true
|
||||
fi
|
Reference in New Issue
Block a user