refactor(tmux): clean up terminal settings and adjust keybindings
- Enable tmux-256color and universal RGB/clipboard terminal features - Remove stale commented-out terminal overrides and default-shell - Update escape-time and workmux popup binding - Rebind t→o for the t script
This commit is contained in:
+9
-19
@@ -1,22 +1,14 @@
|
|||||||
# set-option -g default-terminal 'screen-256color'
|
# set-option -g default-terminal 'screen-256color'
|
||||||
# set-option -g terminal-overrides ',xterm-256color:RGB'
|
# set-option -g terminal-overrides ',xterm-256color:RGB'
|
||||||
# set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -as terminal-feature ",foot*:RGB"
|
set -as terminal-feature ",*:RGB"
|
||||||
|
set -as terminal-feature ",*:clipboard"
|
||||||
|
|
||||||
# screen mode
|
# set -ag terminal-overrides ",*:Tc"
|
||||||
# set -g default-terminal "${TERM}"
|
|
||||||
# set -g default-terminal "tmux-256color"
|
|
||||||
# set -ag terminal-overrides ",xterm-256color:RGB"
|
|
||||||
|
|
||||||
# colors
|
|
||||||
# set -ag terminal-overrides ",xterm*:Tc"
|
|
||||||
|
|
||||||
# undercurl support
|
|
||||||
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
||||||
# underscore colours - needs tmux-3.0
|
|
||||||
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
||||||
# allow terminal scrolling
|
# allow terminal scrolling
|
||||||
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||||
|
|
||||||
# Force tmux to use the static symlink path globally
|
# Force tmux to use the static symlink path globally
|
||||||
setenv -g SSH_AUTH_SOCK "$HOME/.ssh/ssh_auth_sock"
|
setenv -g SSH_AUTH_SOCK "$HOME/.ssh/ssh_auth_sock"
|
||||||
@@ -24,9 +16,6 @@ set -g update-environment "DISPLAY XAUTHORITY"
|
|||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# default shell
|
|
||||||
set -g default-shell "/usr/bin/fish"
|
|
||||||
|
|
||||||
# auto rename windows
|
# auto rename windows
|
||||||
# set -g automatic-rename on
|
# set -g automatic-rename on
|
||||||
# set -g automatic-rename-format '#{pane_current_command} #{b:pane_current_path}'
|
# set -g automatic-rename-format '#{pane_current_command} #{b:pane_current_path}'
|
||||||
@@ -51,7 +40,7 @@ set -g allow-passthrough on
|
|||||||
|
|
||||||
#set -g bell-on-alert on
|
#set -g bell-on-alert on
|
||||||
|
|
||||||
set -s escape-time 1
|
set -s escape-time 0
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
set -g status-keys vi
|
set -g status-keys vi
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
@@ -64,6 +53,7 @@ set-option -g detach-on-destroy off
|
|||||||
set-option -g renumber-windows on
|
set-option -g renumber-windows on
|
||||||
set-option -g set-clipboard on
|
set-option -g set-clipboard on
|
||||||
set-option -g set-titles-string "#S:#{pane_title}"
|
set-option -g set-titles-string "#S:#{pane_title}"
|
||||||
|
set -sg escape-time 10
|
||||||
|
|
||||||
unbind C-Space
|
unbind C-Space
|
||||||
set -g prefix C-Space
|
set -g prefix C-Space
|
||||||
@@ -84,7 +74,7 @@ bind e run "tmux split -h /usr/bin/nvim"
|
|||||||
#bind o display-popup -w 80% -h 80% -E /usr/bin/opencode
|
#bind o display-popup -w 80% -h 80% -E /usr/bin/opencode
|
||||||
#bind g display-popup -w 80% -h 80% -E /usr/bin/lazygit
|
#bind g display-popup -w 80% -h 80% -E /usr/bin/lazygit
|
||||||
|
|
||||||
bind a display-popup -w 80% -h 80% "workmux status --git"
|
bind a display-popup -w 80% -h 80% -E "workmux dashboard"
|
||||||
|
|
||||||
# split windows like vim
|
# split windows like vim
|
||||||
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
||||||
@@ -106,7 +96,7 @@ bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
|
|||||||
bind Tab switch-client -l
|
bind Tab switch-client -l
|
||||||
|
|
||||||
bind R command-prompt -p "Rename Window:" "rename-window '%%'"
|
bind R command-prompt -p "Rename Window:" "rename-window '%%'"
|
||||||
bind t run-shell -b "~/.local/bin/t"
|
bind o run-shell -b "~/.local/bin/t"
|
||||||
bind Enter run-shell -b "~/.local/bin/s"
|
bind Enter run-shell -b "~/.local/bin/s"
|
||||||
bind Q confirm kill-session
|
bind Q confirm kill-session
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user