Taking a screenshot on Linux is easy. Capturing an entire webpage, a long document, or a conversation that extends beyond your screen? That's a different story.
If you've ever needed to capture something that doesn't fit on your screen, you've probably encountered this problem.
A regular screenshot only captures what's currently visible. You can take multiple screenshots and stitch them together manually, but that's not exactly a convenient workflow.
I wanted something that does it together.
The problem with scrolling screenshots on Linux
Scrolling screenshots are surprisingly useful. They allow you to capture an entire webpage, long documentation, terminal output, or application content as one continuous image.
Many applications on other platforms offer this functionality directly. On Linux, however, the experience is less straightforward.
There are browser-specific solutions, desktop-specific screenshot utilities, and various manual workarounds. But finding a solution that works consistently across different Linux desktop environments can be challenging.
The situation becomes even more interesting when Wayland enters the picture.
X11 vs. Wayland: Why things get complicated
Linux desktop environments don't all handle screen capture and input in the same way.
Under X11, applications generally have more direct access to screen contents and input events.
Wayland takes a different approach. It introduces stronger isolation between applications, meaning screen capture and input simulation require explicit permissions and desktop compositor support.
This is where technologies like XDG Desktop Portals become important.
The portal system provides standardized interfaces for applications to request screen capture and remote desktop access without relying on desktop-specific screenshot utilities.
It's a better security model, but it also means developers have to think carefully about compatibility across desktop environments.
So, I built CapScroll
I originally started CapScroll because I wanted a proper scrolling screenshot tool on Linux and couldn't find one that worked the way I wanted.
Instead of settling for manual screenshots and stitching, I decided to build my own.
CapScroll is an open-source Linux scrolling screenshot and region capture application built with C# and .NET 10, using Avalonia UI.
Its main features include:
- Region capture: Select and capture a specific area of your screen.
- Automatic scrolling: Capture content while automatically scrolling through it.
- Long screenshot stitching: Combine multiple captures into one continuous image.
- Multi-monitor support: Capture content across different monitors.
- Linux desktop integration: Work across X11 and Wayland environments.
Building for Linux isn't always straightforward
One of the most interesting parts of developing CapScroll has been dealing with Linux desktop compatibility.
I wanted to avoid building an application that only worked on one desktop environment.
For the Wayland implementation, I moved toward native C# integration with XDG Desktop Portals through D-Bus.
CapScroll uses:
-
org.freedesktop.portal.Screenshotfor screenshot requests. -
org.freedesktop.portal.RemoteDesktopfor remote input functionality. -
ydotoolas an input fallback where needed.
This also meant moving away from depending on multiple external screenshot utilities and their individual command-line interfaces.
It has been a good learning experience working with D-Bus, desktop portals, input simulation, and the differences between Linux desktop environments.
Getting CapScroll
CapScroll is open source and available on GitHub.
You can find the source code, releases, installation packages, and documentation here:
Available release formats include:
- DEB
- RPM
- AppImage
- TAR.GZ
If you're using Linux and need to capture long, scrollable content, give it a try.
Feedback, bug reports, and contributions are welcome.
Thanks for reading!



Top comments (0)