diff options
author | axtlos <axtlos@getcryst.al> | 2024-05-28 22:41:05 +0200 |
---|---|---|
committer | axtlos <axtlos@getcryst.al> | 2024-05-28 22:41:05 +0200 |
commit | ecabc509ff16bd2a64cecf478a7dc542febddb32 (patch) | |
tree | f36912e83fdc9ba0fa1fea77c99d142d31a41e77 | |
parent | aa800ed218603f04dd30596be18fb59c2f8e1205 (diff) | |
download | autodarkmode-ecabc509ff16bd2a64cecf478a7dc542febddb32.tar.gz autodarkmode-ecabc509ff16bd2a64cecf478a7dc542febddb32.tar.bz2 |
Add systemd service
-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 |