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.1.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.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_clickshot-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 022189649a05164daa9a949b122417f1fd6b0659913946527b0c0141f993f132
MD5 355ca85ccc1631476609548ccf49bd1c
BLAKE2b-256 b22917613a75eacaba0e75d90af1ca1cfe8475c3c23bc9bb1eabfd2c44efce99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_clickshot-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11ebd8999d5c3e548948528f96a11f7763b8c86d19e953f91b7c7619dd62ef47
MD5 b6fedba2ddf014a6a131b40fee69a584
BLAKE2b-256 a54aecf6b6e21c41358a3594394537acb950ba3f3023cbd404e2d95d388d9ce2

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