This tool listen for user activity throughout xrecord-echo and store user activity to database.
It records keys, clicks, mouse move, windows titles and processes. Than this data will be visualized by php-selftop.
- Go compiler (Installing Go)
- sqlite3
Clone and run:
go get github.com/gdamore/mangos github.com/mitchellh/go-homedir github.com/mattn/go-sqlite3
go build -o selftop
docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1 /bin/bash -c "go get -d -v; go build -v -o selftop"
Just run executable:
./selftop
But I recommend use supervisor like runit to manage process (run on system startup and restart on crash).
cp selftop.service ~/.config/systemd/user
systemctl --user enable selftop.service
systemctl --user start selftop.service