✨ feat(tmux): Restart server on boot
This commit is contained in:
parent
454007ee62
commit
c3148116fb
1 changed files with 17 additions and 0 deletions
17
.config/systemd/user/tmux.service
Normal file
17
.config/systemd/user/tmux.service
Normal 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
|
Loading…
Reference in a new issue