Install screen capture tool on Debian 7 Wheezy with LXDE desktop

  • Install scrot:
    sudo apt-get install scrot giblib
  • Bind PrtScn key with the scrot command by adding following into ~/.config/openbox/lxde-rc.xml:
      <!-- Screen Capture -->
      <keybind key="Print">
          <action name="Execute">
              <command>sh -c "scrot -u -d 3 ~/Desktop/screenshot-$(date +%Y%m%d%H%M%S).png"</command>
          </action>
      </keybind>
    
  • Reload lxde configuration:
    openbox --reconfigure
  • You can then try hit PrtScn key to capture the current active window.

See also

No comments:

Post a Comment