From 7ca492c053fb3bc0ae6ea67991c3e4261d1b0509 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 11:22:43 +0200 Subject: [PATCH] Add tmux systemd user service --- .config/systemd/user/tmux.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/systemd/user/tmux.service 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