From 5b77a6d8f19500eee21a497ce84db538ded05c00 Mon Sep 17 00:00:00 2001 From: cashmere Date: Wed, 29 Jul 2026 09:10:42 +0200 Subject: add collapsible SNI system tray, rename project to i3bar-mango Tray: the bar acts as org.kde.StatusNotifierWatcher plus host (zbus), rendering items on the right edge with icon/name; [tray] config toggles expanded, show_icon, show_name, show_description. Clicks map to Activate/SecondaryActivate/ContextMenu. Rename: package, binary, config dir, layer-shell namespace and DBus names are now i3bar-mango; mango is the default feature and the first WM provider tried. --- src/wm_info_provider.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wm_info_provider.rs') diff --git a/src/wm_info_provider.rs b/src/wm_info_provider.rs index 67e5f83..f46c4e0 100644 --- a/src/wm_info_provider.rs +++ b/src/wm_info_provider.rs @@ -62,7 +62,13 @@ pub trait WmInfoProvider: Any { } } +#[cfg_attr(not(feature = "river"), allow(unused_variables))] pub fn bind(conn: &mut Connection, config: &WmConfig) -> Box { + #[cfg(feature = "mango")] + if let Some(mango) = MangoInfoProvider::new() { + return Box::new(mango); + } + #[cfg(feature = "river")] if let Some(river) = RiverInfoProvider::bind(conn, config) { return Box::new(river); @@ -78,11 +84,6 @@ pub fn bind(conn: &mut Connection, config: &WmConfig) -> Box