aboutsummaryrefslogtreecommitdiffstats
path: root/.config/systemd
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-07-26 13:22:19 +0200
committerDavid Runge <dave@sleepmap.de>2020-07-26 13:22:19 +0200
commit624c19b1c692363ba9845bcbb7fd45fc783d63f4 (patch)
tree9fa07165fa33f4d4e46543c03e007cbb5bedbe16 /.config/systemd
parent7fb9e887fd418f832829b1bdad408f39ba562955 (diff)
downloaddotfiles-624c19b1c692363ba9845bcbb7fd45fc783d63f4.tar.gz
dotfiles-624c19b1c692363ba9845bcbb7fd45fc783d63f4.tar.bz2
dotfiles-624c19b1c692363ba9845bcbb7fd45fc783d63f4.tar.xz
dotfiles-624c19b1c692363ba9845bcbb7fd45fc783d63f4.zip
Add local tmux systemd user service
.config/systemd/user/tmux.service: Add a local systemd user service for tmux.
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/tmux.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/systemd/user/tmux.service b/.config/systemd/user/tmux.service
new file mode 100644
index 0000000..084efc0
--- /dev/null
+++ b/.config/systemd/user/tmux.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Start tmux in detached session
+After=local-fs.target
+ConditionFileIsExecutable=/usr/bin/tmux
+
+[Service]
+Type=forking
+Environment=TMUX_TMPDIR=%t
+ExecStart=/usr/bin/tmux new-session -s user -d
+ExecStop=/usr/bin/tmux kill-session -t user
+
+[Install]
+WantedBy=default.target