From fb5edb0326985f6c4c731a06ae4d1c8da207c053 Mon Sep 17 00:00:00 2001 From: "phansible (aamon)" Date: Wed, 7 May 2025 15:45:19 -0400 Subject: [PATCH] Working tmux window styles --- .tmux.conf | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 231f081..819387a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -71,7 +71,7 @@ set-option -g status-right-length 60 # Set the maximum length of the right set-option -g status-right "S:#S W:#I P:#P | %b %d %H:%M" # Display session name, window index, pane index, and the date/time on the right # Status bar style -set-option -g status-style bg=default,fg=colour8,bright # Set the background to default (transparent), foreground color, and brightness +set-option -g status-style bg=#000000,fg=grey # Set the background to default (transparent), foreground color, and brightness ######################################### # Pane Appearance @@ -90,17 +90,25 @@ set-option -g message-style bg=default,fg=colour13 # Style for messages displaye # Window Appearance ######################################### -set-option -g window-style bg=default # Default background color for windows -set-option -g window-active-style bg=default # Background color for the active window +set-window-option -g window-style bg=default # Default background color for windows +set-window-option -g window-active-style bg=default # Background color for the active window ######################################### # Window List Appearance ######################################### -set-option -g window-status-style fg=colour8,bg=default # Or your preferred inactive style -set-option -g window-status-current-style fg=colour2,bg=colour0,bright -set-option -g window-status-format "#[fg=colour8,bg=default] #I:#W#[fg=colour8,bg=default]#{?window_activity_flag,#[fg=colour11]! ,}" -set-option -g window-status-current-format "#[fg=colour2,bg=colour0,bright]● #I:#W ●#[fg=colour2,bg=colour0,nobold]" +#set-window-option -g window-status-style fg=blue # Or your preferred inactive style +#set-window-option -g window-status-format "#[fg=blue] #I:#W#[fg=blue]#{?window_activity_flag,#[fg=yellow bg=default]!,}" +#set-window-option -g window-status-current-style fg=green,bright +#set-window-option -g window-status-current-format "#[fg=green,bright]● #I:#W ●#[fg=green]" + +# Stolen from https://github.com/mhartington/dotfiles/blob/main/config/tmux/tmux-status.conf + +# Not active window +set-window-option -g window-status-format "#{?window_activity_flag,#[bg=#ffff00 fg=#000000 bold],#[fg=#228b22 bg=default]}#I:#W" + +# Active window +set-window-option -g window-status-current-format "#[bg=default fg=#7cfc00]● #I:#W" ######################################### # Window Titles