https://github.com/activitywatch/aw-watcher-input

Track your keypresses and mouse movements with ActivityWatch

https://github.com/activitywatch/aw-watcher-input

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.1%) to scientific vocabulary

Keywords

activitywatch activitywatch-watcher input keyboard-events mouse-events

Keywords from Contributors

time-tracker timetracker
Last synced: 5 months ago · JSON representation

Repository

Track your keypresses and mouse movements with ActivityWatch

Basic Info
  • Host: GitHub
  • Owner: ActivityWatch
  • Language: Python
  • Default Branch: master
  • Size: 169 KB
Statistics
  • Stars: 133
  • Watchers: 7
  • Forks: 27
  • Open Issues: 20
  • Releases: 0
Topics
activitywatch activitywatch-watcher input keyboard-events mouse-events
Created about 5 years ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

aw-watcher-input

Track your keypresses and mouse movements with ActivityWatch.

NOTE: Work in progress, contributions welcome!

NOTE: This does not track which keys you press, only that you pressed any key some number of times in a given time span. This is not a keylogger, and never will be (due to the massive security and privacy implications).

Build

Make sure you have Python 3.7+ and poetry installed, then install with poetry install.

Usage

Run poetry run aw-watcher-input --help for usage instructions.

We might eventually create binary builds (like the ones bundled with ActivityWatch for aw-watcher-afk and aw-watcher-window) to make it easier to get this watcher up and running, but it's still a bit too early for that.

Custom visualization

This watcher ships with an experimental custom visualization which needs special configuration.

NOTE: This is a work-in-progress. Custom visualizations is an experimental feature with little to no decent documentation, so far.

First, you need to build it, which you can do by:

sh cd visualization/ npm install -g pug-cli browserify # might need sudo npm install make build

You can then configure aw-server or aw-server-rust to host the custom visualization.

To do so for aw-server, add the following to your config file (with the correct path!):

toml [server.custom_static] aw-watcher-input = "/home/user/path/to/aw-watcher-input/visualization/dist"

For aw-server-rust, instead add the following to your config file (with the correct path!):

toml [custom_static] aw-watcher-input = "/home/user/path/to/aw-watcher-input/visualization/dist"

You then need to restart aw-server/aw-server-rust for the changes to take effect.

Once the server is restarted, you can open the Activity view in the web UI, click "Edit view", then "Add visualization", then click the cogwheel and select "Custom visualization". This will open a popup asking for which visualization, here enter "aw-watcher-input".

It should now work. Click save and you're done!

Notes

This was massively inspired by ulogme by @karpathy, here's a screenshot of how it looks:

screenshot of ulogme

The idea is that we can do the same thing with ActivityWatch, and this watcher is an attempt to incorporate this specific part.

Here's a link to the blog post where he presents it: https://karpathy.github.io/2014/08/03/quantifying-productivity/

Owner

  • Name: ActivityWatch
  • Login: ActivityWatch
  • Kind: organization

Open source time-tracking application with a focus on extensibility and privacy.

GitHub Events

Total
  • Issues event: 3
  • Watch event: 22
  • Issue comment event: 3
  • Push event: 1
  • Pull request review event: 1
  • Pull request event: 1
  • Fork event: 8
Last Year
  • Issues event: 3
  • Watch event: 22
  • Issue comment event: 3
  • Push event: 1
  • Pull request review event: 1
  • Pull request event: 1
  • Fork event: 8

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 35
  • Total Committers: 3
  • Avg Commits per committer: 11.667
  • Development Distribution Score (DDS): 0.086
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Erik Bjäreholt e****k@b****t 32
ochen1 o****1@s****a 2
lgtm-com[bot] 4****] 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 26
  • Total pull requests: 15
  • Average time to close issues: 8 days
  • Average time to close pull requests: 8 days
  • Total issue authors: 23
  • Total pull request authors: 10
  • Average comments per issue: 2.5
  • Average comments per pull request: 0.87
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 3
Past Year
  • Issues: 2
  • Pull requests: 3
  • Average time to close issues: about 2 hours
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ErikBjare (2)
  • nck974 (2)
  • BLACK4585 (2)
  • kulbhushanchand (1)
  • scarrrr316 (1)
  • James-gct (1)
  • pinuz95 (1)
  • kitzler-walli (1)
  • dbieber (1)
  • mosaleh52 (1)
  • ronilaukkarinen (1)
  • sunnylake180 (1)
  • DNNhost (1)
  • 8Dion8 (1)
  • ideepthinv (1)
Pull Request Authors
  • ErikBjare (2)
  • ochen1 (2)
  • Joeyrsp (2)
  • ellipsis-dev[bot] (2)
  • 0xbrayo (2)
  • TSRBerry (1)
  • lgtm-com[bot] (1)
  • Mice7R (1)
  • dholendar29 (1)
  • Mourtz (1)
Top Labels
Issue Labels
enhancement (1) good first issue (1)
Pull Request Labels

Dependencies

visualization/package-lock.json npm
  • aw-client 0.3.0
  • axios 0.19.2
  • debug 3.1.0
  • follow-redirects 1.5.10
  • ms 2.0.0
visualization/package.json npm
  • aw-client ^0.3.0
poetry.lock pypi
  • mypy 0.931 develop
  • mypy-extensions 0.4.3 develop
  • tomli 2.0.0 develop
  • typed-ast 1.5.1 develop
  • appdirs 1.4.4
  • attrs 21.4.0
  • aw-client 0.5.7
  • aw-core 0.5.7
  • aw-watcher-afk 0.2.0
  • certifi 2021.10.8
  • charset-normalizer 2.0.10
  • click 8.0.3
  • colorama 0.4.4
  • deprecation 2.1.0
  • evdev 1.4.0
  • idna 3.3
  • importlib-metadata 4.10.1
  • iso8601 0.1.16
  • jsonschema 3.2.0
  • packaging 21.3
  • peewee 3.14.8
  • persist-queue 0.6.0
  • pynput 1.7.6
  • pyobjc-core 8.1
  • pyobjc-framework-applicationservices 8.1
  • pyobjc-framework-cocoa 8.1
  • pyobjc-framework-quartz 8.1
  • pyparsing 3.0.6
  • pyrsistent 0.18.1
  • python-json-logger 2.0.2
  • python-xlib 0.28
  • requests 2.27.1
  • six 1.16.0
  • strict-rfc3339 0.7
  • takethetime 0.3.1
  • timeslot 0.1.2
  • tomlkit 0.8.0
  • typing-extensions 4.0.1
  • urllib3 1.26.8
  • zipp 3.7.0
.github/workflows/build.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • actions/setup-python v1 composite
  • actions/upload-artifact v2 composite
.github/workflows/codeql.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
pyproject.toml pypi