Skip to content

Commit c391e7d

Browse files
committed
Update the README
1 parent beb875d commit c391e7d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

assets/default.png

-188 KB
Loading

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)