Skip the battery monitor during chroot install for now
This commit is contained in:
parent
82467892a3
commit
36a30dd01d
@ -4,16 +4,12 @@
|
||||
# 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
|
||||
|
||||
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
||||
if ls /sys/class/power_supply/BAT* &>/dev/null && [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||
# This computer runs on a battery
|
||||
powerprofilesctl set balanced || true
|
||||
|
||||
# Enable battery monitoring timer for low battery notifications
|
||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||
systemctl --user enable omarchy-battery-monitor.timer
|
||||
else
|
||||
systemctl --user enable --now omarchy-battery-monitor.timer
|
||||
fi
|
||||
systemctl --user enable --now omarchy-battery-monitor.timer
|
||||
else
|
||||
# This computer runs on power outlet
|
||||
powerprofilesctl set performance || true
|
||||
|
Loading…
x
Reference in New Issue
Block a user