screenshot-to-clipboard: Take screenshot and copy it to the system clipboard.

[ bsd3, library, program, utils ] [ Propose Tags ]

This is a small program that shells out to imagemagick to take a screenshot, and then uses GTK to copy it to the system clipboard.

[Skip to Readme]


  • ScreenshotToClipboard


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Change log
Dependencies base (>=4.15 && <5), bytestring, filepath, gi-gdk, gi-gdkpixbuf, gi-gio, gi-glib, gi-gtk, haskell-gi-base, process, screenshot-to-clipboard, temporary, text [details]
License BSD-3-Clause
Copyright 2022 Dennis Gosnell
Author Dennis Gosnell
Category Utils
Home page
Bug tracker
Uploaded by cdepillabout at 2022-06-04T17:45:55Z
Distributions NixOS:
Executables screenshot-to-clipboard
Downloads 69 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2022-06-04 [all 2 reports]

Readme for screenshot-to-clipboard-

[back to package description]


CI Hackage Stackage LTS Stackage Nightly BSD3 license

This program provides a simple way to take a screenshot and copy it to your system clipboard.

When you run screenshot-to-clipboard, it internally runs the import program from ImageMagick to take a screenshot, and then uses GTK to copy that screenshot to your system clipboard.


The recommended installation procedure is to use Nix. With Nix installed, just do:

$ git clone
$ cd screenshot-to-clipboard/
$ nix-build

You can run this program with the output result/bin/screenshot-to-clipboard program.

screenshot-to-clipboard is also available in Nixpkgs, starting with NixOS-22.11 as haskellPackages.screenshot-to-clipboard.

It is also possible to build with cabal (or stack), but you are responsible for installing necessary system libraries. You'll likely need both imagemagick, and the development packages for GTK.


If you run screenshot-to-clipboard, it will turn your cursor into a cross-hair. Click and drag to select a portion of the screen to take a screenshot. This screenshot will be copied to your system clipboard. You can paste it into another application.

screenshot-to-clipboard will continue running until you've copied something else into your system clipboard. See the long comment in src/ScreenshotToClipboard.hs for why this is necessary.