Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme overrides oh-my-tmux configuration #48

Open
markfaine opened this issue Apr 14, 2022 · 2 comments
Open

Theme overrides oh-my-tmux configuration #48

markfaine opened this issue Apr 14, 2022 · 2 comments

Comments

@markfaine
Copy link

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
Copy link
Owner

jimeh commented Apr 15, 2022

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:

# Themepack format options
set -goq @themepack-status-left-area-left-format "#S"
set -goq @themepack-status-left-area-middle-format "#(whoami)"
set -goq @themepack-status-left-area-right-format "#I:#P"
set -goq @themepack-status-right-area-left-format "%H:%M:%S"
set -goq @themepack-status-right-area-middle-format "%d-%b-%y"
set -goq @themepack-status-right-area-right-format "#H"
set -goq @themepack-window-status-current-format "#I:#W#F"
set -goq @themepack-window-status-format "#I:#W#F"
# Customizable prefixes and suffixes for @themepack-* format options
set -goq @themepack-status-left-area-left-prefix ""
set -goq @themepack-status-left-area-left-suffix ""
set -goq @themepack-status-left-area-middle-prefix ""
set -goq @themepack-status-left-area-middle-suffix ""
set -goq @themepack-status-left-area-right-prefix ""
set -goq @themepack-status-left-area-right-suffix ""
set -goq @themepack-status-right-area-left-prefix ""
set -goq @themepack-status-right-area-left-suffix ""
set -goq @themepack-status-right-area-middle-prefix ""
set -goq @themepack-status-right-area-middle-suffix ""
set -goq @themepack-status-right-area-right-prefix ""
set -goq @themepack-status-right-area-right-suffix ""
set -goq @themepack-window-status-current-prefix ""
set -goq @themepack-window-status-current-suffix ""
set -goq @themepack-window-status-prefix ""
set -goq @themepack-window-status-suffix ""

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
Copy link
Author

That works thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants