#screenshot #capture #xscreenshot

bin+lib lqth

Simple but blazingly fast screenshot utility

6 releases

0.2.2 Mar 1, 2024
0.2.1 Jan 18, 2024
0.1.3 Dec 14, 2023

#962 in Command line utilities

Download history 6/week @ 2024-01-12 1/week @ 2024-01-19 13/week @ 2024-02-23 124/week @ 2024-03-01 59/week @ 2024-03-08 18/week @ 2024-03-15 37/week @ 2024-03-29 7/week @ 2024-04-05

65 downloads per month

MIT license

445KB
346 lines

Lqth logo

Lqth (لقطه) which means "shot" or/and "capture" in Arabic is a simple but blazingly fast screenshot utility inspired by xscreenshot and follows the suckless philosophy...(AHM, ahmmmm)... most of it :).

crates.io docs.rs downloads license

Examples

The boring way:

use lqth::*;

let tick = TickTick {
   dpy_addr: DpyAddr::Current,
   win: Window::Root(0),
   mode: Mode::Full,
};

let mut buf = Vec::new();
tick.tick(&mut buf).unwrap();

Just take a screenshot for the full screen!

use lqth::LqthConfig;
let mut out = std::io::stdout().lock();
// ok!
().tick(&mut out).unwrap();

The binary?

Nah, am a norme person and I don't wanna write code in this language to JUST TAKE A SCREENSHOT, can you give me a JW solution?

We offer a simple binary that's implement the most of this crate features. You can build it with the build command or if u use cargo then you can install it via cargo install lqth.

[!Note] for more information about the binary and how to use it, you can run lqth -h or see this document.

Wayland?

Nah, I luv my X.

Contributing

I'm happy to accept any contributions, just consider reading the CONTRIBUTING.md guide first. to avoid waste waste our time on some unnecessary things.

the main keywords are: signed commits, conventional commits, no emojis, linear history, the PR shouldn't have more than tree commits most of the time

License

This project is licensed under MIT license.

Dependencies graph

deps graph

Generated with cargo-depgraph

Current version: 0.2.1

Dependencies

~0.7–1.2MB
~27K SLoC