Skip to content
المشاريع

حول

Fast, lightweight Wayland screenshot tool

التصميم والوسائط

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Speed. Starts instantly. The project is built with a focus on speed and optimization and avoids heavy libraries. You can see the comparison with Flameshot & Spectacle with benchmarks here.
  • OCR: fast text scanning, with the option to download and choose a specific model
  • Window selection: hover a window and click to capture it
  • Scrolling capture: select a region and scroll, the long screenshot is stitched as you go

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

LumineCapture
LumineCapture

Fast, lightweight Wayland screenshot tool

KDE Plasma COSMIC niri Umbriel Hyprland GNOME

Preview

preview

Features

  • Speed. Starts instantly. The project is built with a focus on speed and optimization and avoids heavy libraries. You can see the comparison with Flameshot & Spectacle with benchmarks here.
  • Functionality. :
    • OCR: fast text scanning, with the option to download and choose a specific model
    • Window selection: hover a window and click to capture it
    • Scrolling capture: select a region and scroll, the long screenshot is stitched as you go
    • Pin
    • Color picker
    • Basic annotations: pen, highlighter, line, arrow, rectangle, circle, numbered arrows, text, redact (blur or pixelate)
    • Editor for existing images: lumine-capture --edit file.png
    • Saving as PNG, WebP, AVIF or JPEG
  • Native on Wayland.

Scrolling capture

  • Select a region and press the scroll button in the toolbar, or start with lumine-capture -S
  • Scroll: the frames are stitched while you scroll
  • Works both vertically and horizontally
  • Annotate the result in the editor, or finish it like any other screenshot

Usage

LumineCapture supports different launch options, here is the most basic one:

With GUI:

  • lumine-capture
    ╰─> Takes a screenshot of the whole workspace.

  • lumine-capture -m
    ╰─> Takes a screenshot of the monitor under the pointer.

  • lumine-capture -r
    ╰─> No editor and no annotations, just drag a region; the screenshot is taken as soon as you release the mouse button (by default it is both saved and copied).

  • lumine-capture -S
    ╰─> Scrolling capture: drag a region, then scroll the page, and the frames are stitched into one long screenshot.

  • lumine-capture -p
    ╰─> Color picker: click a pixel to copy its color as hex.

  • lumine-capture --edit file.png
    ╰─> Opens an existing image in the editor window instead of taking a screenshot (reads it from stdin without a file).

without GUI :

  • lumine-capture -f (full workspace)
  • lumine-capture -f -m (current monitor)
  • lumine-capture -w (active window, on GNOME works only with extension)

Important: by default every screenshot is also saved as a file and copied to the clipboard, even if in the editor you only chose to copy or pin it. There are two ways to change that:

  1. -t <letters> decides what happens to the screenshot for this launch, where the letters are:

    • s saves it to the screenshots folder, ~/Pictures/screenshots/<year-month>/ by default
    • c copies it to the clipboard
    • p pins it to the screen
    • o writes the PNG to stdout for piping to utilities and other tools
    • r copies the recognized text (or the picked color) to the primary selection (middle click). It works only with -r ocr and -p: screenshot ignores r, since vast majority of apps paste only text with the middle click

    The letters can be used in any order, even scp; they don't get in each other's way. A bare -t means nothing on its own, only what you pick in the editor.

  2. to in the config does the same for every launch without -t, with the same letters:

    [general]
    to = "c"
    

    An empty value (to = "") stops it from doing anything with the screenshot on its own. -t overrides it.

In detail (lumine-capture -h)
lumine-capture [MODE] [OPTIONS]
lumine-capture --edit [FILE]
lumine-capture --ocr-daemon [serve|status|stop|calibrate]

Modes (without one, the editor opens):
  -f, --full           Capture the screen right away, no editor
  -w, --window         Capture the active window right away (KDE Plasma, COSMIC,
                       Hyprland, niri, and GNOME with the extension)
  -r, --region [ocr]   Drag a region, releasing the mouse immediately takes the shot.
                       With ocr, reads the text in it instead. Unlike OCR in the editor,
                       it doesn't show any scanning progress: it closes, and when the scan
                       finishes, shows a notification with the outcome.
                       Recommended to use with -t, see below
  -p, --pick           Click a pixel to copy its color as hex, no editor
  -S, --scroll         Start in scrolling capture: pick a region, scroll the page, and
                       the frames are stitched into one long image. Enter saves it,
                       Escape cancels
      --edit [FILE]    Open an image in the editor window instead of taking a shot,
                       reads it from stdin without FILE. The wheel scrolls it, Ctrl+wheel
                       zooms, the middle button drags it
                       For now this window editor mode is used to edit long pictures from
                       scrolling screenshots

