diff --git a/.config/systemd/user/tmux.service b/.config/systemd/user/tmux.service new file mode 100644 index 0000000..52bd873 --- /dev/null +++ b/.config/systemd/user/tmux.service @@ -0,0 +1,10 @@ +[Unit] +Description=Start tmux in detached session + +[Service] +Type=forking +ExecStart=/usr/bin/tmux new-session -s %u -d +ExecStop=/usr/bin/tmux kill-session -t %u + +[Install] +WantedBy=default.target