Skip to main content

Record your step with screenshot automatically, comes with click annotated on the image

Project description

📸 ClickShot — Annotated Screenshot Recorder from Click Events

ClickShot is a command-line tool that listens for mouse or touchpad click events, takes annotated screenshots at the cursor position, and generates an editable HTML log of your steps.

It supports:

  • 📷 Screenshot tools: grim, maim, scrot
  • 🖱️ Cursor providers: hyprctl, xdotool
  • 🧠 Clean CLI
  • 📝 Editable HTML output + printable/exportable

🚀 Features

  • Annotates click/touch location with a red circle
  • Auto-generates step-by-step HTML log
  • Editable titles/descriptions
  • HTML printable/exportable to PDF
  • Supports both Wayland and X11 environments

🛠️ Installation

pip install clickshot

🧪 Requirements

Install at least one screenshot tool and one cursor position tool:

Tool For Install Command
grim Screenshot sudo pacman -S grim / sudo apt install grim
maim Screenshot sudo apt install maim
scrot Screenshot sudo apt install scrot
hyprctl Cursor (Wayland, Hyprland) Comes with Hyprland
xdotool Cursor (X11) sudo apt install xdotool
convert Annotation sudo apt install imagemagick

✅ Quick Start

clickshot record

This uses:

  • grim as screenshot backend
  • hyprctl as cursor provider
  • Output directory: ~/click_screenshots

📸 Select Backends Manually

X11 Example:

clickshot record --screenshot maim --cursor xdotool

Wayland (Hyprland):

clickshot record --screenshot grim --cursor hyprctl

Fallback with scrot:

clickshot record --screenshot scrot --cursor xdotool

🔧 CLI Options

Option Description Default
--output-dir Where to save screenshots and HTML ~/click_screenshots
--screenshot Screenshot backend (grim, maim, scrot) grim
--cursor Cursor backend (hyprctl, xdotool) hyprctl

⌨️ Keyboard Controls

While running:

  • Press p to pause/resume
  • Press q to quit gracefully

📂 Output

Each click creates:

  • An annotated .png screenshot with a red circle at the cursor
  • Appended step to index.html with editable titles

You can open the HTML manually:

xdg-open ~/click_screenshots/index.html

Or print/export directly in your browser.


🧩 Extensibility

You can add new screenshot or cursor backends easily by adding classes under:

clickshot/backends/

See grim_backend.py or xdotool_cursor.py for examples.


🧠 Tips & Troubleshooting

  • Ensure your compositor or DE supports the screenshot tool (e.g., grim works only on Wayland).
  • On X11, prefer maim or scrot with xdotool.
  • Use --help for CLI options:
clickshot record --help

🙌 Credits

Inspired by needs for lightweight UI documentation, bug reproduction steps, and instructional content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_clickshot-1.1.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_clickshot-1.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file py_clickshot-1.1.0.tar.gz.

File metadata

  • Download URL: py_clickshot-1.1.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for py_clickshot-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c06a0e63a6c8bfcf2bb2d2bb6de900d3ba788895edaafd519766de822bd6a6dc
MD5 e7f67a7a47de8857fcfce5d87ad62582
BLAKE2b-256 961ad466a2772add7f08afd6f007c51132cafe6557b40a243fc4896531f36ce6

See more details on using hashes here.

File details

Details for the file py_clickshot-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_clickshot-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for py_clickshot-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bbee06a93137a7cbebb6cc1e36bcefdbe23b449296e70ed509b9efd7f56768b
MD5 c96b094976f2455b6a6b890f4b57ecdb
BLAKE2b-256 aee4c38d39688a7b8ac32fe38a096862610e532f023b6e62fcf7a9599762df89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page