Skip to main content

A simple UI for handling screenshots.

Installation

  • ArchLinux: yay install shotman.

  • Others: pip install shotman.

Setup

You’ll generally want to bind shotman to some hotkeys. I keep this in my sway settings:

# Screenshots:
# Super+P: Current window
# Super+Shift+p: Select area
# Super+Alt+p Current output
# Super+Ctrl+p Select a window

bindsym Mod4+p       exec shotman active
bindsym Mod4+Shift+p exec shotman area
bindsym Mod4+Mod1+p  exec shotman output
bindsym Mod4+Ctrl+p  exec shotman window

Note: the above supercedes the recommendation given by grimshot. Make sure you don’t have both on your config file.

I also recommend adding settings to position it on-screen. If you skip this, the window will show up centred, since Wayland clients cannot control their position:

for_window [title="shotman"] move position 30 30

It is currently not clear if this application should be exceptional and use a privileged API for better positioning or not.

Usage

shotman saves a screenshot to disk, and then shows a thumbnail and a simple interface.

Actions

You can execute the same actions with a mouse _or_ keyboard:

  • Done: Exits. The screenshot images remains on disk.

    • Primary Keybinding: Esc.

    • Secundary Keybindings: Ctrl+q, Ctrl+w, q, Ctrl+s.

  • Delete: Deletes the image file and exists immediately.

    • Keybinding: d.

    • Secundary Keybindings: Delete, Ctrl+d.

  • Copy: Copies the screenshot image to the clipboard. See caveats below.

    • Keybinding: Ctrl+C.

If there’s a good, lightweight image editor that runs well on Wayland, I’d be happy to add an Edit button that opens the screenshot image in it.

Caveats

If you’re not using a clipboard manager, any copied image will be lost after closing the window.

There are plants to keep the application running in the background until it loses the clipboard handle to work around this.

Requirements

This tool relies on grimshot. It’s designed for sway, but should work on other wlroot compositors.

Packaging

Dependencies for this package are Python3, PySide6 and grimshot. The wayland Qt plugin should also be installed (e.g.: qt6-wayland).

Licence

shotman is licensed under the ISC licence. See LICENCE for details.

Metadata

Release files for shotman 0.1.3

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

Source distribution (sdist)

Source distribution for shotman 0.1.3
File Size Uploaded
shotman-0.1.3.tar.gz 11.9 kB Details

Built distribution (wheel)

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

Total release size: 19.5 kB

Release files / shotman-0.1.3.tar.gz

Download URL shotman-0.1.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
66fa47594d4fd9ac2eb476c2f0b74a62a9348ff364194863f69b5bc684fcc7d2
BLAKE2b-256 checksum
How to use checksums
15afa4dd11c864d45ac23b6fb43d191755704ad9e0c8ad3999ea53bef893c28b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / shotman-0.1.3-py3-none-any.whl

Download URL shotman-0.1.3-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bd1ab82b8f61530d290ec55d832394148ff900ff9728956e575a11dd3c8f066
BLAKE2b-256 checksum
How to use checksums
76bda37a0f370ac12a0bf801da54a460e3fe0367aa3ff5934d6064215fd87632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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