Skip to content

Commit 5c252cf

Browse files
petechesBruno Sutic
authored andcommitted
Added docs for systemd usage.
1 parent 65d627a commit 5c252cf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/automatic_start.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ Config options:
2424
### Linux
2525

2626
Help with this would be greatly appreciated. Please get in touch.
27+
28+
#### Systemd
29+
30+
##### this will only start the tmux server, it will *not* start any terminal emulator
31+
32+
To enable automatic start with systemd:
33+
- Put `set -g @continuum-boot 'on'` in tmux.conf
34+
- reload tmux config with this shell command: `$ tmux source-file ~/.tmux.conf`
35+
- see [systemd](./systemd_details.md) for more details about how this is implemented

docs/systemd_details.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Systemd autmatic start for tmux
2+
3+
The first time tmux starts when '@continuum-boot' is set to 'on' tmux-continuum will generate a user level systemd unit file which it will save to `${HOME}/.config/systemd/user/tmux.service` and enable it. From then on when that user logs in, either through a gui session or on the console or via ssh, Systemd will start the tmux server.
4+
5+
The command used to start the tmux server is determined via the '@systemd_tmux_server_start_cmd' option that can be set in .tmux.conf. (Remeber to reload your configuration with `tmux source ~/.tmux.conf` afterwards.
6+
7+
The default command to use is `new-session`. If you want more control over what sessions get started then you should set up your sessions in tmux.conf and set @systemd_tmux_server_start_cmd to 'start-server'

0 commit comments

Comments
 (0)