Hi,
thanks for your sharing your config with us. I picked up the section useful for me:
##
# Nesting remote sessions in local session
##
if-shell 'test -n "$SSH_CLIENT"' \
'source-file ~/.tmux.remote.conf'
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
set -u status-style \;\
set -u window-status-current-style \;\
set -u window-status-current-format \;\
refresh-client -S
wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]"
set -g status-right "$wg_is_keys_off #{sysstat_cpu} | #{sysstat_mem} | #{sysstat_loadavg} | $wg_user_host"
Unfortunately, when pressing F12, I have the following error message:
Bad style: fg=,bg=
And I don't see the tmux bar of the remote session.
–––
Edit:
Apparently, I have to retrieve variables as well…
Probably a misunderstanding, but I thought that, when pressing F12, I would switch to the remote tmux bar settings, which is different from my local tmux bar settings. Do I need to replicate the same tmux conf on the remote as well?
Hi, thanks for your sharing your config with us. I picked up the section useful for me:
Unfortunately, when pressing F12, I have the following error message:
Bad style: fg=,bg=
And I don't see the tmux bar of the remote session.
–––
Edit: