You are not logged in.

#1 2009-06-06 06:10:06

dwindle
Member
From: /dev/urandom/
Registered: 2009-05-15
Posts: 85
Website

Get window list

I am fiddling with dzen2, and I find that I quite like it. I'm trying to get it to display the list of currently open windows in the slave window but I'm stuck on figuring out how to get that list. Can anybody give me a hand?


[nil]
[exists]

Offline

#2 2009-06-09 01:24:03

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Get window list

You can get the list from wmctrl if your window manager supports EWMH. A simple xlib calls in this program: http://tools.suckless.org/lsw, or also xwininfo -root -children

Offline

#3 2009-06-20 04:48:24

dwindle
Member
From: /dev/urandom/
Registered: 2009-05-15
Posts: 85
Website

Re: Get window list

Thanks a lot. I used wmctrl -l and grepped it to display only windows with a "0" preceeding my hostename, then perl'd it up to display the windowname only.


[nil]
[exists]

Offline

Board footer

Powered by FluxBB