diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | misc/autodarkmode.service | 13 |
2 files changed, 17 insertions, 1 deletions
@@ -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 |