mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Use existing helper
This commit is contained in:
@@ -4,9 +4,7 @@ SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/systemd-run --no-
|
||||
SUBSYSTEM=="power_supply", ATTR{type}=="USB", RUN+="/usr/bin/systemd-run --no-block --collect --unit=omarchy-power-profile --property=After=power-profiles-daemon.service $HOME/.local/share/omarchy/bin/omarchy-powerprofiles-set"
|
||||
EOF
|
||||
|
||||
# Ensure the daemon is running and starts on boot. The arch package preset
|
||||
# leaves it disabled, which would silently break profile switching.
|
||||
sudo systemctl enable power-profiles-daemon
|
||||
chrootable_systemctl_enable power-profiles-daemon.service
|
||||
|
||||
sudo udevadm control --reload 2>/dev/null
|
||||
sudo udevadm trigger --subsystem-match=power_supply 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user