mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Use the new helper
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
if omarchy-battery-present; then
|
||||||
# This computer runs on a battery
|
|
||||||
powerprofilesctl set balanced || true
|
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
|
|
||||||
powerprofilesctl set performance || true
|
powerprofilesctl set performance || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user