Skip to main content

Open the latest screenshot you took in your default image viewer

Project description

pipeline status coverage report GitLab issues GitLab merge requests

Open Latest Screenshot

Opens the latest screenshot taken in your default image viewer.

PyPI Release PyPI - Downloads PyPI - License

Getting Started

Follow the install instructions, then see usage.

Requirements

All popular Linux distributions with Python 3.8 or later are currently supported.

If you're on Linux and you find open-latest-screenshot doesn't work on your distro, please open a new issue here.

Installation

pip install openlatestscreenshot

Usage

open-latest-screenshot

Keyboard Shortcut Setup

If you find yourself using open-latest-screenshot a lot, it's recommended to set a custom keyboard shortcut to launch the script. Many popular Linux desktop environments allow you to do this easily.

Gnome Keyboard Shortcut Setup

  1. Open GNOME settings
  2. Navigate to Keyboard > Keyboard Shortcuts > Customize Shortcuts > Custom Shortcuts
  3. Click the Add Shortcut button
  4. Set the name, command and shortcut to the following:
    • name: Open latest screenshot
    • command: open-latest-screenshot
    • shortcut: Whatever you like!
  5. Done!

TIP: If the keyboard shortcut doesn't seem to be working, make sure to test that open-latest-screenshot is working as expected from your terminal, as GNOME won't let you know if an error has occured.

Development

Installation (for Developers)

cd "<repo_root_dir>"
poetry install

Usage (for Developers)

cd "<repo_root_dir>"
poetry run open-latest-screenshot

Generating Coverage Reports Locally

cd "<repo_root_dir>"
./development-scripts/generate-html-coverage-report.sh  # generate HTML coverage report
start "htmlcov/index.html"  # open coverage report in default browser

Important Note: Coverage results will only be updated each time the generate-html-coverage-report.sh script is run. If you've added/updated tests but your coverage hasn't changed, make sure that you haven't forgotten to rerun the script.

Build/Test

Builds and tests are automated by GitLab pipelines!

Just create a merge request and everything should happen automatically ⚙️ ✅

Links

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

openlatestscreenshot-0.3.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file openlatestscreenshot-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: openlatestscreenshot-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openlatestscreenshot-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6f179a46ed6b2480c2d14acdb0a7f83c3172fac83676a23bb503e7eb72c6765
MD5 86c3ba5fa3065dc5028a04a16184a769
BLAKE2b-256 24c08c609ad93627b632a896755e96bab62c1805c376c66d9f206b976753bb14

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