Skip to content

Instantly share code, notes, and snippets.

@waldyrious
Created October 14, 2014 13:21
Show Gist options
  • Save waldyrious/aa6940aabd59b2ee4a1d to your computer and use it in GitHub Desktop.
Save waldyrious/aa6940aabd59b2ee4a1d to your computer and use it in GitHub Desktop.
My arbtt configuration file
--Convert program executable names to recognizable names
aliases (
"Navigator" -> "Firefox",
"gnome-terminal" -> "Terminal",
"xfce4-terminal" -> "Terminal",
"evince" -> "PDF reader",
"google-chrome" -> "Google Chrome",
"gedit" -> "Text editor",
"leafpad" -> "Text editor",
"totem" -> "Video player",
"vlc" -> "Video player",
"gmusicbrowser" -> "Music player",
"Qt-subapplication" -> "Windows XP",
"mendeleydesktop" -> "Mendeley",
"desktop_window" -> "Desktop",
"xfdesktop" -> "Desktop",
"nautilus" -> "File browser",
"Thunar" -> "File browser",
--maybe there's a way to auto-capitalize the program names,
--but until I find out how, for now I'll do it by hand
"inkscape" -> "Inkscape",
"skype" -> "Skype",
"geany" -> "Geany",
"meld" -> "Meld",
"texmaker" -> "Texmaker",
)
{
--Mark any samples captured after 5 minutes of inactivity
--(not less, to account for e.g. watching videos, reading a dense document, etc.)
$idle > 300 ==> tag inactive,
--Tag each program with its executable name (filtered by the aliases above)
tag $current.program,
--TODO: format Time column to ignore seconds
--The following lines were disabled to make the default report cleaner
--$sampleage <= 1:00 ==> tag last-hour,
--$sampleage <= 24:00 ==> tag last-24h,
--The following lines don't work, I'm not sure why yet.
--$sampleage <= 168 ==> tag last-week,
--current window ==> tag $current.title,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment