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/shared_state.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared_state.rs') diff --git a/src/shared_state.rs b/src/shared_state.rs index c484d24..3bf05e5 100644 --- a/src/shared_state.rs +++ b/src/shared_state.rs @@ -5,6 +5,7 @@ use crate::{ config::Config, icon::IconCache, status_cmd::StatusCmd, + tray::{TrayHandle, TrayItem}, wm_info_provider::{self, WmInfoProvider}, }; @@ -17,6 +18,9 @@ pub struct SharedState { pub blocks_cache: BlocksCache, pub icon_cache: IconCache, pub wm_info_provider: Box, + pub tray: Option, + pub tray_items: Vec, + pub tray_expanded: bool, } impl SharedState { -- cgit v1.3.1