Re: [dev] tabbed-list patch

2010-04-17 Thread Connor Lane Smith
Hey, On 17/04/2010, Anselm R Garbe wrote: > Feel free to apply that patch to lsw. I think it's a great > generalisation of lsw. Have done. Thanks, cls

Re: [dev] tabbed-list patch

2010-04-17 Thread Anselm R Garbe
Hey Connor, On 17 April 2010 02:20, Connor Lane Smith wrote: >> Included is a patch to add functionality to see a screen-like list of >> windows from tabbed using dmenu to tabbed-0.2. > > I've been thinking about this problem since you posted your patch, and > I only just got to a solution. It's

Re: [dev] tabbed-list patch

2010-04-17 Thread Connor Lane Smith
lsw seems to print the clients' names in reverse chronological order by access time. So if you change it to something like "lsw | tac | dmenu -l 5" the top should always be the current tab, and so on down. On another note, to make it able to uniquely identify a window, rather than using a name, h

Re: [dev] tabbed-list patch

2010-04-16 Thread Samuel Baldwin
Although a notion of order would be nice, not sure how to make lsw retain that. -- Samuel Baldwin - logik.li

Re: [dev] tabbed-list patch

2010-04-16 Thread Samuel Baldwin
2010/4/16 Connor Lane Smith : > I've been thinking about this problem since you posted your patch, and > I only just got to a solution. It's a bit of a round-about one, but it > seems a little cleaner. Oh this is way cleaner, thanks! Any ideas about how to remove these errors? I can defeat 1 and

Re: [dev] tabbed-list patch

2010-04-16 Thread Connor Lane Smith
Hey, > Included is a patch to add functionality to see a screen-like list of > windows from tabbed using dmenu to tabbed-0.2. I've been thinking about this problem since you posted your patch, and I only just got to a solution. It's a bit of a round-about one, but it seems a little cleaner. Basi

Re: [dev] tabbed-list patch

2010-04-16 Thread Samuel Baldwin
2010/4/16 anonymous : > Instead of popen() you can use fcntl(or dup, or dup2) like inetd or > netcat -e.  Then you can both read and write. I had some issues with dup/dup2, but it may just be due to my own stupidity. Thanks for the suggestion. -- Samuel Baldwin - logik.li

Re: [dev] tabbed-list patch

2010-04-16 Thread anonymous
On Thu, Apr 15, 2010 at 11:31:28PM -0400, Samuel Baldwin wrote: > Currently it uses popen() to open a pipe to dmenu, which then sets an > xproperty, which on update switches to the window matching that title. > As you can imagine this is a little hackish and I'm not particularly > proud of this, bu

[dev] tabbed-list patch

2010-04-15 Thread Samuel Baldwin
Included is a patch to add functionality to see a screen-like list of windows from tabbed using dmenu to tabbed-0.2. Currently it uses popen() to open a pipe to dmenu, which then sets an xproperty, which on update switches to the window matching that title. As you can imagine this is a little hack