gardesk/gartop / 22b5e03

Browse files

Add default_pane config option for garbar integration

Authored by espadonne
SHA
22b5e03cf46cd38d319519d04b09036c07c3261c
Parents
dfa3936
Tree
a0e0cdd

1 changed file

StatusFile+-
M gartop/src/config.rs 4 0
gartop/src/config.rsmodified
@@ -40,6 +40,9 @@ pub struct GuiConfig {
4040
     pub font_family: String,
4141
     /// Font size.
4242
     pub font_size: f64,
43
+    /// Default pane to open (cpu, memory, network, disk).
44
+    #[serde(skip_serializing_if = "Option::is_none")]
45
+    pub default_pane: Option<String>,
4346
 }
4447
 
4548
 impl Default for Config {
@@ -70,6 +73,7 @@ impl Default for GuiConfig {
7073
             show_legend: true,
7174
             font_family: "sans-serif".to_string(),
7275
             font_size: 12.0,
76
+            default_pane: None,
7377
         }
7478
     }
7579
 }