From 501c8e64a0af23e3fc1c195e46708d99db40aed8 Mon Sep 17 00:00:00 2001 From: Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> Date: Thu, 29 Apr 2021 22:54:16 +0300 Subject: [PATCH] removed battery source from rsblocks.yml (#51) --- rsblocks.yml | 5 +++-- src/config/battery.rs | 2 -- src/types.rs | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rsblocks.yml b/rsblocks.yml index 1fda65e..e94f069 100644 --- a/rsblocks.yml +++ b/rsblocks.yml @@ -42,7 +42,7 @@ memory: disk: delay: 120.0 - enabled: true + enabled: false icon: '' @@ -50,7 +50,6 @@ battery: delay: 120.0 enabled: false icon: '' - source: 'BAT0' cpu_temperature: @@ -66,6 +65,8 @@ loadavg: icon: '' # bitcoin price +# bitcoin function using www.blockchain.com's API, +# you can visit that to check other bitcoins symbols! bitcoins: delay: 7200.0 # 2 hours enabled: false diff --git a/src/config/battery.rs b/src/config/battery.rs index 5f7eaea..2d4599d 100644 --- a/src/config/battery.rs +++ b/src/config/battery.rs @@ -3,7 +3,6 @@ use std::default::Default; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Battery { - pub source: String, pub icon: String, pub enabled: bool, pub delay: f64, @@ -12,7 +11,6 @@ pub struct Battery { impl Default for Battery { fn default() -> Self { Battery { - source: String::from("BAT0"), icon: String::from(""), enabled: false, delay: 120.0, diff --git a/src/types.rs b/src/types.rs index a7fd975..9b31946 100644 --- a/src/types.rs +++ b/src/types.rs @@ -75,7 +75,6 @@ pub struct Weather { #[derive(Clone)] pub struct Battery { - pub source: String, pub icon: String, pub enabled: bool, pub delay: f64,