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 2013-09-06 06:04:12 +0000

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.

edit retag flag offensive close merge delete

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 ( 2013-09-06 09:11:55 +0000 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2013-09-06 11:12:36 +0000

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.

edit flag offensive delete link more

Comments

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

phairland gravatar imagephairland ( 2013-09-06 16:38:11 +0000 )edit
1

answered 2013-09-09 05:12:46 +0000

Michael gravatar image

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-06 06:04:12 +0000

Seen: 382 times

Last updated: Sep 09 '13