resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

How to save screenshots to a specific directory #375

Closed sathishmanohar closed 9 months ago

sathishmanohar commented 9 months ago

I currently have my print screen key mapped to scrot -z. The screenshot files are created under the home directory. I want to specify the screenshots directory so that the files are created under ~/Screenshots/ How to specify target directory like that? I couldn't figure it out from the help command.

N-R-K commented 9 months ago

scrot accepts filename as argument. So scrot ~/Screenshot/shot.png would work. If you want a timestamp of each screenshot then something like scrot ~/Screenshot/%F_%T.png would work.

Consult the scrot manpage for further details.