tmux-continuum/scripts/handle_tmux_automatic_start
Friendliness ac905ad286
Update systemd_enable.sh
Removed the explicitly-set `DISPLAY` variable as described in the following [issue](https://github.com/tmux-plugins/tmux-continuum/issues/127)

Fixes being unable to copy to clipboard with `xclip` after suspending / unsuspending.
2023-10-05 17:35:06 +02:00
..
osx_alacritty_start_tmux.sh Delete stray lines at end of script 2021-03-10 03:36:32 -06:00
osx_disable.sh Enable easy 'tmux auto start' configuration 2015-02-17 17:13:48 +01:00
osx_enable.sh feat: add alacritty to the list of auto start terminals 2020-12-01 00:07:20 +00:00
osx_iterm_start_tmux.sh Fix syntax errors in auto-start osx iterm script 2022-07-19 04:28:40 -04:00
osx_kitty_start_tmux.sh chore: use tabs instead of spaces for formatting 2020-07-08 09:02:00 +02:00
osx_terminal_start_tmux.sh Bugfixes for Terminal.app and iTerm tmux start scripts 2015-02-19 13:43:41 +01:00
README.md Fixed scripts/handle_tmux_automatic_start/README.md symlink 2020-12-05 15:05:38 -03:00
systemd_disable.sh Add Sven Vowe @nuclearglow as a systemd maintainer 2022-06-03 10:57:42 +02:00
systemd_enable.sh Update systemd_enable.sh 2023-10-05 17:35:06 +02:00

Automatic Tmux start

Tmux is automatically started after the computer/server is turned on.

OS X

To enable this feature:

  • put set -g @continuum-boot 'on' in .tmux.conf
  • reload tmux config with this shell command: $ tmux source-file ~/.tmux.conf

Next time the computer is started:

  • Terminal.app window will open and resize to maximum size
  • tmux command will be executed in the terminal window
  • if "auto restore" feature is enabled, tmux will start restoring previous env

Config options:

  • set -g @continuum-boot-options 'fullscreen' - terminal window will go fullscreen
  • set -g @continuum-boot-options 'iterm' - start iTerm instead of Terminal.app
  • set -g @continuum-boot-options 'iterm,fullscreen' - start iTerm in fullscreen
  • set -g @continuum-boot-options 'kitty' - start kitty instead of Terminal.app
  • set -g @continuum-boot-options 'kitty,fullscreen' - start kitty in fullscreen
  • set -g @continuum-boot-options 'alacritty' - start alacritty instead of Terminal.app
  • set -g @continuum-boot-options 'alacritty,fullscreen' - start alacritty in fullscreen

Note: The first time you reboot your machine and activate this feature you may be prompted about a script requiring access to a system program (i.e. - System Events). If this happens tmux will not start automatically and you will need to go to System Preferences -> Security & Privacy -> Accessability and add the script to the list of apps that are allowed to control your computer.

Linux

Help with this would be greatly appreciated. Please get in touch.

Systemd

this will only start the tmux server, it will not start any terminal emulator

To enable automatic start with systemd:

  • Put set -g @continuum-boot 'on' in .tmux.conf
  • reload tmux config with this shell command: $ tmux source-file ~/.tmux.conf
  • see systemd for more details about how this is implemented