1

I am currently using Lubuntu 18.04.

When I press Impr-Pant in my keyboard the png archive generated is stored directly in my home folder.

My question is:

Can I configure Print-screen key order to be stored in my pictures folder?

I don't want to install anything like shutter or another programs, I just want to store my print-scr captures in my pictures folder.

Thanks in advance

DK Bose
  • 44,553
ft18
  • 451

1 Answers1

1

The keybindings for "Print" key at

line no. 503

<keybind key="Print">
  <action name="Execute">
    <command>lxsession-default screenshot</command>
  </action>
</keybind>

and at line no. 508

<keybind key="Print">        # Immediate scrot of active window
  <action name="Execute"><command>sh -c 'scrot -u /home/j18/Pictures/"$(date +%Y%m%d%H%M%S)".png'</command></action>
</keybind>

are causing duplicate screenshots.

Just remove the one at 503 and screenshots won't show up in your home folder.

Also, you could remove the "sh -c"

<command> scrot -u ~/Pictures/"$(date +%Y%m%d%H%M%S)".png<command> 

will work just fine.

For the changes to have the effect restart the session or run

openbox --reconfigure
dope
  • 128