Options:
  -m, --monitor        Only the monitor under the pointer (on GNOME needs the extension)
  -d, --delay <SECONDS>
                       Take the shot this long after the launch, e.g. -d 3 or -d 0.5
  -t, --to <LETTERS>   What to do with the shot: c copy, p pin, s save, o write the PNG
                       to stdout, in any order and mix, e.g. -t pc. Defaults to general.to
                       in the config. In the editor, Enter and a double click do this, and
                       any other finish adds it. A bare -t means nothing by default.
                       Only for -r ocr and --pick: r copies the text to the primary selection
                       (middle click). Screenshots ignore r, apps paste only text with the
                       middle click
  -o, --output <DIR>   Save the shot into this directory instead of the configured
                       one, creating it if needed; implies s in --to
  -F, --format <FORMAT>
                       Save and copy the shot as png, webp, avif or jpeg instead of
                       save.file_format in the config. The clipboard offers PNG too,
                       stdout stays PNG
  -n, --nonotify       Disable notifications for this launch
  -s, --speed          Print how long each startup step took to stderr
      --config <PATH>  Use this config file instead of the default location
      --print-default-config
                       Print the default config.toml and exit
  -h, --help           Print this help and exit
  -V, --version        Print the version and exit

Keyboard shortcuts

Local

These shortcuts are available in the editor. All of them can be changed in the `[keys]` section of the config file.
Keys Description
S Set the Selection as the tool (choose or adjust the capture area)
V Set the Pick as the tool (select, move and resize annotations)
O Set the OCR as the tool (recognize text, select it and copy)
G Set the Eyedropper as the tool (pick a color from the screen)
T Set the Text as the tool
P Set the Pen as the tool
H Set the Highlighter as the tool
D Set the Line as the tool
A Set the Arrow as the tool
R Set the Rectangle as the tool
C Set the Circle as the tool
N Set the Numbered arrow as the tool
X Set the Redact as the tool (blur
←, ↓, ↑, → Move the selection by 15 px
Shift + ←, ↓, ↑, → Move the selection by 1 px
Alt + ←, ↓, ↑, → Resize the selection by 15 px
Alt + Shift + ←, ↓, ↑, → Resize the selection by 1 px
Return Finish with general.to (copy and save by default)
Ctrl + C Copy to the clipboard and finish
Ctrl + S Save as a file and finish
Ctrl + P Pin to the screen and finish
Esc Quit without taking the screenshot
Ctrl + Z Undo the last modification
Ctrl + Shift + Z, Ctrl + Y Redo the next modification
Ctrl + A Select the whole monitor under the cursor
Delete, Backspace Delete the selected annotation
Space Toggle the visibility of the toolbar and the settings panels
M Toggle the magnifier
[, ] Decrease / increase the size (width or font) of the current tool
Double click on the selection Finish with the default action, same as Return
L Select the last selected region again
Mouse Wheel over a highlighted window or region Switch between the window and the last region under the pointer
Right Click Clear the selection
Mouse Wheel Change the tool's size (width or font)
Hold Shift while drawing Straight line, snaps to horizontal or vertical (Pen, Highlighter, Line, Arrow)

With the OCR tool active, Return and Ctrl + C copy the selected text, and Ctrl + A selects all recognized text. With the Eyedropper they copy the picked color.

Global

  • bind them in your bind settings, that's the only proper way on Wayland.
    • On KDE you can import few launch commands binds from lumine-capture-shortcuts-kde.kksrc in System Settings -> Keyboard -> Shortcuts -> Import -> Custom Scheme, but kde import feature is quite unstable.

Installation

Packages are on the releases page.

Packages are built for x86_64 & ARM64 (aarch64), except for Arch package, its x86_64 only.

Fedora 43+

From the Copr repository

sudo dnf copr enable netflate/lumine-capture
sudo dnf install lumine-capture

or a single package from the releases page:

sudo dnf install https://github.com/Netflate/LumineCapture/releases/download/v0.5.1/lumine-capture-0.5.1-1.$(uname -m).rpm

Ubuntu 24.04+ / Debian 13+

wget https://github.com/Netflate/LumineCapture/releases/download/v0.5.1/lumine-capture_0.5.1-1_$(dpkg --print-architecture).deb
sudo apt install ./lumine-capture_0.5.1-1_$(dpkg --print-architecture).deb

Arch Linux

curl -LO https://github.com/Netflate/LumineCapture/releases/download/v0.5.1/lumine-capture-0.5.1-1-x86_64.pkg.tar.zst
sudo pacman -U lumine-capture-0.5.1-1-x86_64.pkg.tar.zst

or build it yourself from the PKGBUILD (the only way for ARM on arch):

git clone https://github.com/Netflate/LumineCapture && cd LumineCapture/packaging/arch && makepkg -si

aerynOS

sudo moss pad lumine-capture

NixOS / Flakes

nix run github:Netflate/LumineCapture

Or add as a flake input to your configuration:

inputs.lumine-capture.url = "github:Netflate/LumineCapture";

GNOME

Works fine out of the box. The packages also install an optional GNOME Shell extension (GNOME 45–51). The extension makes LumineCapture more reliable and adds a few features that can't be implemented without it. After installing, don't forget to re-log first, then turn on LumineCapture in the Extensions app, or run:

gnome-extensions enable [email protected]
What the extension is for
  • no recording dot in the top bar, which spawns when screenshotting and will appear in the final result
  • -w (active window) and -m (monitor under the pointer)
  • window selection in the editor
  • pinned screenshots stay above other windows
  • scrolling capture without maximizing the window (just in case, the default way works fine)
  • no delay on one monitor when opening over the Activities overview with several monitors

Speed Comparison (LumineCapture vs Flameshot vs Spectacle)

every test ran on a dual-monitor setup, so each screenshot covered the whole workspace (both screens), which made every run a bit slower. Compare the tools with each other rather than looking at the absolute numbers.

1) In optimal conditions:

