Skip to content

Commit befc5d5

Browse files
committed
Rewrite customization section
1 parent e2f047a commit befc5d5

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

README.md

+17-22
Original file line numberDiff line numberDiff line change
@@ -81,40 +81,35 @@ CPU usage higher than 80%:<br/>
8181
![high_bg](/screenshots/high_bg.png)
8282
![high_icon](/screenshots/high_icon.png)
8383

84-
## Changing default
84+
## Customization
8585

86-
By default, these icons are displayed:
86+
Here are all available options with their default values:
8787

88-
- low: "="
89-
- medium: "≡"
90-
- high: "≣"
88+
```
89+
@cpu_low_icon "="
90+
@cpu_medium_icon "≡"
91+
@cpu_high_icon "≣"
92+
93+
@cpu_low_fg_color "#[fg=green]"
94+
@cpu_medium_fg_color "#[fg=yellow]"
95+
@cpu_high_fg_color "#[fg=red]"
9196
92-
And these colors are used:
97+
@cpu_low_bg_color "#[bg=green]"
98+
@cpu_medium_bg_color "#[bg=yellow]"
99+
@cpu_high_bg_color "#[bg=red]"
93100
94-
- low: `#[fg=green]` `#[bg=green]`
95-
- medium: `#[fg=yellow]` `#[bg=yellow]`
96-
- high: `#[fg=red]` `#[bg=red]`
101+
```
102+
103+
Same options are valid with `@gpu`
97104

98105
Note that these colors depend on your terminal / X11 config.
99106

100-
You can change these defaults by adding the following to `.tmux.conf`:
107+
You can can customize each one of these options in your `.tmux.conf`, for example:
101108

102109
```shell
103-
set -g @cpu_low_icon ""
104-
set -g @cpu_medium_icon ""
105-
set -g @cpu_high_icon ""
106-
107110
set -g @cpu_low_fg_color "#[fg=#00ff00]"
108-
set -g @cpu_medium_fg_color "#[fg=#ffff00]"
109-
set -g @cpu_high_fg_color "#[fg=#ff0000]"
110-
111-
set -g @cpu_low_bg_color "#[bg=#00ff00]"
112-
set -g @cpu_medium_bg_color "#[bg=#ffff00]"
113-
set -g @cpu_high_bg_color "#[bg=#ff0000]"
114111
```
115112

116-
Same options are valid with `@gpu`
117-
118113
Don't forget to reload tmux environment (`$ tmux source-file ~/.tmux.conf`)
119114
after you do this.
120115

0 commit comments

Comments
 (0)