From 77485de6816e0577638876c572e2fd5d31819b64 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Wed, 19 Aug 2026 19:52:47 +0200 Subject: Minor improvements for Tmux configuration. --- tmux.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index 5182143..11062ca 100644 --- a/tmux.conf +++ b/tmux.conf @@ -11,10 +11,10 @@ # normal tmux key bindings. This is intended as an example not as to be used # as-is. -# Set the prefix to ^A. +# Set the prefix to ^_. unbind C-b -set -g prefix ^A -bind a send-prefix +set -g prefix ^_ +bind _ send-prefix # Bind appropriate commands similar to screen. # lockscreen ^X x @@ -101,9 +101,10 @@ bind BTab select-pane -t:.- unbind '"' bind '"' choose-window - set -g default-terminal "screen-256color" set -g history-limit 10000 +set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2) +setw -q -g utf8 on # Copy tmux paste buffer to CLIPBOARD bind C-c run "tmux show-buffer | xsel -i -b" # Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer @@ -118,7 +119,7 @@ set -g status-bg black set -g status-fg white set -g status-interval 60 set -g status-left-length 30 -set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]' +set -g status-left '#{?client_prefix,#[reverse]#[noreverse] ,}#[fg=green](#S) #(whoami)@#H#[default]' set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]' # Monitor activity -- cgit v1.3.1