项目作者: jgmdev

项目描述 :
Automatic activity time tracker application.
高级语言: PHP
项目地址: git://github.com/jgmdev/infocus.git
创建时间: 2018-01-22T19:56:02Z
项目社区:https://github.com/jgmdev/infocus

开源协议:Other

下载


InFocus

Automatic activity time tracker application.

InFocus Logo

OS: Linux
License: GPLv3
Status: Beta

About

InFocus is an automatic activity time tracker that monitors the currently
focused window and stores the amount of time spent on it on a daily basis.
The application was developed as a way to monitor my self, and rises from
the concern that I may be trashing significant amounts of time on stuff that
doesn’t matters. So InFocus should help in the auto-evaluation of our daily
work on the computer making it easier to make decisions concerning our daily
schedule.

Installation

The application is developed in PHP and makes use of php’s built-in webserver
to host the user interface and uses chromium or firefox as a medium
to display the web interface. Currently the —app flag of chromium is employed
to get an experience more similar to that of a typical application.

Before using the application you have to fetch the composer dependencies by
doing:

  1. cd infocus
  2. composer install

Dependencies

  • php - for interface and activity logger
  • php-sqlite - the php pdo extension to store activity data
  • chromium - to display the user interface (recommended)
  • firefox - to display the user interface (optional)
  • xprop - get active window
  • wmctrl - information of active windows
  • xprintidle - detect if the person is away from keyboard

If installing directly to system as root user:

  1. cd infocus
  2. ./install.sh

The ./install.sh shell script also supports de DESTDIR environment flag, which
can be used to easily package the application for distribution by distro
packagers.

  1. cd infocus
  2. DESTDIR=~/infocus/install ./install.sh

Uninstallation

  1. cd infocus
  2. ./install.sh remove

Usage

To start tracking your daily activity is needed to launch the infocus logger
by enabling the systemd infocus service for your user account.

  1. systemctl --user enable infocus
  2. systemctl --user start infocus

This will track all the applications that you use and how much time you spent
on them. This information is stored on a sqlite database located on:

~/.config/InFocus/activity_log.db

The web interface can then be launched from the applications menu.

CLI Usage

For help on the available infocus commands, at your shell just invoke:

  1. infocus help

Screenshots

Overview
overview

Applications
applications

Activities
activities

Inactivity
inactivity

Preferences
preferences