GithubHelp home page GithubHelp logo

Exclude overlapping tag about arbtt HOT 6 CLOSED

nomeata avatar nomeata commented on May 5, 2024
Exclude overlapping tag

from arbtt.

Comments (6)

nomeata avatar nomeata commented on May 5, 2024

Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata).


The way to do that is to use the ; operator to combine rules instead of the , command. Interestingly, this is not documented at http://arbtt.nomeata.de/doc/users_guide/configuration.html#idp23119324! Anyways, you should be able to achieve what you want with (untested):

{ current window $title =~ [/GitHub.*/,/.*Bitbucket -.*/] ==> tag VCS_Web,
  current window $title =~ [/.*Zprávy Google.*/,/.*Google News.*/,/.*CNN.*/,/.*News.*/,/.*New York Times.*/,/.*Business Insider.*/] ==> tag News
} ; current window $title =~ [/.*Chromium/,/.*Mozilla Firefox.*/] ==> tag Web

from arbtt.

nomeata avatar nomeata commented on May 5, 2024

Original comment by Timothy (Bitbucket: timthelion, GitHub: timthelion).


Thanks for the quick response. This gives me:

Parser error:
"/home/timothy/.arbtt/categorize.cfg" (line 5, column 3):
unexpected ';'
expecting "," or end of input

from arbtt.

nomeata avatar nomeata commented on May 5, 2024

Original comment by Timothy (Bitbucket: timthelion, GitHub: timthelion).


I'm using

#!


> arbtt-stats --version
arbtt-stats 0.8.1

from arbtt.

nomeata avatar nomeata commented on May 5, 2024

Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata).


Try putting the whole block into {} again. If there is a , before, it expects more commas. I guess that is a bit obscure…

from arbtt.

nomeata avatar nomeata commented on May 5, 2024

Original comment by Timothy (Bitbucket: timthelion, GitHub: timthelion).


Thanks, I have it working now.

I'm re-reading the docs now, and I noticed:

-- A rule that probably everybody wants. Being inactive for over a minute
-- causes this sample to be ignored by default.
$idle > 60 ==> tag inactive,

There is a comma at the end of that line. Does that mean that this is
wrong, that idle time isn't acutally ignored in the sample, just like
the tags overlapped in my previous example?

from arbtt.

nomeata avatar nomeata commented on May 5, 2024

Original comment by nomeata (Bitbucket: nomeata, GitHub: nomeata).


The inactive tag overlaps just like others, but arbtt-stats by default ignore them, unless you specify --also-inactive.

from arbtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.