dotfiles/home/.config/systemd/user/battery-notification.service

16 lines
330 B
SYSTEMD
Raw Normal View History

2024-12-24 22:38:52 +01:00
[Unit]
2025-02-24 22:27:49 +01:00
Description=Show a notification when the battery is low
Requires=graphical-session.target
2024-12-24 22:38:52 +01:00
PartOf=graphical-session.target
[Service]
Type=oneshot
2025-02-24 22:27:49 +01:00
ExecStart=%h/.local/bin/scripts/gui/battery-notification
2024-12-24 22:38:52 +01:00
RemainAfterExit=false
Restart=on-failure
2025-02-24 22:27:49 +01:00
Slice=background-graphical.slice
2024-12-24 22:38:52 +01:00
[Install]
2025-02-24 22:27:49 +01:00
WantedBy=graphical-session.target