aboutsummaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index 7184d47..5def739 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -14,6 +14,7 @@ pub enum ThreadsData {
Spotify(String),
LoadAvg(String),
NetSpeed(String),
+ PubIp(String),
}
#[derive(Clone)]
@@ -30,6 +31,7 @@ pub struct Config {
pub mpd: Mpd,
pub spotify: Spotify,
pub loadavg: LoadAvg,
+ pub pub_ip: PubIp,
}
#[derive(Clone)]
@@ -122,6 +124,13 @@ pub struct NetSpeed {
pub enabled: bool,
}
+#[derive(Clone)]
+pub struct PubIp {
+ pub icon: String,
+ pub enabled: bool,
+ pub delay: f64,
+}
+
pub struct Blocks {
pub disp: Display<name::NameConnection>,
pub root: Window,