diff --git a/.config/systemd/user/tmux.service b/.config/systemd/user/tmux.service new file mode 100644 index 0000000..1b9bef3 --- /dev/null +++ b/.config/systemd/user/tmux.service @@ -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