Skip to content

Commit

Permalink
Added listener for window title change
Browse files Browse the repository at this point in the history
  • Loading branch information
FieldofClay committed Mar 27, 2024
1 parent d08caf3 commit a72869f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/FieldofClay/hyprland-activewindow"
readme = "README.md"
keywords = ["hyprland", "eww"]
categories = ["command-line-utilities"]
version = "1.0.0"
version = "1.0.1"
edition = "2021"
license = "MIT"

Expand All @@ -17,4 +17,4 @@ hyprland = "0.3.13"
serde_json = "1.0"
serde = "1.0"
flexi_logger = "0.28"
log = "0.4"
log = "0.4"
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ fn main() -> Result<()> {
event_listener.add_window_moved_handler(move |_, _| {
print(&mon_clone);
});
let mon_clone = Arc::clone(&mon);
event_listener.add_window_title_change_handler(move |_, _| {
print(&mon_clone);
});

event_listener.start_listener()
}

0 comments on commit a72869f

Please sign in to comment.