Peppermint OS Community Forum

Resources => Official Tutorials => Topic started by: PCNetSpec on July 28, 2014, 10:03:15 am

Title: Peppermint 5 - Screenshots saved on desktop from PrtSC key.
Post by: PCNetSpec on July 28, 2014, 10:03:15 am
Do you want the PrtSC (print screen) key to save a screenshot to your desktop automatically instead of your home folder .. with a name that includes the time and date ?

Do you want Alt+PrtSc to save a screenshot of just the currently active window to your desktop automatically instead of your home folder .. with a more meaningful name that includes the date and time ?

Here's how

First let's backup the current xbindkeys.conf file .. open a terminal and run:
Code: [Select]
cp -v ~/.config/peppermint-control-center/xbindkeys.conf ~/.config/peppermint-control-center/xbindkeys.conf.bak

Now open xbindkeys.conf for editing .. run:
Code: [Select]
gedit ~/.config/peppermint-control-center/xbindkeys.conf

Find the 2 sections:-

Code: [Select]
"scrot"
   Print

"scrot -u -b"
   Alt + Print

and change them to:-

Code: [Select]
#Print Screen
"scrot 'Screenshot_%Y-%m-%d_%H:%M:%S.png' -e 'mv $f ~/Desktop/'"
   Print

#Print Window
"scrot -u -b 'Windowshot_%Y-%m-%d_%H:%M:%S.png' -e 'mv $f ~/Desktop/'"
   Alt + Print

SAVE the file, and LOG OFF/ON

Now test.

Hitting PrtSc should leave a full desktop screenshot on your desktop with a name like
Screenshot_2014-07-28_14:55:40.png

Hitting Alt+PrtSc should leave a screenshot of just the active window on your desktop with a name like
Windowshot_2014-07-28_14:57:07.png



If you have any problems with this tutorial, please start a topic in the main forum and we'll try to assist :)