Roger / escrotum

Linux screen capture using pygtk, inspired by scrot
GNU General Public License v3.0
214 stars 23 forks source link

Save file even if clipboard option is specified #40

Closed fnune closed 6 years ago

fnune commented 7 years ago

Hi there! Awesome tool.

With scrot and the -e option I was able to take a screenshot, save the file and also copy it to the cliboard like this:

scrot -s 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/Pictures/screenshots && mv $f ~/Pictures/screenshots && xclip -selection clipboard -t image/png -i ~/Pictures/screenshots/`ls -1 -t ~/Pictures/screenshots | head -1`'

I would like to do the same with escrotum but I can't because there's no -e option (althought there's some code for it in main.py?) and because specifying -C stops the program from saving the file.

These changes make it so that specifying -C will also save the file anyway, I think this is better functionality. Maybe we could add another flag for it?

Roger commented 6 years ago

The -e option exists and works, are you sure you tried with the correct version?

These changes make it so that specifying -C will also save the file anyway, I think this is better functionality. Maybe we could add another flag for it?

What about also saving to a file only if a filename is specified?

# ie.
escrotum -C -s filename.png
fnune commented 6 years ago

The escrotum -C -s filename.png option sounds great, as long as it also uses the clipboard.