diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-29 11:31:51 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-29 11:31:51 +0200 |
| commit | de596d4fca9ca54f9248e788685eee1820bb2381 (patch) | |
| tree | 4ed9f82251f45c94d28e836ede83c87f67b0f917 /src/wm_info_provider/mango.rs | |
| parent | 5b77a6d8f19500eee21a497ce84db538ded05c00 (diff) | |
| download | i3bar-mango-de596d4fca9ca54f9248e788685eee1820bb2381.tar.gz | |
configurable focused window widget, tray hidden list, global coords for tray context menu
Diffstat (limited to 'src/wm_info_provider/mango.rs')
| -rw-r--r-- | src/wm_info_provider/mango.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wm_info_provider/mango.rs b/src/wm_info_provider/mango.rs index 5476f5e..9b2c9cc 100644 --- a/src/wm_info_provider/mango.rs +++ b/src/wm_info_provider/mango.rs @@ -27,6 +27,10 @@ struct MangoTag { struct MangoMonitor { name: String, active: bool, + #[serde(default)] + x: i32, + #[serde(default)] + y: i32, tags: Vec<MangoTag>, layout_symbol: String, #[serde(default)] @@ -179,6 +183,13 @@ impl WmInfoProvider for MangoInfoProvider { }) } + fn get_output_position(&self, output: &Output) -> Option<(i32, i32)> { + self.all_monitors + .iter() + .find(|m| m.name == output.name) + .map(|m| (m.x, m.y)) + } + fn click_on_tag( &mut self, _conn: &mut Connection<State>, |
