From e93a833401ed5727f4b1a7097f029fe9884b71d9 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 6 Jul 2021 16:56:46 +0200 Subject: [PATCH] Better config formating in README also add /usr/share/icons/hicolor/scalable/apps to default for icon_dirs. --- README.md | 7 ++++++- src/config.rs | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2822285..a26a488 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,12 @@ window_format = '{urgency_start}“{title}”{urgency_end} — {app_na workspace_format = 'Workspace {name} ({id})' urgency_start = '' urgency_end = '' -icon_dirs = ['/usr/share/icons/Adwaita/48x48/apps', '/usr/share/icons/hicolor/48x48/apps', '/usr/share/pixmaps'] +icon_dirs = [ + '/usr/share/icons/hicolor/scalable/apps', + '/usr/share/icons/Adwaita/48x48/apps', + '/usr/share/icons/hicolor/48x48/apps', + '/usr/share/pixmaps', +] fallback_icon = '/usr/share/icons/gnome/48x48/apps/kwin.png' ``` diff --git a/src/config.rs b/src/config.rs index 24491ae..8383775 100644 --- a/src/config.rs +++ b/src/config.rs @@ -81,6 +81,7 @@ impl Default for Format { ), urgency_end: Some("".to_string()), icon_dirs: Some(vec![ + "/usr/share/icons/hicolor/scalable/apps".to_string(), "/usr/share/icons/hicolor/48x48/apps".to_string(), "/usr/share/pixmaps".to_string(), ]),