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]

Modules

  • ScreenshotToClipboard

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
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
Maintainer cdep.illabout@gmail.com
Category Utils
Home page https://github.com/cdepillabout/screenshot-to-clipboard
Bug tracker https://github.com/cdepillabout/screenshot-to-clipboard/issues
Uploaded by cdepillabout at 2022-06-04T17:45:55Z
Distributions NixOS:0.1.0.0
Executables screenshot-to-clipboard
Downloads 77 total (5 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-0.1.0.0

[back to package description]

screenshot-to-clipboard

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.

Installation

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

$ git clone git@github.com:cdepillabout/screenshot-to-clipboard
$ 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.

Usage

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.