-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After spending a few hours trying to get arbtt working on windows, feeling very lost, can't tell if this is a bug or if I'm missing something obvious.. #122
Comments
Original comment by Jacob Ollivier (Bitbucket: [Jacob Ollivier](https://bitbucket.org/Jacob Ollivier), ). Just noticed I wasn’t logged in, wanted to add the lines I was adding to my categorize.cfg that were bearing no results:
Also noticed how in categorize.cfg, it looks like both the rules
were shown in arbtt-stats, but
is nowhere to be found. |
Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata). Oh, windows! I don’t think anyone has tried to use it windows since a decade or so… I am kinda happy to hear that it at least kinda works. Can you share your full Maybe it needs to be |
Original comment by Jacob Ollivier (Bitbucket: [Jacob Ollivier](https://bitbucket.org/Jacob Ollivier), ). Thanks for a reply! Yes, I’m on Windows 10 running things through the windows terminal with Cmder. Here’s my full -- -*- mode: haskell; -*-
-- Comments in this file use the Haskell syntax:
-- A "--" comments the rest of the line.
-- A set of {- ... -} comments out a group of lines.
-- This defines some aliases, to make the reports look nicer:
aliases (
"sun-awt-X11-XFramePeer" -> "java",
"sun-awt-X11-XDialogPeer" -> "java",
"sun-awt-X11-XWindowPeer" -> "java",
"gramps.py" -> "gramps",
"___nforschung" -> "ahnenforschung",
"Pidgin" -> "pidgin"
)
-- A rule that probably everybody wants. Being inactive for over a minute
-- causes this sample to be ignored by default.
$idle > 60 ==> tag inactive,
current window $program == "_Device_HarddiskVolume3_Program_Files_Mozilla_Firefox_firefox_exe" ==> tag Web,
current window $title =~ [/.*Hacker News.*/, /.*Less Wrong.*/, /.*reddit.*/, /.*Reddit.*/, /.*GitHub.*/, /.*Ask.fm.*/, /.*Goodreads.*/] ==> tag Graph:communities,
-- A rule that matches on a list of strings
current window $program == ["Navigator","galeon"] ==> tag Web,
current window $program == "sun-awt-X11-XFramePeer" &&
current window $title == "I3P"
==> tag Program:I3P,
current window $program == "sun-awt-X11-XDialogPeer" &&
current window $title == " " &&
any window $title == "I3P"
==> tag Program:I3P,
-- Simple rule that just tags the current program
tag Program:$current.program,
-- Another simple rule, just tags the current desktop (a.k.a. workspace)
tag Desktop:$desktop,
-- I'd like to know what evolution folders I'm working in. But when sending a
-- mail, the window title only contains the (not very helpful) subject. So I do
-- not tag necessarily by the active window title, but the title that contains
-- the folder
current window $program == "evolution" &&
any window ($program == "evolution" && $title =~ /^(.*) \([0-9]+/)
==> tag Evo-Folder:$1,
-- A general rule that works well with gvim and gnome-terminal and tells me
-- what project I'm currently working on
current window $title =~ m!(?:~|home/jojo)/projekte/(?:programming/(?:haskell/)?)?([^/)]*)!
==> tag Project:$1,
current window $title =~ m!(?:~|home/jojo)/debian!
==> tag Project:Debian,
-- This was a frequently looked-at pdf-File
current window $title =~ m!output.pdf! &&
any window ($title =~ /nforschung/)
==> tag Project:ahnenforschung,
-- My diploma thesis is in a different directory
current window $title =~ [ m!(?:~|home/jojo)/dokumente/Uni/DA!
, m!Diplomarbeit.pdf!
, m!LoopSubgroupPaper.pdf! ]
==> tag Project:DA,
current window $title =~ m!TDM!
==> tag Project:TDM,
( $date >= 2010-08-01 &&
$date <= 2010-12-01 &&
( current window $program == "sun-awt-X11-XFramePeer" &&
current window $title == "I3P" ||
current window $program == "sun-awt-X11-XDialogPeer" &&
current window $title == " " &&
any window $title == "I3P" ||
current window $title =~ m!(?:~|home/jojo)/dokumente/Uni/SA! ||
current window $title =~ m!Isabelle200! ||
current window $title =~ m!isar-ref.pdf! ||
current window $title =~ m!document.pdf! ||
current window $title =~ m!outline.pdf! ||
current window $title =~ m!Studienarbeit.pdf! )
) ==> tag Project:SA,
-- Out of curiosity: what percentage of my time am I actually coding Haskell?
current window ($program == "gvim" && $title =~ /^[^ ]+\.hs \(/ )
==> tag Editing-Haskell, If I add
If I run
Which through some googling has led me to check my windows ‘locale’ for what kind of character encoding I’m using: Jacob |
Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata). It’s good to see that I think when assigning tags, arbtt wants strings without spaces or special characters, hence the The formatting weirdness comes from the very long tags that your categorize produces, and it’s trying to format it as a nice table. Once you tweak your rules to produce shorter tags it should work better. It seems that on windows, I don’t know why the active window isn’t marked. Maybe a shortcoming of the (not very well tested) windows support. Yes, this |
Original comment by Jacob Ollivier (Bitbucket: [Jacob Ollivier](https://bitbucket.org/Jacob Ollivier), ). Those sound like great tips for categorizing the samples, thanks. I’ve used regexes before in python, but I’m not sure about using them to extract just the name of the executable. Do you have any ideas of how I’d go about doing that? Looks like the last thing actually preventing me from using arbtt correctly remains to be this weird I appreciate how helpful you’ve been as well, especially with me using an OS that was last tested a decade ago. I’m thinking I’ll be able to make some good progress on the tag making though. |
Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata). Regex, untested:
With this |
Original comment by Jacob Ollivier (Bitbucket: [Jacob Ollivier](https://bitbucket.org/Jacob Ollivier), ). Yes!! Thank you! Both of those worked perfectly. Running Adding your regex to my
Now I’m going to spend some time figuring out the rules! |
Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata). Please report back if you eventualy decide to continue using arbtt, then I am more inclined to make windows releases again; there are a few bugfixes since 0.9.1 (see https://arbtt.nomeata.de/doc/users_guide/release-notes.html#release-notes-0.9) |
Original comment by Jacob Ollivier (Bitbucket: [Jacob Ollivier](https://bitbucket.org/Jacob Ollivier), ). I’ve been using it for the last few days and I think I’ve got it mostly functional! A few windows workarounds and powershell commands to get around lack of bash and things like grep and I was able to follow most of the Effective Use doc to get setup. So great to hear you might be more inclined to make more windows releases! A few questions:
But that only leads to:
|
Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata).
If you sequence a group of rules with
No, but remember that the tag
so you can change when you want to be considered inactive. Or you pass
You might be missing a
|
Original report by Anonymous.
Hello, I love the idea of arbtt and all the documentation, although sadly I am on Windows 10 and not Linux, so it looks like it's going to be more difficult to use.
I've downloaded the latest windows binary setup file for 0.9.1, and have logged 10h of samples with arbtt-capture.
However, I cannot for the life of me get the tagging to work the way I want it to. I'm thinking this might be because of some bug with the way that windows passes 'active window' strings to arbtt or something, attached is a screenshot of what shows up when I run arbtt-stats. I believe arbtt is pulling full program location names for the windows, but after some searching I couldn't figure out why windows was presenting those titles to arbtt, I also couldn't find any terminal command that would pull up what arbtt was pulling up.
I would really like to get arbtt configured and working correctly, and I've completely scoured multiple search engines looking for other threads or anything but I've come up empty handed, so I'm turning to this issue tracker.
My apologies if I need to resubmit or reformat this because of rules I may have missed, let me know and I can change whatever.
Thanks,
Jacob
The text was updated successfully, but these errors were encountered: