bazzite/deck/etc/udev/rules.d/99-powertargets.rules
2023-06-21 16:00:11 -07:00

3 lines
215 B
Plaintext

SUBSYSTEM=="power_supply", KERNEL=="ACAD", ATTR{online}=="0", RUN+="/usr/sbin/systemctl start battery.target"
SUBSYSTEM=="power_supply", KERNEL=="ACAD", ATTR{online}=="1", RUN+="/usr/sbin/systemctl start ac.target"