9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p winwatch
@ 2019-01-28  9:45 Mark van Atten
  2019-02-06 13:02 ` Mark van Atten
  0 siblings, 1 reply; 2+ messages in thread
From: Mark van Atten @ 2019-01-28  9:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks to Fazlul Shariar, there is a p9p version of winwatch, available at
https://github.com/fhs/misc/blob/master/cmd/winwatch/winwatch.c

I noticed memory leaks, and sometimes X11's asynchronous ways made it
crash. I put up a slightly modified version at
https://github.com/markvanatten/misc/blob/master/winwatch.c
It has two new options, -s and -w. The first sorts the labels
alphabetically (not case sensitive), the second uses XA_WM_NAME
instead of class.res_name for the label.

I use this in combination with rio. It works fine so far, but I may
well have overlooked some subtle or not so subtle points. It still
crashes when starting libreoffice, which perhaps doesn't call
XInitThreads().

When writing a paper in Sam and having many large windows with pdf and
djvu files   open for reference, I find this very useful to have;
because I use both -s and -w and keep winwatch always in the same
place (along the right edge of my screen), the process of digging up
and foregrounding any of these files has become very quick. From (say)
Sam it takes just two clicks to have them in front of me in the large
size I like to open them to.

Of course, if the winwatch window is narrow, one  will see only an
initial part of the label, so it helps to give your files good names;
but that is true in any case. (And you can always widen the window a
bit.)

I've been thinking about extending the B3 action to a little menu,
perhaps with items to open, close, and toggle the effects of the -s
and -w options, but have made no effort in that direction yet.

Thanks again to Fazlul for porting this in the first place.

Mark.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] p9p winwatch
  2019-01-28  9:45 [9fans] p9p winwatch Mark van Atten
@ 2019-02-06 13:02 ` Mark van Atten
  0 siblings, 0 replies; 2+ messages in thread
From: Mark van Atten @ 2019-02-06 13:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Mon, Jan 28, 2019 at 10:45 AM Mark van Atten <vanattenmark@gmail.com> wrote:

> I use this in combination with rio. It works fine so far, but I may
> well have overlooked some subtle or not so subtle points. It still
> crashes when starting libreoffice, which perhaps doesn't call
> XInitThreads().

I have now repaired this; I was attempting to free memory at a point
where I shouldn't have.

Mark.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-06 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-28  9:45 [9fans] p9p winwatch Mark van Atten
2019-02-06 13:02 ` Mark van Atten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).