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

Unable to customize status-right config #23

Closed
Clumsy-Coder opened this issue Mar 31, 2022 · 4 comments · Fixed by #31
Closed

Unable to customize status-right config #23

Clumsy-Coder opened this issue Mar 31, 2022 · 4 comments · Fixed by #31

Comments

@Clumsy-Coder
Copy link

I'm trying to use another plugin https://github.com/MunifTanjim/tmux-mode-indicator to display current tmux mode with the current status-right.

It seems tmux-gruvbox to be overriding the custom config.

Config:

set -g status-right "#[bg=colour237,fg=colour239 nobold, nounderscore, noitalics]#[bg=colour239,fg=colour246] %Y-%m-%d  %H:%M #[bg=colour239,fg=colour248,nobold,noitalics,nounderscore]#[bg=colour248,fg=colour237] #h #{tmux_mode_indicator} "

Steps to reproduce

  1. Load gruvbox plugin
  2. Load tmux-mode-indicator plugin
  3. Load custom status-right config
  4. Custom status-right not updated

NOTE: it only works if

  1. Load the gruvbox plugin
  2. Load custom status-right config
  3. disable the gruvbox plugin from the tmux config (Tmux plugin manager)
  4. reload tmux config tmux source-file ~/.tmux.conf

this is what I'm hoping to display
image

@mvaldes14
Copy link

have the same situation, would love for the theme to allow us to pass some custom fields.

@realzhujunhao
Copy link

After installation, edit ~/.tmux/plugins/tmux-gruvbox/tmux-gruvbox-dark.conf (or tmux-gruvbox-light.conf)
Remove the line starts with set-option -g status-right.
Then disable and enable gruvbox again.
This worked for me, but I guess it won't survive an update. :)

@egel
Copy link
Owner

egel commented Sep 9, 2024

Wow! First of all thanks to all for a lot of effort to document this.

TLDR;
I am coming to you with good news. While adding new features, I hopefully fix the problem with interpreting the values from other plugins like tmux-mode-indicator that make it hard to show up in the theme. I need to do a couple of more tests to be more certain it will also work for other plugins as well, but as soon as I have it, will definitely come back to you.


A cup of details

Currently, I am working on expanding the theme with some customization options (as many users reported) and being more flexible with what the users may want to define in each section. This issue hopefully should be resolved after merging #31.

If you want you may test it already in #31 (it is still WIP, and it may require a setup plugin for development -> see more of the new section in readme), but after a few tests I hope it may look like you may desire (see sample screenshot below).

image

@egel
Copy link
Owner

egel commented Dec 1, 2024

done, closing after merging release/v2.0.0

@egel egel closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants