From 584aa5d5626bc5129fe86715b78ecfb20eea05e3 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 15 Jun 2022 12:55:17 +0200 Subject: tmux: better looking statusbar --- .config/tmux/tmux.conf | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) (limited to '.config/tmux/tmux.conf') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index cc1aabf..a12f902 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -1,19 +1,34 @@ set -g default-terminal "tmux-256color" set -ag terminal-overrides ",xterm-256color:RGB" -set -g base-index 1 -set -g status-keys vi +set -g default-terminal screen-256color + +set -g mouse on set -g history-limit 10000 set -sg escape-time 0 -setw -g mode-keys vi -setw -g monitor-activity on + +set -g base-index 1 set-option -g set-titles on +set-option -g renumber-windows on set-window-option -g automatic-rename on -# Kill window/pane without confirmation -bind-key & kill-window -bind-key x kill-pane +# Quiet +set-option -g visual-activity off +set-option -g visual-bell off +set-option -g visual-silence off +set-option -g bell-action none +set-window-option -g monitor-activity off -# remap prefix from 'C-b' to 'C-Space' +# Statusline +set -g status-justify centre +set -g status-left '' +set -g status-right '' +set-option -g status-style bg=default +setw -g window-status-current-style fg=colour81,bold +setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' +setw -g window-status-style fg=colour138 +setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' + +# Remap prefix from 'C-b' to 'C-Space' unbind C-b set-option -g prefix C-Space bind-key C-Space send-prefix @@ -21,12 +36,9 @@ bind-key C-Space send-prefix bind-key v split-window -h bind-key s split-window -v +# Kill window/pane without confirmation +bind-key & kill-window +bind-key x kill-pane + # Reload config bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf - -# THEME -set -g status-bg black -set -g status-fg white -set -g status-interval 60 -set -g status-left-length 30 -set -g status-right ' #{?client_prefix,#[reverse]#[noreverse] ,}"#{=21:pane_title}" %H:%M %d-%b-%y' -- cgit v1.2.3-70-g09d2