jimeh / tmux-themepack

A pack of various Tmux themes.
1.65k stars 204 forks source link

Theme overrides oh-my-tmux configuration #48

Open markfaine opened 2 years ago

markfaine commented 2 years ago

I'm using oh-my-tmux, tmuxinator and tmux-themepack together and the theme seems to override or obscure the tmux_conf_theme_status_left and tmux_conf_theme_status_right settings.

with theme enabled: image

without theme enabled: image

jimeh commented 2 years ago

I've not seen oh-my-tmux before, so I'm not surprised they don't play that well together.

Basically, both set the status-left/status-right properties in Tmux to be able to change how the status bar looks. So if you apply a in-compatible theme after loading oh-my-tmux, it would simply replace whatever on-my-tmux has done.

As for a solution for you, the themepack themes here have a number of options which can be used to customize what's displayed in the status bar. Check the source code for the specific theme you're using to see exactly what's available.

For example, I believe these are the relevant variables you're after if you're using the powerline/double/blue theme: https://github.com/jimeh/tmux-themepack/blob/7c59902f64dcd7ea356e891274b21144d1ea5948/powerline/double/blue.tmuxtheme#L11-L37

You can use those variables to customize the statusbar in the powerline themes. The only important thing of note, is that you must set those variables before loading the theme. As the values in the theme itself will only apply if the specific variable does not exist when the theme is loaded.

markfaine commented 2 years ago

That works thanks!