aboutsummaryrefslogtreecommitdiffstats
path: root/basics/.config/systemd/user/battery-monitor.service
diff options
context:
space:
mode:
Diffstat (limited to 'basics/.config/systemd/user/battery-monitor.service')
-rw-r--r--basics/.config/systemd/user/battery-monitor.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/basics/.config/systemd/user/battery-monitor.service b/basics/.config/systemd/user/battery-monitor.service
new file mode 100644
index 0000000..c672ac5
--- /dev/null
+++ b/basics/.config/systemd/user/battery-monitor.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Battery Monitor
+
+[Service]
+Type=simple
+Environment=DISPLAY=:0
+Environment=XAUTHORITY=%h/.Xauthority
+ExecStart=/bin/bash %h/.bin/battery-monitor
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=default.target