Skip to content

Commit 6530359

Browse files
committed
tmux: Sexy segmented tmux status info.
1 parent e181dcd commit 6530359

File tree

1 file changed

+80
-19
lines changed

1 file changed

+80
-19
lines changed

roles/tmux/files/tmux/tmux.conf

Lines changed: 80 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
set-option -sa terminal-overrides ",xterm*:Tc"
1+
set-option -sa terminal-overrides ",xterm-256color:RGB"
22
# set -g default-terminal "tmux-256color"
3-
set -g default-terminal "xterm-256color"
3+
set -g default-terminal "tmux-256color"
44
set -g terminal-overrides ',xterm-256color:RGB'
55
set -g mouse on
66
set -sg escape-time 0
@@ -36,6 +36,8 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
3636
set -g @plugin 'tmux-plugins/tmux-yank'
3737
set -g @plugin 'tmux-plugins/tmux-resurrect'
3838
set -g @plugin 'tmux-plugins/tmux-continuum'
39+
set -g @plugin 'tmux-plugins/tmux-online-status'
40+
set -g @plugin 'tmux-plugins/tmux-battery'
3941
set -g @plugin 'sainnhe/tmux/fzf'
4042
set -g @plugin 'wfxr/tmux-fzf-url'
4143
set -g @plugin 'christoomey/vim-tmux-navigator'
@@ -50,22 +52,81 @@ set -g @sessionx-zoxide-mode 'on'
5052
set -g @sessionx-custom-paths-subdirectories 'false'
5153
set -g @continuum-restore 'on'
5254
set -g @resurrect-strategy-nvim 'session'
53-
set -g @catppuccin_window_left_separator ""
54-
set -g @catppuccin_window_right_separator " "
55-
set -g @catppuccin_window_middle_separator ""
56-
set -g @catppuccin_window_number_position "right"
57-
set -g @catppuccin_window_default_fill "number"
58-
set -g @catppuccin_window_default_text "#W"
59-
set -g @catppuccin_window_current_fill "number"
60-
set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(),}"
61-
set -g @catppuccin_status_modules_right "directory meetings date_time"
62-
set -g @catppuccin_status_modules_left "session"
63-
set -g @catppuccin_status_left_separator ""
64-
set -g @catppuccin_status_right_separator ""
65-
set -g @catppuccin_status_right_separator_inverse "no"
66-
set -g @catppuccin_status_fill "icon"
67-
set -g @catppuccin_status_connect_separator "no"
68-
set -g @catppuccin_directory_text "#{pane_current_path}"
69-
set -g @catppuccin_date_time_text "%H:%M"
55+
set -g @catppuccin_flavor "mocha"
56+
## Theme by 89iuv
57+
# Configure Catppuccin
58+
set -g @catppuccin_flavor "mocha"
59+
set -g @catppuccin_status_background "none"
60+
set -g @catppuccin_window_status_style "none"
61+
set -g @catppuccin_pane_status_enabled "off"
62+
set -g @catppuccin_pane_border_status "off"
63+
64+
# Configure Online
65+
set -g @online_icon "ok"
66+
set -g @offline_icon "nok"
67+
68+
# status left look and feel
69+
set -g status-left-length 100
70+
set -g status-left ""
71+
set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_red},fg=#{@thm_bg},bold]  #S },#{#[bg=#{@thm_bg},fg=#{@thm_green}]  #S }}"
72+
# set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_overlay_0},none]│"
73+
# set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_maroon}]  #{pane_current_command} "
74+
set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_overlay_0},none]│"
75+
set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_blue}]  #{=/-32/...:#{s|$USER|~|:#{b:pane_current_path}}} "
76+
set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_overlay_0},none]#{?window_zoomed_flag,│,}"
77+
set -ga status-left "#[bg=#{@thm_bg},fg=#{@thm_yellow}]#{?window_zoomed_flag,  zoom ,}"
78+
79+
# status right look and feel
80+
set -g status-right-length 100
81+
set -g status-right ""
82+
set -ga status-right "#{?#{e|>=:10,#{battery_percentage}},#{#[bg=#{@thm_red},fg=#{@thm_bg}]},#{#[bg=#{@thm_bg},fg=#{@thm_pink}]}} #{battery_icon} #{battery_percentage} "
83+
set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}, none]│"
84+
set -ga status-right "#[bg=#{@thm_bg}]#{?#{==:#{online_status},ok},#[fg=#{@thm_mauve}] 󰖩 on ,#[fg=#{@thm_red},bold]#[reverse] 󰖪 off }"
85+
# set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}, none]│"
86+
# set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_blue}] 󰭦 %Y-%m-%d 󰅐 %H:%M "
87+
88+
# Configure Tmux
89+
set -g status-position bottom
90+
set -g status-style "bg=#{@thm_bg}"
91+
set -g status-justify "absolute-centre"
92+
93+
# pane border look and feel
94+
# setw -g pane-border-status top
95+
# setw -g pane-border-format ""
96+
# setw -g pane-active-border-style "bg=#{@thm_bg},fg=#{@thm_overlay_0}"
97+
# setw -g pane-border-style "bg=#{@thm_bg},fg=#{@thm_surface_0}"
98+
# setw -g pane-border-lines single
99+
100+
# window look and feel
101+
set -wg automatic-rename on
102+
set -g automatic-rename-format "#{pane_current_command}"
103+
104+
set -g window-status-format " #I#{?#{!=:#{window_name},Window},: #W,} "
105+
set -g window-status-style "bg=#{@thm_bg},fg=#{@thm_rosewater}"
106+
set -g window-status-last-style "bg=#{@thm_bg},fg=#{@thm_peach}"
107+
set -g window-status-activity-style "bg=#{@thm_red},fg=#{@thm_bg}"
108+
set -g window-status-bell-style "bg=#{@thm_red},fg=#{@thm_bg},bold"
109+
set -gF window-status-separator "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}]│"
110+
111+
set -g window-status-current-format " #I#{?#{!=:#{window_name},Window},: #W,} "
112+
set -g window-status-current-style "bg=#{@thm_peach},fg=#{@thm_bg},bold"
113+
114+
# set -g @catppuccin_window_left_separator ""
115+
# set -g @catppuccin_window_right_separator " "
116+
# set -g @catppuccin_window_middle_separator " █"
117+
# set -g @catppuccin_window_number_position "right"
118+
# set -g @catppuccin_window_default_fill "number"
119+
# set -g @catppuccin_window_default_text "#W"
120+
# set -g @catppuccin_window_current_fill "number"
121+
# set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(),}"
122+
# set -g @catppuccin_status_modules_right "directory meetings date_time"
123+
# set -g @catppuccin_status_modules_left "session"
124+
# set -g @catppuccin_status_left_separator " "
125+
# set -g @catppuccin_status_right_separator " "
126+
# set -g @catppuccin_status_right_separator_inverse "no"
127+
# set -g @catppuccin_status_fill "icon"
128+
# set -g @catppuccin_status_connect_separator "no"
129+
# set -g @catppuccin_directory_text "#{pane_current_path}"
130+
# set -g @catppuccin_date_time_text "%H:%M"
70131

71132
run -b '~/.tmux/plugins/tpm/tpm'

0 commit comments

Comments
 (0)