<div dir="ltr">Hey,<div><br></div><div>I'm trying to build the new version. I have ZERO Haskell experience (or true familiarity with pure functional languages), but I guess that's the best way to at least test the recent changes.</div>
<div><br></div><div>I I get :</div><div><div><font face="courier new, monospace">$ runhaskell Setup.hs configure</font></div><div><font face="courier new, monospace">Configuring arbtt-0.7.1...</font></div><div><font face="courier new, monospace">Setup.hs: At least the following dependencies are missing:</font></div>
<div><font face="courier new, monospace">X11 >1.4.4,</font></div><div><font face="courier new, monospace">aeson ==0.6.*,</font></div><div><font face="courier new, monospace">bytestring-progress -any,</font></div><div><font face="courier new, monospace">parsec ==3.*,</font></div>
<div><font face="courier new, monospace">pcre-light -any,</font></div><div><font face="courier new, monospace">strict -any,</font></div><div><font face="courier new, monospace">terminal-progress-bar -any,</font></div><div>
<font face="courier new, monospace">transformers -any,</font></div><div><font face="courier new, monospace">utf8-string -any</font></div></div><div><br></div><div>and I really have no idea what's missing. I tried:</div>
<div><div><font face="courier new, monospace">$ X -version</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">X.Org X Server 1.14.3</font></div><div><font face="courier new, monospace">Release Date: 2013-09-12</font></div>
<div><font face="courier new, monospace">X Protocol Version 11, Revision 0</font></div></div><div><font face="courier new, monospace"><br></font></div><div>Can you help me through this? I thought I'll ask you first...</div>
<div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>Oren</div><div><br></div></div></div>
<br><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 1:40 PM, Joachim Breitner <span dir="ltr"><<a href="mailto:mail@joachim-breitner.de" target="_blank">mail@joachim-breitner.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Am Montag, den 30.12.2013, 11:10 +0000 schrieb Oren Gampel:<br>
<div class="im">> > Ok, so there are two problems:<br>
> >  1. Plasma desktops also appear as windows, and hence are useless to<br>
> > record. This leads to the question: How to detect such windows (without<br>
> > adding configuration options and preferably without hard-coding their<br>
> > name). Does xprop list anything useful for them? What is their<br>
> > _NET_WM_WINDOW_TYPE?<br>
><br>
</div>> I'm afraid<br>
> _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP<br>
><br>
> but...<br>
<br>
why “I’m afraid” – this is actually good. I guess arbtt-capture should<br>
ignore all windows with that window type, right?<br>
<div class="im"><br>
> >  2. Record the current desktop name (or number). "wmctrl -d" Also works<br>
> > here (xmonad), highly increasing the chance of me adding that feature<br>
> > :-)<br>
><br>
</div>> ... looks promising. I assume it's not really a 2nd problem but a rout<br>
> for a solution.<br>
> "wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM<br>
> compatible X Window Manager." And I did find xmonad docs about<br>
> integration with EWMH (<br>
> <a href="http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-" target="_blank">http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-</a><br>
> EwmhDesktops.html).<br>
<br>
which I wrote some 7 years ago... :-)<br>
<div class="im"><br>
> >> While I'm at it, I would like to ask for another feature that might be<br>
> >> useful to others:<br>
> >> 4) Add a --ignore-minor-breaks=Seconds [very bad flag name] to arbtt-<br>
> >> stats.<br>
> ><br>
> > This is only for the --intervals report, right?<br>
> ><br>
> >> I admit that I'm using a 15 sec --sample-rate, which might be short,<br>
> >> but there are other things I do that actually need this granularity. On<br>
> >> the other hand, for specific tasks, I would like to ignore short breaks<br>
> >> of a minute or two. For authoring a technical paper for example, that<br>
> >> needs constant dealing with other tools, reading other articles,<br>
> >> browsing the web etc, this can be significant.<br>
> ><br>
> > I’m not sure if this is the right approach. Ideally, you can configure<br>
> > arbtt to detect that you are doing related work. Note that you can match<br>
> > on other windows as well, e.g. if you are editing thesis.tex, but the<br>
> > active window is your PDF viewer, you can still assign the tag<br>
> > "Project:Thesis". Maybe this will close all invalid holes in the report,<br>
> > leaving open the “real” holes where you read the arbtt mailing lists<br>
> > :-).<br>
> ><br>
> > Alternatively, one might be interested in something like „Intervals<br>
> > where at least 90% of the time tag foo is set“, which might handle<br>
> > interruptions more gracefully and faithfully than a hard timer.<br>
> ><br>
> > But in any case such a feature needs a bit of thinking and contemplating<br>
> > and brainstorming... :-)<br>
><br>
</div>> I completely agree. I thought about the 90% path, and few other<br>
> algorithms. Would you mind if I open a separate thread to discuss this?<br>
<br>
yes, please do.<br>
<br>
And I guess I’ll need a bug tracker soon, to keep track of all ideas and<br>
loose ends...<br>
<div class="HOEnZb"><div class="h5"><br>
Greetings,<br>
Joachim<br>
<br>
--<br>
Joachim “nomeata” Breitner<br>
  <a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a> • <a href="http://www.joachim-breitner.de/" target="_blank">http://www.joachim-breitner.de/</a><br>
  Jabber: <a href="mailto:nomeata@joachim-breitner.de">nomeata@joachim-breitner.de</a>  • GPG-Key: 0x4743206C<br>
  Debian Developer: <a href="mailto:nomeata@debian.org">nomeata@debian.org</a><br>
</div></div></blockquote></div><br></div></div>