From f2d0e639b4882ecdd6ced4267f67150f5c0c4506 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 13 Apr 2024 02:25:04 +0200 Subject: [PATCH] Only display date and time on local tmux session --- tmux/gruvbox.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux/gruvbox.conf b/tmux/gruvbox.conf index 5e9dac9..d10d3e5 100644 --- a/tmux/gruvbox.conf +++ b/tmux/gruvbox.conf @@ -49,6 +49,10 @@ set-window-option -g window-status-separator "" set-option -g status-left "#[bg=$header,fg=$dark0,bold] #S " set-option -g status-right "#{?$wg_is_keys_off,  ,}#[bg=$background,fg=$secondary]#[bg=$secondary,fg=$light1] %Y-%m-%d #[fg=$light4]#[fg=$light1] %H:%M #[bg=$secondary,fg=$header]#[bg=$header,fg=$dark0,bold] #h " +# Override status-right if we are connected over ssh +if-shell 'test -n "$SSH_CLIENT"' \ + 'set-option -g status-right "#[bg=$background,fg=$header]#[bg=$header,fg=$dark0,bold] #h "' + set-window-option -g window-status-current-format "\ #[bg=$current_color]#{?window_start_flag,#[fg=$header],#[fg=$background]}\ #[fg=$dark0] #I  #W#{?window_zoomed_flag, [Z],} \