diff options
author | Matias Kotlik <mdkotlik@gmail.com> | 2019-11-12 19:57:46 -0600 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-11-13 10:57:46 +0900 |
commit | 135dddbb4fa2ded2d0d5fa75225b03048b5db99c (patch) | |
tree | 7962fff631bba6e1051145e1804e0c448c6ea12c /src/configs/memory_usage.rs | |
parent | 512ed75ef2a13f51d8f6c576e2dfb70e3812d2a9 (diff) |
feat: Add separator config to the memory module (#603)
Diffstat (limited to 'src/configs/memory_usage.rs')
-rw-r--r-- | src/configs/memory_usage.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/configs/memory_usage.rs b/src/configs/memory_usage.rs index 8b2b87982..bd4ec03c3 100644 --- a/src/configs/memory_usage.rs +++ b/src/configs/memory_usage.rs @@ -9,7 +9,9 @@ pub struct MemoryConfig<'a> { pub show_swap: bool, pub threshold: i64, pub symbol: SegmentConfig<'a>, - pub display: SegmentConfig<'a>, + pub separator: SegmentConfig<'a>, + pub ram: SegmentConfig<'a>, + pub swap: SegmentConfig<'a>, pub style: Style, pub disabled: bool, } @@ -20,8 +22,10 @@ impl<'a> RootModuleConfig<'a> for MemoryConfig<'a> { show_percentage: false, show_swap: true, threshold: 75, - display: SegmentConfig::default(), symbol: SegmentConfig::new("🐏 "), + separator: SegmentConfig::new(" | "), + ram: SegmentConfig::default(), + swap: SegmentConfig::default(), style: Color::White.bold().dimmed(), disabled: true, } |