-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to find the currently focused workspace in the Node
tree?
#39
Comments
I think the solution would be similar to the example in #29, but you would stop the recursion short once
|
While the current workspace has |
Only one node in the tree has |
Oh, I see. Thanks for explaining. That would indeed work fairly well. |
What's the status? the python bindings have this https://i3ipc-python.readthedocs.io/en/latest/con.html#i3ipc.Con under |
I'd like to be able to get the
Node
from theNode
tree that represents the currently focused workspace.I think in the current state a possible solution is to
I3Connection::get_workspaces()
,focused
istrue
,I3Connection::get_tree()
,This seems very cumbersome. Also, I'm not 100% sure workspace names in i3 are guaranteed to always be unique. Are there any better solutions?
Also, would it be in the scope of this library to add a helper function for this?
The text was updated successfully, but these errors were encountered: