diff --git a/Cargo.toml b/Cargo.toml index 2f06382..c56d7ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ winapi = { version = "0.3", features = ["winuser"] } enquote = "1.1.0" [features] +default = ["dump-json"] update-informer = ["dep:update-informer"] web-image = ["dep:reqwest"] dump-json = ["dep:serde_json"] diff --git a/example/config.toml b/example/config.toml index c74c289..a5f100f 100644 --- a/example/config.toml +++ b/example/config.toml @@ -4,7 +4,6 @@ [config.wallpaper] command = "swww" arguments = ["img", "--transition-type", "center"] -set = true # pre_hook = "" [config.custom_keywords] diff --git a/src/helpers.rs b/src/helpers.rs index 4ac6777..d54071f 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -63,11 +63,7 @@ pub fn set_wallpaper(source: &Source, wallpaper_cfg: wallpaper::Wallpaper) -> Re #[cfg(feature = "web-image")] Source::WebImage { .. } => return Ok(()), }; - if !wallpaper_cfg.set { - return Ok(warn!( - "Wallpaper setting disabled, not setting wallpaper..." - )); - }; + #[cfg(target_os = "windows")] wallpaper::windows::set(path)?; #[cfg(target_os = "macos")] diff --git a/src/wallpaper/mod.rs b/src/wallpaper/mod.rs index a261724..54a63fb 100644 --- a/src/wallpaper/mod.rs +++ b/src/wallpaper/mod.rs @@ -2,7 +2,6 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Wallpaper { - pub set: bool, /// Useful for, for example, killing the wallpaper daemon pub pre_hook: Option, pub command: String,