Add tmux systemd user service

master
Hektor Misplon 2022-05-11 11:22:43 +02:00
parent 8ef636b986
commit 7ca492c053
1 changed files with 10 additions and 0 deletions

View File

@ -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