Add low battery notification reminder

This commit is contained in:
ItsDrike 2024-12-24 22:38:52 +01:00
parent 6c5c3fb36c
commit f6f292306e
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description="Show a notification when the battery is low"
PartOf=graphical-session.target
[Service]
ExecStart=%h/.local/bin/scripts/gui/battery-notification
Type=oneshot
RemainAfterExit=false
Restart=on-failure
RestartSec=3s
[Install]
WantedBy=wm-ready.target

View file

@ -0,0 +1,9 @@
[Unit]
Description="Timer for low battery notification sendout"
PartOf=graphical-session.target
[Timer]
OnUnitActiveSec=20s
[Install]
WantedBy=wm-ready.target

View file

@ -0,0 +1 @@
/home/itsdrike/.config/systemd/user/battery-notification.timer