Where has my time gone?
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
vendor
.gitignore
Dockerfile
LICENSE
README.md
go.mod
go.sum
gone.go
http.go
static.go
xdg.go
xdg_darwin.go
xorg.go

README.md

Gone Time Tracker

Where has my time gone? X11 automatic work activity tracker in pure Go.

Synopsis

Gone performs automatic time accounting on EWMH capable Window Managers by looking at _NET_ACTIVE_WINDOW and storing time spent on a particular application.

Gone is aware of ScreenSaver and suspends accounting if ScreenSaver triggers.

As fallback (see caveats) gone also stops at user inactivity. The inactive time is counted separated.

Results are presented at http://localhost:8001/

Installation

go get github.com/dim13/gone

Caveats

  • For xmonad Window Manager EwmhDesktop extension is required.

  • xscreensaver seems to ignore MIT-SCREEN-SAVER extension. Use xidle/xlock instead and/or activate X11 ScreenSaver:

    xset s default

Alternatives

http://arbtt.nomeata.de/ - automatic, rule-based time tracker

Dockerize

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix dim13/gone