feat(tmux): Restart server on boot

This commit is contained in:
punkfairie 2024-03-03 17:04:13 -08:00
parent 454007ee62
commit c3148116fb
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -0,0 +1,17 @@
[Unit]
Description=tmux default session (detached)
Documentation=man:tmux(1)
[Service]
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/tmux new-session -d
ExecStop=/home/marley/.tmux/plugins/tmux-resurrect/scripts/save.sh
ExecStop=/usr/bin/tmux kill-server
KillMode=control-group
RestartSec=2
[Install]
WantedBy=default.target