Add some systemd services
This commit is contained in:
parent
a5f2dd9208
commit
5ec17e461b
4 changed files with 43 additions and 0 deletions
.config/systemd/user
11
.config/systemd/user/tmux.service
Normal file
11
.config/systemd/user/tmux.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Start tmux in detached session
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=%I
|
||||
ExecStart=/usr/bin/tmux new-session -s %u -d
|
||||
ExecStop=/usr/bin/tmux kill-session -t %u
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue