diff --git a/Cargo.lock b/Cargo.lock index f453c07..f818a23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -216,7 +216,7 @@ dependencies = [ [[package]] name = "hyprland-workspaces" -version = "1.2.2" +version = "1.2.3" dependencies = [ "hyprland", "serde", diff --git a/Cargo.toml b/Cargo.toml index 050d5c5..b2fa53d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyprland-workspaces" -version = "1.2.2" +version = "1.2.3" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index 560899a..6ed7490 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ FLAGS: -h, --help Prints help information ARGS: - Monitor to track windows/workspaces on + Monitor to track windows/workspaces on or _ to track all monitors "; #[derive(Serialize)] @@ -34,7 +34,7 @@ fn output(monitor: &str) { workspaces.sort_by_key(|w| w.id); //get active workspace - let mut active_workspace_id: i32; + let active_workspace_id: i32; if monitor == "_" { active_workspace_id = Workspace::get_active().expect("unable to get active workspace").id; } else { @@ -136,6 +136,18 @@ fn main() -> Result<()> { event_listener.add_window_moved_handler(|_, _| { output!(); }); + event_listener.add_layer_open_handler(|_, _| { + output!(); + }); + event_listener.add_layer_closed_handler(|_, _| { + output!(); + }); + event_listener.add_urgent_state_handler(|_, _| { + output!(); + }); + event_listener.add_window_title_change_handler(|_, _| { + output!(); + }); event_listener.start_listener()