From eaf5b67370f17f1fd9a3d4e7f62fdcd34f3d543c Mon Sep 17 00:00:00 2001 From: Bill Doyle Date: Tue, 19 Nov 2024 11:18:56 -0500 Subject: Add support for niri workspaces (#39) --- src/wm_info_provider.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/wm_info_provider.rs') diff --git a/src/wm_info_provider.rs b/src/wm_info_provider.rs index a8ee3be..b3c6618 100644 --- a/src/wm_info_provider.rs +++ b/src/wm_info_provider.rs @@ -19,6 +19,9 @@ pub use river::*; mod hyprland; pub use hyprland::*; +mod niri; +pub use niri::*; + pub trait WmInfoProvider { fn register(&self, _: &mut EventLoop) {} @@ -62,6 +65,10 @@ pub fn bind( return Box::new(hyprland); } + if let Some(niri) = NiriInfoProvider::new() { + return Box::new(niri); + } + Box::new(DummyInfoProvider) } -- cgit v1.3.1