aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-02-16 11:49:25 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-02-16 11:49:25 +0100
commit402e9f503886af7caba3e0ddb1820c3f4e64b411 (patch)
tree21aeb163b2d70d17ba3b5d19f2fd9855c9eb0051
parent06b22df02c76797e617259af690adcad31337c52 (diff)
Add more background services
-rw-r--r--.config/systemd/user/dapp-bg-.service.d/00-Restart.conf2
-rw-r--r--.config/systemd/user/dapp-bg-chwp.service12
-rw-r--r--.config/systemd/user/dapp-bg-redshift.service11
-rw-r--r--.config/systemd/user/dapp-bg-xcompmgr.service11
l---------.local/bin/redshift1
5 files changed, 35 insertions, 2 deletions
diff --git a/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf b/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf
index 8a764e3..eedb19c 100644
--- a/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf
+++ b/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf
@@ -1,2 +1,2 @@
[Service]
-Restart=always
+Restart=on-failure
diff --git a/.config/systemd/user/dapp-bg-chwp.service b/.config/systemd/user/dapp-bg-chwp.service
new file mode 100644
index 0000000..65299d2
--- /dev/null
+++ b/.config/systemd/user/dapp-bg-chwp.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Change the wallpaper used in Xorg
+PartOf=graphical-session.target
+After=wman.target
+
+[Service]
+Type=oneshot
+ExecStart=chwp
+Restart=on-failure
+
+[Install]
+WantedBy=wman.target
diff --git a/.config/systemd/user/dapp-bg-redshift.service b/.config/systemd/user/dapp-bg-redshift.service
new file mode 100644
index 0000000..19dc3f7
--- /dev/null
+++ b/.config/systemd/user/dapp-bg-redshift.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run redshift
+PartOf=graphical-session.target
+After=wman.target
+
+[Service]
+Type=exec
+ExecStart=redshift -l 51.50:4.59 -t 6500:3500
+
+[Install]
+WantedBy=wman.target
diff --git a/.config/systemd/user/dapp-bg-xcompmgr.service b/.config/systemd/user/dapp-bg-xcompmgr.service
new file mode 100644
index 0000000..a55bbb5
--- /dev/null
+++ b/.config/systemd/user/dapp-bg-xcompmgr.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run the X Compositing Manager
+PartOf=graphical-session.target
+After=wman.target
+
+[Service]
+Type=exec
+ExecStart=xcompmgr
+
+[Install]
+WantedBy=wman.target
diff --git a/.local/bin/redshift b/.local/bin/redshift
deleted file mode 120000
index 3da827c..0000000
--- a/.local/bin/redshift
+++ /dev/null
@@ -1 +0,0 @@
-../share/wrapper.sh \ No newline at end of file