]> git.rmz.io Git - dotfiles.git/blobdiff - systemd/user/tmux.service
tmux: weechat service file
[dotfiles.git] / systemd / user / tmux.service
diff --git a/systemd/user/tmux.service b/systemd/user/tmux.service
new file mode 100644 (file)
index 0000000..3396682
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Start tmux server
+
+[Service]
+Type=forking
+Restart=on-failure
+ExecStart=/usr/bin/tmux -f %h/.config/tmux.conf start-server
+ExecReload=/usr/bin/tmux source-file $XDG_CONFIG_HOME/tmux.conf
+ExecStop=/usr/bin/tmux kill-server
+
+[Install]
+WantedBy=default.target