fix(wallpaper): get current slideshow image from cosmic-bg state

This commit is contained in:
Michael Aaron Murphy 2024-02-29 04:47:47 +01:00
parent 1b4bfb619b
commit 39d0c6f7cf
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
5 changed files with 52 additions and 16 deletions

View file

@ -43,10 +43,6 @@ pub const DEFAULT_COLORS: &[Color] = &[
}),
];
pub fn current_image(output: &str) -> Result<PathBuf, cosmic_config::Error> {
cosmic_bg_config::context()?.current_image(output)
}
pub async fn config() -> (Config, HashMap<String, (String, (u32, u32))>) {
let mut displays = HashMap::new();