feat(rex): make Rex Beta the default terminal

This commit is contained in:
Rasyidan Akbar F. 2026-11-02 19:45:57 +07:00
commit e019a60b4e
4 changed files with 16 additions and 3 deletions

View file

@ -19,7 +19,8 @@
"alt-comma" = "layout accordion horizontal vertical"; "alt-comma" = "layout accordion horizontal vertical";
"alt-space" = "layout floating tiling"; "alt-space" = "layout floating tiling";
"alt-enter" = ''exec-and-forget open -na "kitty"''; # Rex is a single app, so open focuses it. Cmd+N in Rex opens a new window.
"alt-enter" = ''exec-and-forget open -a "Rex Beta"'';
"alt-backspace" = "close"; "alt-backspace" = "close";
"alt-tab" = "workspace-back-and-forth"; "alt-tab" = "workspace-back-and-forth";
@ -33,7 +34,7 @@
// workspaceSendBindings; // workspaceSendBindings;
float.binding = { float.binding = {
enter = ''exec-and-forget open -na "kitty" && aerospace layout floating''; enter = ''exec-and-forget open -a "Rex Beta" && aerospace layout floating'';
i = [ i = [
''exec-and-forget open -na "iTerm.app"'' ''exec-and-forget open -na "iTerm.app"''
"layout floating" "layout floating"

View file

@ -32,7 +32,12 @@
"if".window-title-regex-substring = "pet|hatch"; "if".window-title-regex-substring = "pet|hatch";
run = "layout floating"; run = "layout floating";
} }
# Exception: Kitty on workspace 5 floats # Exception: Rex and Kitty on workspace 5 float
{
"if".app-id = "com.superlogical.rex";
"if".workspace = "5";
run = "layout floating";
}
{ {
"if".app-id = "net.kovidgoyal.kitty"; "if".app-id = "net.kovidgoyal.kitty";
"if".workspace = "5"; "if".workspace = "5";

View file

@ -30,6 +30,7 @@
set-option -g focus-events on set-option -g focus-events on
# Avoid CSI-u newline remapping that breaks Neovim pastes # Avoid CSI-u newline remapping that breaks Neovim pastes
set -as terminal-features 'xterm-kitty:clipboard,RGB' set -as terminal-features 'xterm-kitty:clipboard,RGB'
set -as terminal-features 'xterm-rex:clipboard,RGB'
set -g status-interval 5 set -g status-interval 5
setw -g automatic-rename on setw -g automatic-rename on
set -g renumber-windows on set -g renumber-windows on

View file

@ -53,6 +53,12 @@
"$HOME/.lmstudio/bin" "$HOME/.lmstudio/bin"
) )
# Rex prepends its own bin dir to PATH, but the fixed list above drops it.
# Keep it first so the CLI matches the running server. Empty outside Rex.
if [ -n "$REX_BIN_DIR" ]; then
path=("$REX_BIN_DIR" $path)
fi
export PATH export PATH
# kitten ssh refuses to run outside a kitty window. # kitten ssh refuses to run outside a kitty window.