XFCE widget (genmon)
XFCE has no separate widget binary — the panel item is the
built-in Generic Monitor (genmon) plugin running
wordcount genmon. Tested on Debian (XFCE, X11).
# Debiansudo apt install xfce4-genmon-plugin libinput-tools# CachyOS / Archsudo pacman -S xfce4-genmon-plugin libinput-tools- Right-click your panel → Panel → Add New Items → Generic Monitor
- Right-click the new item → Properties:
- Command:
/home/YOU/.local/bin/wordcount genmon(your real$HOMEpath) - Period:
30seconds - Label: leave empty
- Command:
The panel shows ⌨ 2104. Hover for full totals; click toggles
pause/resume.
What wordcount genmon outputs
Section titled “What wordcount genmon outputs”<txt>⌨ 2104</txt><tool>Today 2026-11-27: 2104 words, 12345 keys, 9800 chars, 300 backspaces, 812 clicks, 94m active, 22 WPM, goal 70% of 3000 — click to pause</tool><txt-click>/home/YOU/.local/bin/wordcount pause</txt-click><txt> is the panel text, <tool> the hover tooltip, and
<txt-click> the command run on click (it becomes
wordcount resume while paused).
genmon is text-only — for charts on XFCE use wordcount report
(static HTML with hourly + 14-day bars) or the CLI.
Troubleshooting
Section titled “Troubleshooting”- Panel shows
XXX— genmon could not run the command. Check the path is absolute and executable (ls -l ~/.local/bin/wordcount) and test~/.local/bin/wordcount genmonin a terminal. - Shows 0 — the counter service is not running or you are not
in the
inputgroup yet. See Troubleshooting.