The measurement for each of the three started exactly one frame before the command execution, so the actual time is approximately 0.10 ms lower for each one. It's also important to note that the Spectacle measurement might be unfair. I decided to end the measurement exactly when the application is fully initialized and ready to use, and that's when the toolbar starts appearing, not immediately after the screen dims. This is because Spectacle hasn't loaded the toolbar by that point. The measurement ends at the frame when the toolbar animation starts

first

2) In high CPU usage condition:

second

3) Saving a full-workspace screenshot without a GUI (30 times):

Command Mean [ms] Min [ms] Max [ms] Relative
LumineCapture 150.5 ± 51.9 111.0 280.9 1.00
Spectacle 576.1 ± 11.7 556.5 605.4 3.83 ± 1.32
Flameshot (daemon running) 737.9 ± 33.4 692.5 841.0 4.90 ± 1.71

Script: scripts/bench.sh

Config

The config lives at ~/.config/LumineCapture/config.toml. It's written once, on the first launch, so options added in later versions don't appear in it and just use their defaults. To see every option with its default value:

lumine-capture --print-default-config
# or compare it with yours
diff <(lumine-capture --print-default-config) ~/.config/LumineCapture/config.toml

Deleting a line, or the whole file, brings back the default.

AI policy & Contributing

Most of the code was written by hand, except for OCR, it's noticeably AI-assisted and planned to be improved & rewritten in the future. Otherwise, AI is used for research, debugging and finding gaps in optimization & speed.

Contributors are expected to take an equally responsible approach, more in CONTRIBUTING.md.

Acknowledgments

Scrolling capture is based on #24 by jswysnemc, the creator of mark-shot.

A lot of the reference for this project, including the layout of this README, was taken from Spectacle and Flameshot. Thanks to both projects and everyone who works on them.

OCR runs PaddleOCR PP-OCRv5 models through ONNX Runtime, via oar-ocr, whose releases also host the models. The Hebrew recognizer is Rivok/paddleocr-hebrew (Apache-2.0).

Roadmap (of noticeable features)

  • QR code scanning (#12)
  • Themes, and a proper GUI to choose between them
  • Screen recording
  • GNOME support (#21)
  • On-screen translation
  • Scrolling screenshots

License

Licensed under either of

The bundled Inter font is under the SIL Open Font License 1.1 (LICENSE-OFL).

Wayland protocol files in protocols/ keep their own licenses, stated in each file.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…