Skip all of powerprofilectl setup during CHROOT
This commit is contained in:
parent
2ae973108d
commit
95139164a3
@ -4,14 +4,16 @@
|
|||||||
# even if they're not running off a battery. So let's make sure that's changed to performance.
|
# even if they're not running off a battery. So let's make sure that's changed to performance.
|
||||||
yay -S --noconfirm python-gobject power-profiles-daemon
|
yay -S --noconfirm python-gobject power-profiles-daemon
|
||||||
|
|
||||||
# FIXME: Need a way to add the user system unit in CHROOT install
|
# FIXME: Can't set powerprofilesctl during CHROOT, must do it afterwards
|
||||||
if ls /sys/class/power_supply/BAT* &>/dev/null && [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
if [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||||
# This computer runs on a battery
|
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
||||||
powerprofilesctl set balanced || true
|
# This computer runs on a battery
|
||||||
|
powerprofilesctl set balanced || true
|
||||||
|
|
||||||
# Enable battery monitoring timer for low battery notifications
|
# Enable battery monitoring timer for low battery notifications
|
||||||
systemctl --user enable --now omarchy-battery-monitor.timer
|
systemctl --user enable --now omarchy-battery-monitor.timer
|
||||||
else
|
else
|
||||||
# This computer runs on power outlet
|
# This computer runs on power outlet
|
||||||
powerprofilesctl set performance || true
|
powerprofilesctl set performance || true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user