I am using alacritty and tmux together. Is it possible to make tmux run everytime when I launch alacritty?
Is it possible to make alacritty starts with tmux?
9.1k views Asked by John Winston At
5
There are 5 answers
0
On
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
0
On
Thanks to @jogarjia's answer i was able to create my solution. If you add these lines to your alacritty config file, Whenever you open a new alacritty window, it will try to connect a tmux session named "general", if it doesn't exist it will create it and attach to it.
shell:
program: /usr/bin/tmux
args:
- new-session
- -A
- -s
- general
Also please check if the tmux path is correct by:
where tmux
Yes. In the
shell
option, you can set the program you want to run and even pass in the arguments. For example, in youralacritty.yml
file, you can set this:Every time you start alacritty, tmux will start a new session and pass the other args.