home: wm: i3: launch tmux when starting terminal
continuous-integration/drone/push Build is passing Details

Similarly to the `zsh` snippet, launch tmux unless I explicitly do not
want it.

The reason I also add it in `i3` is to make the launch happen sooner,
and to avoid doing double work on some shell startup shenanigans if I
can.
This commit is contained in:
Bruno BELANYI 2021-09-30 15:36:29 +02:00
parent 24de1890fc
commit 07cf0fa4da
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ in
keybindings = lib.my.recursiveMerge [
{
# The basics
"${modifier}+Return" = "exec ${terminal}";
"${modifier}+Return" = "exec ${terminal} ${
lib.optionalString config.my.home.tmux.enable "-e tmux new-session"
}";
"${modifier}+Shift+Return" = "exec env TMUX=nil ${terminal}";
"${modifier}+Shift+q" = "kill";
"${modifier}+f" = "fullscreen toggle";