mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: Adds battery monitor service, timer, and execution script.
This commit is contained in:
8
systemd/user/battery-monitor.service
Normal file
8
systemd/user/battery-monitor.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Battery Monitor Service
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/battery-monitor
|
||||
Environment=DISPLAY=:0
|
||||
11
systemd/user/battery-monitor.timer
Normal file
11
systemd/user/battery-monitor.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Battery Monitor Timer
|
||||
Requires=battery-monitor.service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1min
|
||||
OnUnitActiveSec=30sec
|
||||
AccuracySec=10sec
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user