No documentation about *_STATUS_SEGMENTS variable? #441
-
Hi, I am new to this tool. I am tryingt to customize my powerline status bar to display the k8s context. I updated the code in the After much debugging and investigating, I found I need to update these variables to enable or disable the segments:
But there's document mention them. Am I supposed to tinker with them? What would be the right way to enable this segment? Also, I want to remove the battery and I too find I have to update these variables to achieve that. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
ok...I think they are not the right place to customize the segments. After I set the values, the background color of the status bar is removed. |
Beta Was this translation helpful? Give feedback.
-
Hi there, i agree, that we're lacking some documentation regarding how to configure segments! I'll put that on the list for when i have some more time in the upcoming weeks. But in general, you have two ways of configuring the segments you want to use: Configure segments in your configCopying them from the theme you currently use is probably a good starting point, so if you're using the default theme, i'd copy the following lines to the top of my tmux-powerline/themes/default.sh Lines 104 to 118 in 717688b and tmux-powerline/themes/default.sh Lines 123 to 141 in 717688b Don't forget to prepend Create your own themeCopy the default theme and modify the theme itself:
|
Beta Was this translation helpful? Give feedback.
Hi there,
i agree, that we're lacking some documentation regarding how to configure segments! I'll put that on the list for when i have some more time in the upcoming weeks.
But in general, you have two ways of configuring the segments you want to use:
Configure segments in your config
Copying them from the theme you currently use is probably a good starting point, so if you're using the default theme, i'd copy the following lines to the top of my
config.sh
tmux-powerline/themes/default.sh
Lines 104 to 118 in 717688b