several feature suggestion

Joachim Breitner mail at joachim-breitner.de
Mon Dec 30 12:40:21 CET 2013


Hi,

Am Montag, den 30.12.2013, 11:10 +0000 schrieb Oren Gampel:
> > Ok, so there are two problems:
> >  1. Plasma desktops also appear as windows, and hence are useless to
> > record. This leads to the question: How to detect such windows (without
> > adding configuration options and preferably without hard-coding their
> > name). Does xprop list anything useful for them? What is their
> > _NET_WM_WINDOW_TYPE?
> 
> I'm afraid
> _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP
> 
> but...

why “I’m afraid” – this is actually good. I guess arbtt-capture should
ignore all windows with that window type, right?

> >  2. Record the current desktop name (or number). "wmctrl -d" Also works
> > here (xmonad), highly increasing the chance of me adding that feature
> > :-)
> 
> ... looks promising. I assume it's not really a 2nd problem but a rout 
> for a solution.
> "wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM 
> compatible X Window Manager." And I did find xmonad docs about 
> integration with EWMH (
> http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-
> EwmhDesktops.html). 

which I wrote some 7 years ago... :-)

> >> While I'm at it, I would like to ask for another feature that might be
> >> useful to others:
> >> 4) Add a --ignore-minor-breaks=Seconds [very bad flag name] to arbtt-
> >> stats.
> > 
> > This is only for the --intervals report, right?
> > 
> >> I admit that I'm using a 15 sec --sample-rate, which might be short,
> >> but there are other things I do that actually need this granularity. On
> >> the other hand, for specific tasks, I would like to ignore short breaks
> >> of a minute or two. For authoring a technical paper for example, that
> >> needs constant dealing with other tools, reading other articles,
> >> browsing the web etc, this can be significant.
> > 
> > I’m not sure if this is the right approach. Ideally, you can configure
> > arbtt to detect that you are doing related work. Note that you can match
> > on other windows as well, e.g. if you are editing thesis.tex, but the
> > active window is your PDF viewer, you can still assign the tag
> > "Project:Thesis". Maybe this will close all invalid holes in the report,
> > leaving open the “real” holes where you read the arbtt mailing lists
> > :-).
> > 
> > Alternatively, one might be interested in something like „Intervals
> > where at least 90% of the time tag foo is set“, which might handle
> > interruptions more gracefully and faithfully than a hard timer.
> > 
> > But in any case such a feature needs a bit of thinking and contemplating
> > and brainstorming... :-)
> 
> I completely agree. I thought about the 90% path, and few other 
> algorithms. Would you mind if I open a separate thread to discuss this?

yes, please do.

And I guess I’ll need a bug tracker soon, to keep track of all ideas and
loose ends...

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0x4743206C
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.nomeata.de/pipermail/arbtt/attachments/20131230/e5077185/attachment.asc>


More information about the arbtt mailing list