Repository navigation
Releases
v2.4.0
v2.3.0
Added
- Windows port (
windows/): counter usingWH_KEYBOARD_LL/
WH_MOUSE_LLhooks via ctypes (stdlib only), PowerShell
install/uninstall with a logon scheduled task, optional
pystray tray companion (not installed by default) - macOS port (
macos/): counter using a listen-onlyCGEventTap
via ctypes (stdlib only, no pyobjc), LaunchAgent install/
uninstall scripts, optional rumps menu-bar companion (not
installed by default) - Shared cross-platform CLI (
ports/wordcount.py):
today/week/month/json/history-json/panel/pause/resume/toggle
with the same output formats and data layout as the Linux CLI - Tests for the shared core and the Windows/macOS keymaps
(tests/test_counter_core.py,tests/test_keymaps.py)
Changed
- Extracted the platform-independent counting state machine from
src/local-wordcounter.pyintosrc/counter_core.py; the Linux
counter is now a thin libinput front-end over it. Behavior,
data format,--selftest, and the test suite are unchanged.
install.sh/uninstall.shnow also copy/remove
counter_core.py
v2.2.0
Local Word Counter v2.2.0
Added
- KDE widget popup: words-per-hour bar chart for today — 24 hourly
buckets from the daily JSON, current hour highlighted, hover a bar
for its exact count, peak label ("peak 753 at 14:00") - KDE widget popup: selectable chart range — Today (hourly), 3 days,
7 days, 30 days (daily bars, today highlighted, hover for date +
count), plus a "Yesterday: N words" line. New CLI mode
wordcount history-json(last 31 days as JSON) feeds it - Widgets for all other Linux desktops: GNOME Shell extension,
Cinnamon applet, and Waybar/Polybar/i3blocks/Conky/MATE/LXQt
snippets (all pollwordcount panel|jsonevery 30s, bash only,
~0.05% duty cycle). New CLI modewordcount togglefor panel
click actions.install-widgets.shauto-detects
GNOME/Cinnamon/tiling WMs/MATE/LXQt
Changed
- KDE widget popup redesigned: big count header with date, six stat
tiles (keys, chars, backspaces, mouse clicks, active time + WPM,
best burst), chart in its own card, icon buttons. Dropped the
"Counting locally only" line; the paused state is still shown when
paused
Full changelog
See CHANGELOG.md. Previous release: v2.1.1 (install fixes: Arch
libinput-tools package name, sg no-restart fallback when the
input group was added after login, 2s save throttle, widget
Refresh reliability).
v2.1.1
Local Word Counter v2.1.1
Bug-fix release from the first real-world install (CachyOS / KDE Plasma 6). No new features, no data format changes — existing totals carry over.
Fixed
- Arch/CachyOS install: the
libinputCLI is in the splitlibinput-toolspackage, notlibinput— installer hint and docs corrected - Installer input-group check: now checks the session's actual credentials, not just the account database. If you were added to the
inputgroup after login, the installer writes ansg inputsystemd drop-in so counting works immediately without re-login (uses anewgrpsymlink on distros like CachyOS that shipnewgrpbut nosg; auto-removed on a later install once the session has the group) - Widget installer: no confusing "plugin is not installed" error on first install; upgrades fall back to remove+install so QML changes always land
- Save throttle 30s → 2s: the widget Refresh button now shows current totals immediately (still one tiny write per interval while typing)
- KDE widget Refresh: uses a dedicated one-shot data source with a unique name per click (the shared 30s-interval source could serve stale cached data); popup also refreshes on open
- Installer always restarts the service so re-installs pick up new code; uninstaller also removes the sg drop-in and symlink
Install / upgrade
git pull
bash install.sh
kquitapp6 plasmashell && kstart plasmashell # only if the widget QML changed for youFull details in CHANGELOG.md. Local only, counters only, no network — as always.
v2.1.0
local-wordcounter v2.1.0 — release notes (paste-ready)
Prepared 2026-11-29 from CHANGELOG.md (v2.1.0, 2026-11-27). Paste into GitHub → Releases → Draft a new release → tag v2.1.0 on main.
local-wordcounter v2.1.0
Local-only word/key counter for KDE Plasma 6 and XFCE. Counts daily words, keys, chars, backspaces and mouse clicks — totals only, no text stored, no network.
Added
- Active typing time, average WPM, and best burst WPM (computed from input gaps only)
- Mouse click counting via libinput (counts only, no position; can be disabled)
- Hourly buckets in the daily JSON
- Optional per-key heatmap counts, off by default — counts only, never the sequence
- Daily word goal with progress in CLI, KDE popup, and XFCE tooltip
wordcount month|year|all|info,wordcount export csv|json, andwordcount report(static local HTML report — no server)- Config file at
~/.config/local-wordcounter/config.json - Benchmark suite (
make bench) with recorded results: ~230k events/s core throughput, 0.0% idle CPU, 13 MB RSS - Expanded tests: 39 Python tests + shell tests, CI also runs
systemd-analyze verifyand a benchmark smoke test
Changed
- Backspace now shrinks the current word, so a fully deleted word is no longer counted
- Widget modes read the day file once (
todaypoll: 47 ms → 16 ms) - KDE popup and XFCE tooltip now show clicks, active time, WPM, best burst, and goal progress
- Daily JSON gains new fields; old files still load
Install
See README — install.sh plus systemd user service; KDE plasmoid and XFCE genmon widgets included.
Full changelog: CHANGELOG.md