Replies: 2 comments 1 reply
-
This will be implementable properly without races using #453 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Personnaly, I choose the window I want to know the name, launch fuzzel and then run "kgx niri msg focused-window". |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using
niri msg --json focused-window
to get the title of the active window, to display in a bar. This works just fine, but there is no way to know when it has changed, so I am currently running it every second.This feels rather wasteful, and it means that there is a short delay before the title actually updates.
I'd love to see a new option added to
niri msg
that allows waiting for a change before it returns. That would work perfectly withags
since it can run async commands and wait for the result.Beta Was this translation helpful? Give feedback.
All reactions