Skip to content

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).

Terminal window
# Debian
sudo apt install xfce4-genmon-plugin libinput-tools
# CachyOS / Arch
sudo pacman -S xfce4-genmon-plugin libinput-tools
  1. Right-click your panel → Panel → Add New Items → Generic Monitor
  2. Right-click the new item → Properties:
    • Command: /home/YOU/.local/bin/wordcount genmon (your real $HOME path)
    • Period: 30 seconds
    • Label: leave empty

The panel shows ⌨ 2104. Hover for full totals; click toggles pause/resume.

<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.

  • 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 genmon in a terminal.
  • Shows 0 — the counter service is not running or you are not in the input group yet. See Troubleshooting.