With a fixed --unit name, the rule fails to start when a unit from a previous power event still exists, leaving the power profile stale. Letting systemd-run generate unique unit names keeps every trigger working; --collect still garbage-collects each unit on exit. Ports 749a8c04 from master. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3 lines
358 B
Plaintext
3 lines
358 B
Plaintext
SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/systemd-run --no-block --collect --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set"
|
|
SUBSYSTEM=="power_supply", ATTR{type}=="USB", RUN+="/usr/bin/systemd-run --no-block --collect --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set"
|