diff options
author | Adam <adam@adast.xyz> | 2022-06-15 12:55:17 +0200 |
---|---|---|
committer | Adam <adam@adast.xyz> | 2022-06-15 13:18:09 +0200 |
commit | 584aa5d5626bc5129fe86715b78ecfb20eea05e3 (patch) | |
tree | 01427e96b01ce9ecedfa0087f14886e4b31ad57e | |
parent | b97206a1d79630e5d0b675195e51b774544ee29b (diff) |
tmux: better looking statusbar
-rw-r--r-- | .config/tmux/tmux.conf | 42 |
1 files changed, 27 insertions, 15 deletions
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]<Prefix>#[noreverse] ,}"#{=21:pane_title}" %H:%M %d-%b-%y' |