mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +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
5
root/etc/systemd/system/power-connected.target
Normal file
5
root/etc/systemd/system/power-connected.target
Normal file
|
@ -0,0 +1,5 @@
|
|||
Description=Power adapter is connected (charger plugged)
|
||||
Conflicts=power-disconnected.target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
6
root/etc/systemd/system/power-disconnected.target
Normal file
6
root/etc/systemd/system/power-disconnected.target
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Power adapter is disconnected (charger NOT plugged)
|
||||
Conflicts=power-connected.target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue