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

Support for tmux-battery and tmux-cpu #22

Open
Laleee opened this issue Apr 6, 2018 · 3 comments
Open

Support for tmux-battery and tmux-cpu #22

Laleee opened this issue Apr 6, 2018 · 3 comments

Comments

@Laleee
Copy link

Laleee commented Apr 6, 2018

Hi,

I wanted to use tmux-battery and tmx-cpu plugins with this theme but icons seem to be behind status content. Can you add support for those?

Loved the theme!

@nb5p
Copy link

nb5p commented Aug 20, 2018

Yes, I have encountered the same problem. The status bar is overwritten after using the theme.

@arcticicestudio
Copy link
Contributor

arcticicestudio commented Aug 20, 2018

By default, this theme provides status bar content (including the powerline-styled background arrows).
The status content can be disabled by setting the @nord_tmux_show_status_content to 0:

set -g @nord_tmux_show_status_content "0"

This allows to define the status content on your own so you can add the variables for the specified plugins. The latest version 0.2.0 currently doesn't include the configuration, but you can use the develop branch until v0.3.0 is released which then includes #8.

@gusgamble
Copy link

For anyone looking, there is a way to modify what is already there. Note that this requires tmux-cpu to be installed.
This is what I was able to achive:
Screen Shot 2019-11-18 at 3 30 07 AM
and it does update with real time readings

Steps:

  1. make a backup of the existing config just in casecd ~/.tmux/plugins/nord-tmux/source/ && cp nord-status-content.conf nord-status-content.conf.bak *note that the path you have might be different

  2. replace the status-right formatting with:

set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] CPU: #{cpu_icon} #{cpu_percentage} #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H "

I decided to remove the date from the Nord bar and replace that, but it should be the same procedure to swap others too.

Anyway, that's just my 5-second hack for it. This is all untested, and will inevitably be lost during any updating so...

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

No branches or pull requests

4 participants