Skip to content

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.

Terminal window
curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/install.sh | bash

This 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):

Terminal window
sudo usermod -aG input "$USER" # then log out / in
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).

No Python needed — the installer downloads standalone binaries from the latest GitHub release. In PowerShell:

Terminal window
irm https://raw.githubusercontent.com/ChandanShakya/keyount/main/windows/install.ps1 | iex

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

Terminal window
curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/macos/install.sh | bash

Downloads 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:

  1. Open System Settings → Privacy & Security → Input Monitoring
  2. Enable the entry for the keyount binary (~/.local/bin/keyount) — if none is listed, click + and add it (Python fallback install: enable your python3 binary instead)
  3. Restart the agent so it picks up the permission:
Terminal window
launchctl kickstart -k gui/$(id -u)/com.chandan.keyount
Terminal window
# Linux
curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/uninstall.sh | bash
# macOS
curl -fsSL https://raw.githubusercontent.com/ChandanShakya/keyount/main/macos/uninstall.sh | bash
Terminal window
# Windows (PowerShell)
irm https://raw.githubusercontent.com/ChandanShakya/keyount/main/windows/uninstall.ps1 | iex

Your daily totals are kept unless you pass --purge (Linux/macOS: ... | bash -s -- --purge; Windows: run from a clone with -Purge).

Terminal window
git clone https://github.com/ChandanShakya/keyount.git
cd keyount
bash install.sh # Linux
bash macos/install.sh # macOS
Terminal window
powershell -ExecutionPolicy Bypass -File windows\install.ps1 # Windows

Next: First run.