aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md5
-rw-r--r--misc/autodarkmode.service13
2 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index a2a5395..fc0f7d2 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,10 @@
A simple tool to switch between dark and light mode.
It executes a command on switch and nothing else.
-Location is either specified by the user or
+
+Location is either specified by the user or retrieved via geoclue.
+
+It has a constant memory footprint of about 393kb.
# Building
```
diff --git a/misc/autodarkmode.service b/misc/autodarkmode.service
new file mode 100644
index 0000000..320c09e
--- /dev/null
+++ b/misc/autodarkmode.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=autodarkmode - Automatically switch between dark and light mode
+PartOf=graphical-session.target
+After=graphical-session.target
+Requisite=graphical-session.target
+
+[Service]
+ExecStart=autodarkmode
+Restart=on-failure
+
+SystemCallArchitectures=native
+MemoryDenyWriteExecute=true
+NoNewPrivileges=true