Project

General

Profile

Feature #545

Updated by Daniel Curtis over 8 years ago

Taking screenshots is one of the functions every desktop computer must have; for troubleshooting, taking game screenshots, or even taking a snapshot of a web blog post before a moderator pulls it. I use Arch with LXDE for my main work desktop, and it lacks a print screen hot key function natively. This is how I added is to my desktop. 

 * Ensure ImageMagick is installed 
 <pre> 
 sudo pacman -S ImageMagick 
 </pre> 

 * Install "yaourt":https://project.altservice.com/issues/509 

 * Install obkey from the AUR using yaourt: 
 <pre> 
 yaourt obkey 
 </pre> 

 * Open the LXDE config with obkey: 
 <pre> 
 obkey ~/.config/openbox/lxde-rc.xml 
 </pre> 

 * Then *Insert a New Sibling Keybind* 

 * Select the newly created key, it will prompt *New Accelerator...* 

 * Press the key combination to the screenshot, in my case it was *Fn + F11* 

 * Associate the new key combo with an action, by going to the action pane and clicking *Insert Action -> Execute* 

 * In the command text box add the following: 
 <pre> 
 sh -c "import -window root ~/Pictures/$(date '+%Y%m%d-%H%M%S').png" 
 </pre> 

 * Click on the *Save* icon and exit. 

 Now when the screenshot icon is pressed a timestamped PNG of the current active windows will be saved in the Pictures directory in the home folder.

Back