nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.07k stars 141 forks source link

Custom right status content #35

Closed josh9060 closed 5 years ago

josh9060 commented 5 years ago

Hi,

I'm having a little bit of an issue.

I have customised the right status content to include some extra plugins. However, when I restart my computer, the left status content looses its theming.

Left status content after restart:

Screenshot 2019-05-28 at 16 59 06

However, the right side is fine:

Screenshot 2019-05-28 at 17 00 14

My tmux conf:

# Remap prefix from 'C-b' to 'C-space'
unbind C-b
set-option -g prefix C-space
bind-key C-space send-prefix

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'arcticicestudio/nord-tmux'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'

# Enable mouse mode
set -g mouse on

# Set default icons for battery plugin 
set -g @batt_charged_icon "šŸ˜Ž "
set -g @batt_charging_icon "šŸ‘ "
set -g @batt_attached_icon "šŸ˜ "
set -g @batt_full_charge_icon "šŸŒ• "
set -g @batt_high_charge_icon "šŸŒ– "
set -g @batt_medium_charge_icon "šŸŒ— "
set -g @batt_low_charge_icon "šŸŒ˜ "

# Set prefix text for prefix and copy modes
set -g @prefix_highlight_prefix_prompt " Prefix " 
set -g @prefix_highlight_copy_prompt " Copy "

# Setup right status bar
set -g status-right-length "60"
set -g @nord_tmux_show_status_content "0"

set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]ī‚²#[fg=white,bg=brightblack] #{battery_icon}#{battery_percentage} ī‚³ #{cpu_icon} #{cpu_percentage} #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]ī‚³#[fg=white,bg=brightblack] %I:%M%p #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]ī‚²#[fg=black,bg=cyan,bold] #H "

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'

I can solve this issue manually through these steps:

Step 1: Change this set -g @nord_tmux_show_status_content "0" to set -g @nord_tmux_show_status_content "1" and then run tmux source-file ~/.tmux.conf. Step 2: Change set -g @nord_tmux_show_status_content "1" back to set -g @nord_tmux_show_status_content "0" and then re-run tmux source-file ~/.tmux.conf.

This gives me the result I want:

Screenshot 2019-05-28 at 17 09 07

However, this is annoying...

Thanks in advance and love everything artic!

creativecreature commented 5 years ago

If you look at nord.tmux in the root directory of this project you can see that there is a check for whether the user has set show_status_content or not. If you have set it to zero it wont source the other files inside of src directory.

What you can do is copy paste the contents of either nord-status-content.conf or nord-status-content-no-patched-font.conf(depending on if you want the patched font or not) to your tmux.conf file, or if you dont want to copy paste the content to your own config file you could just source the file yourself.

josh9060 commented 5 years ago

Sourcing nord-status-content.conf fixed the issue @CharlesConner. Thanks!