File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ Tmux status line configured in Rust.
88 - Type-save configuration
99 - Can be programmed (e.g. dynamically rendered modules)
1010- Supports formatting
11- - Modules are evaluated parallel
11+ - Cached modules
12+ - Each module specifies when it needs to recompute and also how to update it self.
13+ - Once a module needs to recompute that specific module is updated
14+ - All other modules are cached
1215
1316## Installation
1417
@@ -36,5 +39,4 @@ The configuration is written in Rust and located in `./src/config.rs`
3639
3740## Examples
3841
39- ![ New Default] ( ./assets/new_default.png )
40- ![ Old Default] ( ./assets/default.png )
42+ ![ Default] ( ./assets/default.png )
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ pub fn get_modules() -> Vec<Module<Box<dyn ToModule>>> {
1010 ) ,
1111 Some ( DateTime :: new ( "%H:%M:%S" ) . into ( ) ) ,
1212 Some ( Cpu :: new ( 2 , 2 ) . into ( ) ) ,
13- Battery :: try_new ( 2 ) . ok ( ) . flatten ( ) . map ( |x| x. into ( ) ) ,
1413 Some ( Memory :: new ( 2 , 2 ) . into ( ) ) ,
14+ Battery :: try_new ( 2 ) . ok ( ) . flatten ( ) . map ( |x| x. into ( ) ) ,
1515 Some ( TmuxContent :: SessionName . into ( ) ) ,
1616 Warning :: new_battery ( 20 , 20.0 )
1717 . ok ( )
You can’t perform that action at this time.
0 commit comments