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
  • 41,240
  • 22
  • 121
  • 214
ft18
  • 431
  • 2
  • 5
  • 16
  • 1
    @DKBose I read your post and I was able to learn how to do it, thank you so much. – ft18 Oct 30 '18 at 04:13
  • @DKBose I did it but I just check and although the shot is stored in my pictures folder as a png file, a duplicate appears in my home folder, so now I have 2 screenshots... may be I didn't erase all the lines I should erase? – ft18 Oct 30 '18 at 04:22
  • the home folder file is named "2018-10-30-052005_1024x768_scrot.png" and the one in my pictures folder is named 20181030052005.png I thik I didn't make it worked as desired... – ft18 Oct 30 '18 at 04:24
  • I'll check the file again and try to erase the lines causing the duplicate order, if I am not able to do it, I'll let you know and post it in pastebin, thanks again... – ft18 Oct 30 '18 at 04:28
  • 1
    I put it in pastebin, I think is just as you suggested in your post but let me know when you take a look at it... https://pastebin.com/Cw261x5w – ft18 Oct 30 '18 at 04:37
  • If I remove those lines no screen shot, so, I put my back up file again in place, I don't know why but didn't work... Thank you so much anyway... – ft18 Oct 31 '18 at 03:44

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
  • 1
  • 7