dotfiles/root/etc/udev/rules.d/50-powersave-adapter.rules

3 lines
197 B
Plaintext
Raw Normal View History

SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/bin/systemctl start power-connected.target"
SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/bin/systemctl start power-disconnected.target"