aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2019-12-21 14:42:29 -0500
committertdro <tdro@users.noreply.github.com>2019-12-21 14:42:29 -0500
commitb4b84844f0834cbd13a138aed55bb65626f2a3b7 (patch)
tree7089de995d44b7e49c845e500819be7b34128370 /.config/systemd
parentddca9eed12e717a613b2d7b67526c13f420ba3e8 (diff)
downloaddotfiles-b4b84844f0834cbd13a138aed55bb65626f2a3b7.tar.gz
dotfiles-b4b84844f0834cbd13a138aed55bb65626f2a3b7.tar.bz2
dotfiles-b4b84844f0834cbd13a138aed55bb65626f2a3b7.zip
.config/systemd/user: Add systemd user services
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/copyq.service12
-rw-r--r--.config/systemd/user/redshift.service12
-rw-r--r--.config/systemd/user/x0vncserver.service3
-rw-r--r--.config/systemd/user/xbindkeys.service12
4 files changed, 38 insertions, 1 deletions
diff --git a/.config/systemd/user/copyq.service b/.config/systemd/user/copyq.service
new file mode 100644
index 0000000..53e02ef
--- /dev/null
+++ b/.config/systemd/user/copyq.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Copyq server
+
+[Service]
+Type=simple
+Environment=DISPLAY=:0
+ExecStart=copyq
+Restart=always
+RestartSec=5s
+
+[Install]
+WantedBy=default.target
diff --git a/.config/systemd/user/redshift.service b/.config/systemd/user/redshift.service
new file mode 100644
index 0000000..6633c05
--- /dev/null
+++ b/.config/systemd/user/redshift.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Redshift
+
+[Service]
+Type=simple
+Environment=DISPLAY=:0
+ExecStart=redshift
+Restart=always
+RestartSec=5s
+
+[Install]
+WantedBy=default.target
diff --git a/.config/systemd/user/x0vncserver.service b/.config/systemd/user/x0vncserver.service
index 866015d..b0fd8f4 100644
--- a/.config/systemd/user/x0vncserver.service
+++ b/.config/systemd/user/x0vncserver.service
@@ -4,7 +4,8 @@ After=syslog.target network.target
[Service]
Type=forking
-ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -display :0 -rfbport 5900 -RemapKeys="0x3c->0x2c" -passwordfile %h/.vnc/passwd &'
+Environment=DISPLAY=:0
+ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -rfbport 5900 -RemapKeys="0x3c->0x2c" -passwordfile %h/.vnc/passwd &'
Restart=always
RestartSec=5s
diff --git a/.config/systemd/user/xbindkeys.service b/.config/systemd/user/xbindkeys.service
new file mode 100644
index 0000000..230f338
--- /dev/null
+++ b/.config/systemd/user/xbindkeys.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Keyboard shortcut binder
+
+[Service]
+Type=simple
+Environment=DISPLAY=:0
+ExecStart=xbindkeys -p -n
+Restart=always
+RestartSec=5s
+
+[Install]
+WantedBy=default.target