mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 20:20:41 +00:00
Add power-connected/disconnected systemd targets
This commit is contained in:
parent
bc3a65ba93
commit
5972b65e95
3 changed files with 13 additions and 0 deletions
2
root/etc/udev/rules.d/50-powersave-adapter.rules
Normal file
2
root/etc/udev/rules.d/50-powersave-adapter.rules
Normal file
|
@ -0,0 +1,2 @@
|
|||
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"
|
Loading…
Add table
Add a link
Reference in a new issue