I am using alacritty and tmux together. Is it possible to make tmux run everytime when I launch alacritty?
Asked
Active
Viewed 5,283 times
3 Answers
15
Yes. In the shell
option, you can set the program you want to run and even pass in the arguments. For example, in your alacritty.yml
file, you can set this:
shell:
program: /usr/local/bin/tmux # <- set this to the path of your tmux installation
args:
- new-session
- -A
- -D
- -s
- main
Every time you start alacritty, tmux will start a new session and pass the other args.

musale
- 534
- 8
- 18
3
Or go the easy route and launch your terminal this way:
alacritty -e tmux

Earthling Z3R0
- 31
- 1
-
1Cool idea, but I'm guessing many won't have a terminal open to start another terminal :) – Raheel Junaid Jul 04 '21 at 22:53
-
You don't have to. Not sure what you're talking about. Go to your keybinds and change the launch parameters. – Earthling Z3R0 Jul 06 '21 at 06:46
-
True, though I don't launch alacritty with a key bind. – Raheel Junaid Jul 06 '21 at 15:50
1
i'm using this script: https://cedaei.com/posts/ideas-from-my-dev-setup-always-tmux/ had it from https://lobste.rs/s/n5blid/ideas_from_my_development_setup_always
and use it in alacritty as:
shell:
program: /home/user/.local/bin/tmux_chooser.sh

bugrasan
- 397
- 2
- 9