This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
dot-files/.config/systemd/user/tmux.service

15 lines
249 B
SYSTEMD

[Unit]
Description=Start tmux in detached session
[Service]
Type=oneshot
RemainAfterExit=yes
KillMode=none
User=%I
WorkingDirectory=%h
ExecStart=/usr/bin/tmux -s %h -d
ExecStop=/usr/bin/tmux kill-session -t %h
[Install]
WantedBy=multi-user.target