aboutsummaryrefslogtreecommitdiffstats
path: root/.config/systemd/user/tmux.service
blob: 084efc0208f6b405442ed6e865ef612a5df9ed88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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