i3-query
Query i3 tree using XPath-inspired path syntax.
AI-generated and unreviewed.
Installation
pipx install i3-query
Usage
Query the i3 window tree using dot-separated paths:
# Get the ID of the focused window
i3-query focused.id
# Get the ID of the parent container
i3-query focused.parent.id
# Get the ID of the grandparent container
i3-query focused.parent.parent.id
# Get the layout of the parent
i3-query focused.parent.layout
# Get the workspace name
i3-query focused.workspace.name
Inspiration
Inspired by XPath for navigating XML/HTML documents. Uses an object style dot syntax because you want to understand xpath.
Use Cases
- Debugging container hierarchies
- Finding container IDs for use with i3-msg commands
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
i3_query-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i3_query-0.1.0.tar.gz.
File metadata
- Download URL: i3_query-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a3a9e6ce02eff366b9fbdb4dc4e8ddf72aa0658244260d18b2fbb03d3119ef1
|
|
| MD5 |
1a19c58639b1067984aaec18d672acce
|
|
| BLAKE2b-256 |
384b40e5f2fa94150895801887962f1d4a93bcb250fbfa7736877ea809dd6c3b
|
File details
Details for the file i3_query-0.1.0-py3-none-any.whl.
File metadata
- Download URL: i3_query-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee3fc6d36f5e55e402dd71c1f215cd39ca37865c10b70437392fe40d52985907
|
|
| MD5 |
5e311487ce48e6332216928332f91746
|
|
| BLAKE2b-256 |
249a82094dc9d891a030ad8ff33d2dafe951fb95a36aee5b75a5dd92429ded03
|