add arbtt

This commit is contained in:
Tykayn 2023-10-15 11:41:49 +02:00 committed by tykayn
parent 95dce4f427
commit b01d3808b7
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,25 @@
-- -*- mode: haskell; -*-
$idle > 60 ==> tag inactive,
current window $program == ["urxvt", "Konsole"] ==> tag Graph:term,
current window $program == "emacs" && current window $title =~ /\.py/ ==> tag Graph:code-python,
current window $program == "emacs" && current window $title =~ /\.hs/ ==> tag Graph:code-haskell,
current window $program == "emacs" && current window $title =~ /\.rb/ ==> tag Graph:code-ruby,
current window $program == "emacs" && current window $title =~ /\.js|\.html|\.css/ ==> tag Graph:code-web,
current window $program == "emacs" && current window $title =~ /\.org|\.md|\.tex|\.txt/ ==> tag Graph:write,
current window $title =~ [/.*MATLAB.*/, /.*Figure.*/] ==> tag Graph:code-matlab,
current window $title =~ [m!Facebook!, m!Google+!, m!Twitter!] ==> tag Graph:social,
current window $title =~ [/.*Hacker News.*/, /.*Less Wrong.*/, /.*reddit.*/, /.*Reddit.*/, /.*GitHub.*/, /.*Ask.fm.*/, /.*Goodreads.*/, /.*Mastodon*/] ==> tag Graph:communities,
current window $title =~ /.*Ino[Rr]eader.*/ ==> tag Graph:read-rss,
current window $title =~ /Gmail|mutt|Protonmail/ ==> tag Graph:mail,
current window $title =~ [m!YouTube!, m!Vimeo!, m!videoplayback!, m!invidious!] ==> tag Graph:tv-web,
current window $program == ["Navigator", "chromium"] && !(current window $title =~ [m!YouTube!, m!Vimeo!, m!Facebook!, m!Google+!, m!Twitter!, /.*Hacker News.*/, /.*Less Wrong.*/, /.*[Rr]eddit.*/, /.*Goodreads.*/, /.*GitHub.*/, /.*Ask.fm.*/, /.*Ino[Rr]eader.*/, /.*Gmail.*/, /.*New\ Tab.*/]) ==> tag Graph:browsing,
current window $title =~ [/.*irssi.*/, /.*WeeChat.*/] ==> tag Graph:irc,
current window $title =~ /.*pdf.*/ ==> tag Graph:read-pdf,
current window $title =~ /.*djvu.*/ ==> tag Graph:read-djvu,
current window $title =~ /.*epub.*/ ==> tag Graph:read-epub,
current window $title =~ /.*mobi.*/ ==> tag Graph:read-mobi,
current window $title =~ /.*azw3.*/ ==> tag Graph:read-azw3,
current window $title =~ [m!mp4!, m!mkv!, m!avi!] ==> tag Graph:tv-local

23
assets/arbtt/update Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
CATEGORIZE_FILE="./categorize.cfg"
CATEGORY="Graph"
FILTER="\$sampleage <= 2922:00" # Last 4 months
arbtt-stats --categorizefile=$CATEGORIZE_FILE \
--for-each=day \
--output-format=CSV \
--category=$CATEGORY \
--min-percentage=0.1 \
--filter="$FILTER" \
> "/home/tykayn/Nextcloud/ressources/gestion de l information/arbtt/daily.csv"
arbtt-stats --categorizefile=$CATEGORIZE_FILE \
--for-each=minute \
--output-format=CSV \
--category=$CATEGORY \
--min-percentage=0.1 \
--filter="$FILTER" \
> "/home/tykayn/Nextcloud/ressources/gestion de l information/arbtt/minute.csv"
python3 readArbttStats.py -c 'misc' -d /tmp/daily.csv -m /tmp/minute.csv