Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 867 Bytes

bin.md

File metadata and controls

50 lines (30 loc) · 867 Bytes

lqth is a simple screenshot utility for X11. It writes thae image in a Farbfeld format to the stdout.

Build and install

cargo build -r
  cp target/release/lqth /usr/bin

Dependencies

  • libX11

Optional dependencies

Usage examples

Take a screenshot for the full screen

lqth > screen.ff

Take a screenshot of the active window

lqth -w $(xdotool getactivewindow) | ff2png > window.png

Take a screenshot of a specific region

lqth -r "$(xrectsel "x:%x,y:%y,w:%w,h:%h")" | ff2png > region.png

Take a screenshot of a specific region and copy it into the system clipboard

lqth -r $(xrectsel "x:%x,y:%y,w:%w,h:%h") | ff2png | xclip -sel clip -t image/png -i

Yep is just simple as that :)