Skip to main content

TouchView

Wayland overlays for visualizing touchpad/touchscreen gestures and keyboard shortcuts. Shows semi-transparent panels using Layer Shell's OVERLAY layer — sits above all windows and panels, fully click-through.

Useful for demos, screen recordings, and showcasing compositor features.

Example (driftwm window movement):

https://github.com/user-attachments/assets/363d7252-dc28-4cf0-9c30-b7ca2e617972

Tools

  • touchview — finger position overlay: a touchpad (white dots on a dark panel) or a touchscreen (--source touchscreen — circles at the real screen position, fullscreen, like Android's "show touches")
  • keyview — keyboard shortcut overlay (shows key combos like "Super + L", "Alt + Tab")

Requirements

  • Wayland compositor with layer shell support (sway, Hyprland, etc.)
  • gtk4-layer-shell (system package)
  • Access to /dev/input/event* (user must be in input group)

Install

pip install touchview

Or with uv:

uv tool install touchview

From source:

git clone https://github.com/malbiruk/touchview.git
cd touchview
pip install .

touchview

Visualizes finger positions in real-time. Two modes:

  • touchpad (default) — dots on a dark panel anchored to a screen corner.
  • touchscreen (--source touchscreen) — circles drawn at the real finger position on a fullscreen click-through overlay, like Android's "show touches". Ideal for screen-recording touchscreen demos.
touchview [OPTIONS]
Flag Default Description
--source touchpad touchpad (panel) or touchscreen (fullscreen, absolute)
--rotate 0 Panel rotation 0/90/180/270 (touchscreen mode, if dots don't track)
--dot-color HEX #ffffff Finger dot color
--dot-opacity F 0.95 Dot opacity (0-1)
--dot-size PX 18 Dot radius
--glow-size PX 48 Glow radius
--bg-color HEX #000000 Background color (touchpad mode)
--bg-opacity F 0.6 Background opacity 0-1 (touchpad mode)
--height PX 400 Panel height, width from aspect ratio (touchpad mode)
--radius PX 24 Corner radius (touchpad mode)
--position bottom-right Panel position (touchpad mode)
--margin PX 20 Edge margin (touchpad mode)

Touchscreen mode is fullscreen with no backdrop, so --bg-*, --height, --radius, --position, and --margin apply to touchpad (panel) mode only.

# Touchpad: blue-tinted panel, bottom-left
touchview --bg-color '#1a1a2e' --position bottom-left

# Touchscreen: circles at your fingertips, fullscreen — for screen recordings
touchview --source touchscreen

# Rotated tablet — bump --rotate until the circles track your finger
touchview --source touchscreen --rotate 270

keyview

Shows keyboard shortcuts and key combos as an overlay.

  • Modifier combos (Ctrl, Alt, Super, Shift + key) display as "Super + L"
  • Lone modifier taps show the modifier name
  • Auto-fades after timeout
keyview [OPTIONS]
Flag Default Description
--bg-color HEX #000000 Background color
--bg-opacity F 0.6 Background opacity (0-1)
--text-color HEX #ffffff Text color
--text-opacity F 0.95 Text opacity (0-1)
--font-size PX 40 Font size
--radius PX 16 Corner radius
--timeout SEC 1.5 Seconds before fade
--position bottom-left Window position
--margin PX 20 Edge margin
# Both tools side by side — touchview right, keyview left
touchview --position bottom-right &
keyview --position bottom-left &

Positions

Both tools support: top-left, top, top-right, left, right, bottom-left, bottom, bottom-right

Permissions

sudo usermod -aG input $USER
# then log out and back in

Metadata

Release files for touchview 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for touchview 0.2.0
File Size Uploaded Provenance Actions
touchview-0.2.0.tar.gz 11.5 kB Without provenance Details for touchview-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for touchview 0.2.0
File Interpreter ABI Platform Actions
touchview-0.2.0-py3-none-any.whl Python 3 none any Details for touchview-0.2.0-py3-none-any.whl

Total release size: 22.9 kB

Release files / touchview-0.2.0.tar.gz

Download URL touchview-0.2.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
914996d5c08b041e56cb2da2bc8de1c91e4b30e0b871ac980382a6637564d16d
BLAKE2b-256 checksum
How to use checksums
92544a71c802d52fefb059d9c5db7a68b509c0a877ba9d08a57d1aa274378b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux ARM","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / touchview-0.2.0-py3-none-any.whl

Download URL touchview-0.2.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f7be9632fe9a04ffab2c5593e5ac6d64208e89956ee05f319122870bb9dbc80
BLAKE2b-256 checksum
How to use checksums
fc8c7ea5b407914a0a814b308b0034d849a78f8f184177b45b2ea223c8a20a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux ARM","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for touchview 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page