summaryrefslogtreecommitdiff
path: root/src/shared_state.rs
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-29 09:10:42 +0200
committercashmere <cashmere@autistici.org>2026-07-29 09:10:42 +0200
commit5b77a6d8f19500eee21a497ce84db538ded05c00 (patch)
tree13e72121a7835fd0fed34f709b6e277e624a56dc /src/shared_state.rs
parente2f5e1267cc30b73202c85aacfaee0cd6b18193c (diff)
downloadi3bar-mango-5b77a6d8f19500eee21a497ce84db538ded05c00.tar.gz
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.
Diffstat (limited to 'src/shared_state.rs')
-rw-r--r--src/shared_state.rs4
1 files changed, 4 insertions, 0 deletions
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<dyn WmInfoProvider>,
+ pub tray: Option<TrayHandle>,
+ pub tray_items: Vec<TrayItem>,
+ pub tray_expanded: bool,
}
impl SharedState {