Add tmux systemd user service
This commit is contained in:
10
.config/systemd/user/tmux.service
Normal file
10
.config/systemd/user/tmux.service
Normal 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
|
||||||
Reference in New Issue
Block a user