chore: add systemd service

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964d88b3de5f79306867e38dfbfef2ee1af
This commit is contained in:
raf 2025-09-29 18:38:55 +03:00
commit 3cbf6d5645
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

24
systemd/chroma.service Normal file
View file

@ -0,0 +1,24 @@
[Unit]
Description=Chroma Wallpaper Daemon
After=graphical-session.target
Wants=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=chroma
ExecReload=kill -HUP $MAINPID
Restart=on-failure
RestartSec=1
KillMode=mixed
TimeoutStopSec=5
# Security
NoNewPrivileges=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=%h/.config/chroma
[Install]
WantedBy=multi-useer.target