diff options
Diffstat (limited to 'user/tmux.service')
-rw-r--r-- | user/tmux.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/user/tmux.service b/user/tmux.service new file mode 100644 index 0000000..089e759 --- /dev/null +++ b/user/tmux.service @@ -0,0 +1,14 @@ +[Unit] +Description=Start tmux in detached session +After=network.target local-fs.target +ConditionFileIsExecutable=/usr/bin/tmux + +[Service] +Type=forking +KillMode=control-group +Environment=TMUX_TMPDIR=/run/user/%U/tmux +ExecStart=/usr/bin/tmux new-session -s user -d +ExecStop=/usr/bin/tmux kill-session -t user + +[Install] +WantedBy=default.target |