bazzite/system_files/deck/etc/udev/rules.d/99-powertargets.rules

3 lines
215 B
Plaintext
Raw Normal View History

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"