Add .config/systemd/user/low-battery-warn.service
Add .config/systemd/user/low-battery-warn.timer Add .config/systemd/user/timers.target.wants/low-battery-warn.timer
This commit is contained in:
parent
cf07d48520
commit
8dd3d3fe28
3 changed files with 18 additions and 0 deletions
7
private_dot_config/systemd/user/low-battery-warn.service
Normal file
7
private_dot_config/systemd/user/low-battery-warn.service
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Low Battery Warning
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/low-battery-warn
|
||||
|
||||
10
private_dot_config/systemd/user/low-battery-warn.timer
Normal file
10
private_dot_config/systemd/user/low-battery-warn.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Timer for Low Battery Warning
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2min
|
||||
OnUnitActiveSec=2min
|
||||
Unit=low-battery-warn.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
@ -0,0 +1 @@
|
|||
/home/lew/.config/systemd/user/low-battery-warn.timer
|
||||
Loading…
Add table
Add a link
Reference in a new issue