Install
One command per platform. Safe to re-run. No clone needed — the installers download the source once, only when you run them; the installed counter never touches the network.
Linux (all desktops)
Section titled “Linux (all desktops)”curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/install.sh | bashThis installs the counter + CLI to ~/.local/bin/, enables the
systemd user service, and sets up the widget for your desktop
(auto-detected).
Prerequisites: libinput-tools (Arch/CachyOS:
sudo pacman -S libinput-tools; Debian: sudo apt install libinput-tools),
Python 3, systemd.
If you still need the input group, the installer says so and
applies a no-re-login workaround (see
Troubleshooting):
sudo usermod -aG input "$USER" # then log out / inWhat the one command sets up per desktop
Section titled “What the one command sets up per desktop”| Desktop | Widget set up | Extra manual step |
|---|---|---|
| KDE Plasma 6 | Native plasmoid registered | Right-click panel/desktop → Add Widgets → Keyount |
| XFCE | Prints genmon instructions | Install xfce4-genmon-plugin, add Generic Monitor once (command $HOME/.local/bin/wordcount genmon, period 30s) |
| GNOME | Shell extension copied + enabled | On Wayland, log out/in if it doesn’t appear |
| Cinnamon | Applet copied | Enable Keyount under panel → Applets |
| Sway / Hyprland / i3 / bspwm | Prints bar pointers | Merge the snippet for your bar — see bars & snippets |
| MATE / LXQt | Prints command-widget steps | See bars & snippets |
| Conky / any panel | — | Run wordcount panel every 30s |
Tested on CachyOS (KDE Plasma 6, Wayland) and Debian (XFCE, X11).
Windows
Section titled “Windows”No Python needed — the installer downloads standalone binaries from the latest GitHub release. In PowerShell:
irm https://raw.githubusercontent.com/ChandanShakya/keyount/main/windows/install.ps1 | iexDownloads keyount-windows-x64.zip (keyount.exe +
keyount-tray.exe + wordcount.exe) into
%LOCALAPPDATA%\keyount, registers two logon scheduled tasks
(Keyount + Keyount Tray, run as you, no admin), and starts
both. If the download fails, it falls back to the Python files
(needs Python 3.10+ from python.org,
with “Add python.exe to PATH” ticked; the tray then also
needs pip install pystray Pillow).
curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/macos/install.sh | bashDownloads keyount-macos-arm64.zip from the latest GitHub
release (standalone keyount + keyount-menubar + wordcount
binaries — no Python needed), installs to ~/.local/bin, and
loads two LaunchAgents
(~/Library/LaunchAgents/com.chandan.keyount.plist for the
counter, RunAtLoad + KeepAlive, Nice 10; plus
com.chandan.keyount.menubar.plist). Requires macOS 12+. If the
download fails (e.g. on an Intel Mac), it falls back to the
Python files (needs Python 3.10+ from python.org or Homebrew;
the menu bar then also needs pip install rumps).
One manual step afterwards — grant Input Monitoring permission:
- Open System Settings → Privacy & Security → Input Monitoring
- Enable the entry for the
keyountbinary (~/.local/bin/keyount) — if none is listed, click + and add it (Python fallback install: enable yourpython3binary instead) - Restart the agent so it picks up the permission:
launchctl kickstart -k gui/$(id -u)/com.chandan.keyountUninstall
Section titled “Uninstall”# Linuxcurl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/uninstall.sh | bash# macOScurl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/macos/uninstall.sh | bash# Windows (PowerShell)irm https://raw.githubusercontent.com/ChandanShakya/keyount/main/windows/uninstall.ps1 | iexYour daily totals are kept unless you pass --purge (Linux/macOS:
... | bash -s -- --purge; Windows: run from a clone with -Purge).
From source (clone)
Section titled “From source (clone)”git clone https://github.com/ChandanShakya/keyount.gitcd keyountbash install.sh # Linuxbash macos/install.sh # macOSpowershell -ExecutionPolicy Bypass -File windows\install.ps1 # WindowsNext: First run.