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 {
40
     pub font_family: String,
40
     pub font_family: String,
41
     /// Font size.
41
     /// Font size.
42
     pub font_size: f64,
42
     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>,
43
 }
46
 }
44
 
47
 
45
 impl Default for Config {
48
 impl Default for Config {
@@ -70,6 +73,7 @@ impl Default for GuiConfig {
70
             show_legend: true,
73
             show_legend: true,
71
             font_family: "sans-serif".to_string(),
74
             font_family: "sans-serif".to_string(),
72
             font_size: 12.0,
75
             font_size: 12.0,
76
+            default_pane: None,
73
         }
77
         }
74
     }
78
     }
75
 }
79
 }