This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add screenshots with PrintScreen key

  • imagemagick
    sudo apt-get updatesudo apt-get install imagemagick

Step 1: create shell script for making screenshots
First of all you will need to create a file with name for example in /usr/local/bin/ directory. It should contain next lines:
DATE=`date +%Y-%m-%d\ %H:%M:%S`
import -window root "$HOME/Desktop/screenshot $DATE.png"

Step 2: make script executable
$ sudo chmod a+x /usr/local/bin/

Step 3: Make openbox run this script on pressing PrintScreen key
Edit file ~/.config/openbox/lxde-rc.xml and make sure to append there the following in the <keyboard> section:
<keybind key="Print">
<action name="Execute">

Now either relogin to load the new configuration or type:
$ openbox --reconfigure

Forum Jump:

Users browsing this thread: 1 Guest(s)