summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-08-21 00:20:30 +0200
committerGravatar Tom Willemse2014-08-21 00:20:30 +0200
commitc7eef6ebcf9f90e7a5aabf7d126263aa9da2eabb (patch)
tree19fa57e20f25e3e23ddb98ceb0abe0c530706411 /systemd
parenta817e7d55c35aac2503c1bc39f27f600bf57e27e (diff)
downloaddotfiles-c7eef6ebcf9f90e7a5aabf7d126263aa9da2eabb.tar.gz
dotfiles-c7eef6ebcf9f90e7a5aabf7d126263aa9da2eabb.zip
Rename sysemd -> systemd
Diffstat (limited to 'systemd')
-rw-r--r--systemd/.config/systemd/user/.gitignore1
-rw-r--r--systemd/.config/systemd/user/emacs.service12
-rw-r--r--systemd/.config/systemd/user/emacs.service.d/environment.conf3
-rw-r--r--systemd/.config/systemd/user/synergys.service10
-rw-r--r--systemd/.config/systemd/user/synergys.socket9
-rw-r--r--systemd/.config/systemd/user/urxvtd.service9
6 files changed, 44 insertions, 0 deletions
diff --git a/systemd/.config/systemd/user/.gitignore b/systemd/.config/systemd/user/.gitignore
new file mode 100644
index 0000000..6d28f9f
--- /dev/null
+++ b/systemd/.config/systemd/user/.gitignore
@@ -0,0 +1 @@
+default.target.wants/ \ No newline at end of file
diff --git a/systemd/.config/systemd/user/emacs.service b/systemd/.config/systemd/user/emacs.service
new file mode 100644
index 0000000..5436721
--- /dev/null
+++ b/systemd/.config/systemd/user/emacs.service
@@ -0,0 +1,12 @@
+# -*- mode: conf-unix; -*-
+[Unit]
+Description=Emacs: the extensible, self-documenting text editor
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Restart=always
+
+[Install]
+WantedBy=default.target
diff --git a/systemd/.config/systemd/user/emacs.service.d/environment.conf b/systemd/.config/systemd/user/emacs.service.d/environment.conf
new file mode 100644
index 0000000..1e3070f
--- /dev/null
+++ b/systemd/.config/systemd/user/emacs.service.d/environment.conf
@@ -0,0 +1,3 @@
+[Service]
+Environment=DISPLAY=:0
+Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
diff --git a/systemd/.config/systemd/user/synergys.service b/systemd/.config/systemd/user/synergys.service
new file mode 100644
index 0000000..56c1ac0
--- /dev/null
+++ b/systemd/.config/systemd/user/synergys.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Synergy Server Daemon
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/synergys --config /etc/synergy.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/.config/systemd/user/synergys.socket b/systemd/.config/systemd/user/synergys.socket
new file mode 100644
index 0000000..dda1537
--- /dev/null
+++ b/systemd/.config/systemd/user/synergys.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=synergys.service
+
+[Socket]
+ListenStream=24800
+Accept=false
+
+[Install]
+WantedBy=sockets.target
diff --git a/systemd/.config/systemd/user/urxvtd.service b/systemd/.config/systemd/user/urxvtd.service
new file mode 100644
index 0000000..b1de4f7
--- /dev/null
+++ b/systemd/.config/systemd/user/urxvtd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=RXVT-Unicode Daemon
+
+[Service]
+ExecStart=/usr/bin/urxvtd
+Restart=always
+
+[Install]
+WantedBy=default.target