Add tmux selection highlight for nested sessions
This commit is contained in:
@@ -69,6 +69,18 @@ bind r source-file ~/.tmux.conf \; display "Reloaded config"
|
||||
run-shell "command -v powerline-daemon >/dev/null 2>&1 && powerline-daemon -q; true"
|
||||
run-shell "command -v powerline-config >/dev/null 2>&1 && powerline-config tmux setup; true"
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Status bar
|
||||
# ----------------------------------------------------------------------------
|
||||
# Flash the status bar when this client's prefix key is armed, so nested
|
||||
# tmux sessions (e.g. laptop -> ssh -> devbox tmux) make it obvious which
|
||||
# layer is about to receive the next keystroke. Falls back to whatever
|
||||
# status-style powerline set above (captured here) the rest of the time.
|
||||
# Colors match gruvbox's own visual/selection convention (bg0 on orange).
|
||||
set -g @status_style_armed "bg=#fe8019,fg=#282828"
|
||||
run-shell 'tmux set-option -g @status_style_normal "$(tmux show-options -gv status-style)"'
|
||||
set -g status-style "#{?client_prefix,#{@status_style_armed},#{@status_style_normal}}"
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Plugins (TPM)
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user