ARBTT-STATS(1)
π ARBTT-STATS π
okay bestie, gather round, because this is the arbtt-stats manual page (it lives in section 1 of the Program references manual, iykyk) and she is so useful. she generates statistics from your arbtt data samples. that's the whole gig. slay. β¨
πΈ NAME πΈ
arbtt-stats β generate statistics from the arbtt data samples
π¦ SYNOPSIS π¦
arbtt-stats [OPTION...]
β¨ DESCRIPTION β¨
so here's the vibe: arbtt-stats reads the samples that were recorded so far by arbtt-capture from the log file, filters them according to the user's specifications, and generates one or more reports from the data. it's giving data girlboss. π
if you run it with literally no options at all, --total-time is assumed. no thoughts, head empty, just total time. π
and here's the part that's lowkey iconic: the order in which filters (--exclude, --only, --also-inactive and --filter) and reports are passed to the program is irrelevant β all filters given on the command line are active for all reports. the filters don't care where you put them. they're committed. periodt. π
π₯ OPTIONS π₯
-h,-?,--helpβ shows a short summary of the available options, and exists.-V,--versionβ shows the version number, and exists.--logfileFILEβ logfile to use instead of~/.arbtt/capture.log--categorizefileβ categorize file to use instead of~/.arbtt/categorize.cfg
π§ Filtering options π§
-xTAG,--excludeTAGβ ignore any data samples that have been assigned this tag or category. to distinguish tags and categories, the latter have to be entered followed by a colon. can be given more than once. π«-oTAG,--onlyTAGβ ignore any data samples that have not been assigned this tag. to distinguish tags and categories, the latter have to be entered followed by a colon. can be given more than once. π--also-inactiveβ by default,arbtt-statsignores any samples which have been assigned the taginactive. this flag disables this behaviour. (not me making the inactive girlies visibleβ¦ π)-fCONDITION,--filterCONDITIONβ only consider samples matching the given condition, which follows the same syntax as incategorize.cfg(NonterminalCondin the formal grammar specification found in the user guide).
π Report options π
-mPERCENTAGE,--min-percentagePERCENTAGEβ ignore tags whose percentage is less than the value specified here. default percentage:1%.--output-excludeTAGβ skip this tag or category when printing statistics. only affects the reports--total-timeand--category. to distinguish tags and categories, the latter have to be entered followed by a colon. can be given more than once.--output-onlyTAGβ prints statistics only for the specified tag or category. only affects the reports--total-timeand--category. to distinguish tags and categories, the latter have to be entered followed by a colon. can be given more than once.--output-formatFORMATβ specify the report output format, may be one of:text,csv(comma-separated values),tsv(TAB-separated values). default format:text.
π Reports π
-i,--informationβ various bits of information about the recorded data, such as total time recorded, number of records etc. in this report, βtime recordedβ is the sum of all samples, including inactive and those that are disabled by the filter, while βtime selectedβ is the sum of the samples that are matched by the given filters.-t,--total-timeβ for all tags, print the part of the selected time with this tag applied to, both as an absolute value and a percentage of the selected time.-cCATEGORY,--categoryCATEGORYβ for the given category, give the textual equivalent of a pie chart: for each possible value of the category, including one for βno tag of this category presentβ, give the absolute time and fraction. entries which are not displayed because of the option--min-percentageare aggregated. π₯§--each-categoryβ this is just a shortcut for a series of--categoryoptions, one for each category found in the data. efficiency queen.--intervals[TAG|CATEGORY:]β this report lists all periods of consecutive time intervals where the given tag has been applied to, or where the given category has the same value.
to distinguish tags and categories, the latter have to be entered followed by a colon.
β οΈ this report will give wrong results if an activity has been carried out at the end of a session and right at the beginning, as the intermediate time is thought to be part of the interval. inactive times while arbtt-capture is running will separate the results as expected. bestie, be careful with this one. π
--for-eachPERIODβ this is not a report of its own, but causes the selected report to be executed for each of the givenPERIOD(which can beminute,hour,day,monthoryear) where there exist selected samples. all the reports will then be printed one after another or, in the case of CSV output, with an additional column.
note that if this option is enabled, samples that are filtered out are completely ignored (to avoid empty reports for periods with only filtered samples). therefore, the --information report will print the numbers for the samples selected also for the totals.
π EXAMPLES π
some useful examples of what you can do with arbtt-stats are provided here. screenshot these, fr fr. πΈ
# Only consider the time when I was programming in Haskell
arbtt-stats -o Editing-Haskell
# Tell me what evolution folders I spend my time in when I actually do
# work with e-Mail
arbtt-stats -o Program:evolution -c Evo-Folder
# Generate statistics about the last hour
arbtt-stats -f '$sampleage < 1:00'
π FILES π
~/.arbtt/capture.logβ binary file, storing the arbtt data samples~/.arbtt/categorize.cfgβ specification of the arbtt categorizer syntax. a detailed description is given in the section called βConfiguring the arbtt categorizer (arbtt-stats)β
β SEE ALSO β
see the arbtt manual for more information and the arbtt hackage page[1] for newer versions of arbtt.
π«Ά AUTHORS π«Ά
- Joachim Breitner
<mail@joachim-breitner.de>β main author of arbtt - Sergey Astanin
<s.astanin@gmail.com>β contributor - Martin Kiefel
<mk@nopw.de>β contributor - Muharem Hrnjadovic
<muharem@linux.com>β contributor - Markus Hauck
<markus1189@gmail.com>β contributor - Thomasz MiΔ
sko
<tomasz.miasko@gmail.com>β contributor - Waldir Pimenta
<waldyrious@gmail.com>β documentation writer - Gwern Branwen
<gwern@gwern.net>β documentation writer - Paolo G. Giarrusso
<p.giarrusso@gmail.com>β contributor - Michal J. Gajda
<migamake@migamake.com>β contributor
π NOTES π
- arbtt hackage page β
http://hackage.haskell.org/package/arbtt
and that's the whole page, bestie!! πβ¨ this cutie was brought to you by the arbtt manual, dated 04/03/2022, and she's living her best life as ARBTT-STATS(1). go forth and generate those stats, you absolute icon. slay. π
ππ
π¦ where this page comes from
- ubuntu jammy: arbtt 0.10.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms