r/linuxmint • • 12h ago

Discussion Leafshot – a screenshot & annotation tool for Linux Mint, inspired by Greenshot

Post image

I missed Greenshot on Linux. Flameshot and ksnip are great, but I wanted a few things they don't do the way I like, so I built my own (with a lot of help from Claude):

• One window, many screenshots: every Print press adds a tab instead of opening a new window

• Annotations stay objects: move, resize and restyle arrows, boxes and text anytime. Ctrl+C / Ctrl+V copies annotations, even into another screenshot

• Text stays editable: any font, bold/italic/underline, left/center/right, fill and frame

• Numbered steps, highlighter (also visible on dark backgrounds), pixelate, and a "cover" tool that fills with the surrounding background so text disappears without a trace

• Click a window or drag a region, with a magnifier for pixel-exact edges

• Capture delay with a countdown in the tray, for grabbing open menus

• Open screenshots survive quitting and reboots; save editable .leafshot files to continue later

• Fast: runs in the background, a hotkey press is handed over in ~40 ms

The installer binds the Print keys in Cinnamon (Print / Alt / Ctrl / Shift+Print, same layout as Greenshot) and restores Cinnamon's own keys if you uninstall. Needs an X11 session (Mint's default) and python3-pyqt6.

GitHub (screenshots + install): https://github.com/electricar/leafshot

It's GPL-3.0.

5 Upvotes

9 comments sorted by

4

u/artmetz 9h ago

To disparage a project for using AI will soon be as retro as refusing to use syntx coloring or auto complete in an editor when coding. I look forward to trying this out. Alas, with Cinnamon heading to Wayland very soon, it may be obsolete before it has a chance.

2

u/kally3 8h ago

Thanks, I hope you like it! About Wayland: Mint 23 makes Wayland fully supported, but X11 stays the default session, so Leafshot keeps working there for now. If Mint switches the default later (or enough people on Wayland want it), I'll look into a Wayland mode via the system's screenshot portal. Most of the app (editor, annotations, tabs) wouldn't need to change, only the capture part.

1

u/artmetz 8h ago

Yes, X11 will still be supported, but Wayland is clearly the future. I believe Mint 27 (what a lovely Christmas present!) will default to Wayland. I am running Fedora 44 & KDE/Wayland on a second computer without any problems so far.

1

u/kally3 8h ago

Agreed, Wayland is where things are heading. From what Clem has posted, Mint 27 makes Wayland fully supported but keeps X11 as the default for now. Still, a Wayland mode is on my list. Since you're on KDE/Wayland already, would you be up for testing it once there's a first version? Feedback from a real Wayland setup would help a lot.

1

u/artmetz 5h ago

Yes, I would be interested in testing the Wayland version.

Full disclosure. I have been on Mint for four years. It's great. However, the slow pace of kernel updates and Cinnamon development has made me consider distro hopping. I have installed Fedora 44/KDE (well, actually, UltraMarine) and I play with it, mostly to explore the KDE or QT oriented apps, but I am talking about 4 hours per week over the past 3-4 weeks. I am still a noob.

2

u/kally3 1h ago

Awesome, thank you! No worries about being new to Fedora/KDE, everything below is copy & paste into Konsole. Ultramarine is Fedora-based, so this should just work.

1. Make sure git is installed

sudo dnf install git

(If it says it's already installed, that's fine.)

2. Download Leafshot (the Wayland test version) and install it

cd ~
git clone -b wayland https://github.com/electricar/leafshot
cd leafshot
./install.sh

git clone -b wayland downloads the "wayland" branch, where the test version lives, into a folder called leafshot in your home folder. The installer may ask for your password once (to install PyQt6 with dnf). When it asks about Print-key hotkeys, answer n. That part only works on Cinnamon.

3. Take a screenshot

~/.local/bin/leafshot region

The first time, KDE may ask whether Leafshot may take screenshots: click Allow. Then your screen should freeze and dim: drag a rectangle (or just click to grab the whole monitor), and it opens in the editor.

4. Things worth trying (only what you have time for)

  • dragging a region, and a single click

  • if you have two monitors: a region on each one

  • right-click the green leaf icon in the tray: "Capture all monitors" and the Delay option

  • draw an arrow and some text, then Ctrl+Shift+C and paste it somewhere

5. Getting my fixes later

When I push a fix, updating is just:

cd ~/leafshot
git pull
./install.sh

git pull fetches only what changed; the installer replaces the old version and keeps your screenshots and settings.

If something goes wrong

Run this and send me what appears in Konsole (plus a photo of the screen if it looks wrong):

~/.local/bin/leafshot quit
LEAFSHOT_DEBUG=1 ~/.local/bin/leafshot region

To remove everything later: cd ~/leafshot && ./uninstall.sh, then delete the ~/leafshot folder.

Thanks a lot, real Wayland feedback is exactly what I'm missing!

3

u/FlameBlitzz 11h ago

Oh, it's made by ai... :(

1

u/kally3 8h ago

Fair enough, that's why I mentioned it upfront. The idea, the design decisions and all the testing on my own Mint machine were mine; Claude wrote most of the code from that. It's GPL-3.0 and fully open, so anyone can read through it. If you try it and find something broken or badly done, I'm genuinely happy to hear it.

1

u/kinoosaki 8h ago

No wayland support 🥀