Skip to content

Instantly share code, notes, and snippets.

View bozdag's full-sized avatar

Selcuk Bozdag bozdag

  • Turkey
View GitHub Profile
@bozdag
bozdag / taking screenshot in linux with C
Last active February 7, 2021 14:14
This C program takes the whole screenshot of the root window for a given display and saves it in PNG file format.
/*
Grabs a screenshot of the root window.
Usage : ./scr_tool <display> <output file>
Example : ./scr_tool :0 /path/to/output.png
Author: S Bozdag <[email protected]>
*/