@@ -81,40 +81,35 @@ CPU usage higher than 80%:<br/>
81
81
![ high_bg] ( /screenshots/high_bg.png )
82
82
![ high_icon] ( /screenshots/high_icon.png )
83
83
84
- ## Changing default
84
+ ## Customization
85
85
86
- By default, these icons are displayed :
86
+ Here are all available options with their default values :
87
87
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]"
91
96
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]"
93
100
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 `
97
104
98
105
Note that these colors depend on your terminal / X11 config.
99
106
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 :
101
108
102
109
``` shell
103
- set -g @cpu_low_icon " ᚋ"
104
- set -g @cpu_medium_icon " ᚌ"
105
- set -g @cpu_high_icon " ᚍ"
106
-
107
110
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]"
114
111
```
115
112
116
- Same options are valid with ` @gpu `
117
-
118
113
Don't forget to reload tmux environment (` $ tmux source-file ~/.tmux.conf ` )
119
114
after you do this.
120
115
0 commit comments