From a0f3ecddf8cf35c4fc61f41fe50d4041bba9f9b5 Mon Sep 17 00:00:00 2001 From: xzeldon Date: Fri, 19 Aug 2022 13:16:53 +0300 Subject: [PATCH] tmux statusbar --- .tmux.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 3f5973c..22ab347 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -28,6 +28,26 @@ set -g remain-on-exit on # Turn the mouse on, but without copy mode dragging set -g mouse on +# Status bar +set-option -g status on +set-option -g status-interval 1 +set-option -g status-justify centre +set-option -g status-keys vi +set-option -g status-position bottom +set-option -g status-style fg=colour136,bg=colour235 +set-option -g status-left-length 20 +set-option -g status-left-style default +set-option -g status-left "#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r)#[default]" +set-option -g status-right-length 140 +set-option -g status-right-style default +set-option -g status-right "#[fg=green,bg=default,bright]#(tmux-mem-cpu-load) " +set-option -ag status-right "#[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') " +set-option -ag status-right " #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d" +set-window-option -g window-status-style fg=colour244 +set-window-option -g window-status-style bg=default +set-window-option -g window-status-current-style fg=colour166 +set-window-option -g window-status-current-style bg=default + # Some extra key bindings to select higher numbered windows bind F1 selectw -t:10 bind F2 selectw -t:11