summaryrefslogtreecommitdiff
path: root/src/shared_state.rs
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-21 14:07:42 +0200
committercashmere <cashmere@autistici.org>2026-07-21 14:07:42 +0200
commit198f374a18b5c8a0e21f7d41125393aa89523f5c (patch)
treead8d32cc498b1b2715a5e71e5f438bf4bacfca53 /src/shared_state.rs
parent85f0a9e875eee768766d7bdd24272d348f6b1e33 (diff)
downloadi3bar-mango-198f374a18b5c8a0e21f7d41125393aa89523f5c.tar.gz
mango: show focused window next to tags, fix mmsg lookup, 0.15.x compat
- new focused-window block ({icon} {app_id} - {title}) driven by the active_client field of mmsg watch all-monitors (mangowm >= 0.14) - resolve program icons via freedesktop icon themes/.desktop files (new icon module, cairo png feature, cached per app_id) - new show_focused_window config option (default true) - run mmsg from PATH instead of hardcoded /usr/bin/mmsg (broken on NixOS) - handle null active_client fields (no focused client) without failing to parse the whole event - drop stale TODO comment and unused variable in mango provider - add .justfile run recipe exporting MANGO_INSTANCE_SIGNATURE
Diffstat (limited to 'src/shared_state.rs')
-rw-r--r--src/shared_state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared_state.rs b/src/shared_state.rs
index 17752d7..c484d24 100644
--- a/src/shared_state.rs
+++ b/src/shared_state.rs
@@ -3,6 +3,7 @@ use std::any::Any;
use crate::{
blocks_cache::BlocksCache,
config::Config,
+ icon::IconCache,
status_cmd::StatusCmd,
wm_info_provider::{self, WmInfoProvider},
};
@@ -14,6 +15,7 @@ pub struct SharedState {
pub config: Config,
pub status_cmd: Option<StatusCmd>,
pub blocks_cache: BlocksCache,
+ pub icon_cache: IconCache,
pub wm_info_provider: Box<dyn WmInfoProvider>,
}