The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
3

How can I get info on windows open?

asked Sep 6 '13

phairland gravatar image

I used to use wmctrl to get information about windows open. It shows information one line per window, for example:

0x009900   gvim - Gvim         config (~/.i3/config) - GVIM
0x350001   firefox - Navigator Google - Mozilla Firefox
0x430000   xterm - Xterm       user@home

How I do get similar info in i3?

Thank you.

Comments

don't know if it helps, but xprop can at least give you these information by a click onto the desired window.

mschaefer gravatar imagemschaefer (Sep 6 '13)edit

2 answers

Sort by » oldest newest most voted
0

answered Sep 6 '13

joepd gravatar image

Have a look at Inter Process Communication. i3-msg is a basic way of getting info in a json encoded string:

i3-msg -t get_tree | json_pp

You can parse the output with some json tool.

Alternatively, with some libraries in a selection of languages you can work directly with this output.

Comments

Thanks. I just wanted to avoid the parsing, and have something more human readable.

phairland gravatar imagephairland (Sep 6 '13)edit
1

answered Sep 9 '13

Michael gravatar image

xwininfo is a window-manager independent tool to give you information like this.

Question Tools

Stats

Asked: Sep 6 '13

Seen: 382 times

Last updated: Sep 09 '13