Comments (6)
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.
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.
Original comment by Timothy (Bitbucket: timthelion, GitHub: timthelion).
I'm using
#!
> arbtt-stats --version
arbtt-stats 0.8.1
from arbtt.
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.
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.
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)
- Looking for 3rd party tool HOT 4
- Parser error: unexpected end of input on empty categorize.cfg HOT 13
- arbtt-stats: Non-exhaustive patterns in function renderReportText HOT 2
- arbtt-capture.desktop[PID]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0". HOT 19
- Error loading shared lib on system update HOT 2
- arbtt-stats --dump-samples uses wrong timezone HOT 5
- Cant install on Fedora 36 HOT 3
- Consider adding to stackage HOT 3
- arbtt-stats gives invalid Unicode error HOT 1
- Cannot import Arbtt as a library HOT 3
- arbtt-stats fails if window title very long with unmatched parenthesis HOT 7
- Better error reporting for bad regular expressions
- log every window except the pure/empty desktop HOT 3
- [BUG] Error calling arbtt-stats on Debian 11 (Timelog starts with unknown marker) HOT 3
- Outdated Windows binaries HOT 1
- Is there any tutorial? HOT 6
- Link missing HOT 1
- how to use arbtt-dump and arbtt-import HOT 1
- MacOS error building pcre-light dependency
- debian install instructions incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arbtt.