Custom right status content
josh9060 opened this issue ยท 2 comments
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:
However, the right side is fine:
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:
However, this is annoying...
Thanks in advance and love everything artic!
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.
Sourcing nord-status-content.conf
fixed the issue @CharlesConner. Thanks!