summaryrefslogtreecommitdiff
path: root/src/shared_state.rs
diff options
context:
space:
mode:
authorBill Doyle <vil@vil.lv>2024-11-19 11:18:56 -0500
committerGitHub <noreply@github.com>2024-11-19 18:18:56 +0200
commiteaf5b67370f17f1fd9a3d4e7f62fdcd34f3d543c (patch)
tree227b4f392df603f86e347eaf358f76169f314460 /src/shared_state.rs
parentcc5110a2cfcf5b20856171372fee8790c5b10469 (diff)
downloadi3bar-mango-eaf5b67370f17f1fd9a3d4e7f62fdcd34f3d543c.tar.gz
Add support for niri workspaces (#39)
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 1970c0c..f2b8144 100644
--- a/src/shared_state.rs
+++ b/src/shared_state.rs
@@ -23,4 +23,8 @@ impl SharedState {
pub fn get_hyprland(&mut self) -> Option<&mut wm_info_provider::HyprlandInfoProvider> {
self.wm_info_provider.as_any().downcast_mut()
}
+
+ pub fn get_niri(&mut self) -> Option<&mut wm_info_provider::NiriInfoProvider> {
+ self.wm_info_provider.as_any().downcast_mut()
+ }
}