aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/config/systemd/user/default.target.wants/tmux.service
blob: 8a35ce13ff4820dd885de616ddafdcfd54e2b722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=tmux default session (detached)
Documentation=man:tmux(1)

[Service]
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/tmux new-session

ExecStop=/home/neodarz/.tmux/plugins/tmux-resurrect/scripts/save.sh
ExecStop=/usr/bin/tmux kill-server
KillMode=none

RestartSec=2

[Install]
WantedBy=default.target