Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

How to set a new key combination to take screenhot?

no-262 au-03

Preliminary for this article

In this tutorial we’ll work with scrot to take a screenshot and use gedit to modify text file. You have to install these two program.

Please use below commands to install Gedit, if you don’t have:

sudo apt-get update
sudo apt-get install

Please see also the articles about Gedit at RASP Library.

Please use below commands to install scrot, if you don’t have:

sudo apt-get update
sudo apt-get install scrot

Please see also the articles about scrot at RASP Library.

Now, you’re ready to set new key combination to take screenshot.

Set new key combination

In this seciton, we’ll set new key combinaton to take a screenshot. We want to take a screenshot using CTRL + F12. Please follow below instructions:

  1. Enter below command to open lxde-pi-rc.xml using Gedit text editor.

sudo gedit /etc/xdg/openbox/lxde-pi-rc.xml

  1. Find the line “Keybindings for running applications
  2. Type below lines

<keybind key=”C-F12″>
      <action name=”Execute”>
         <command>scrot</command>
      </action>
</keybind>

3. Save the file.
4. Exit

Please reboot the Raspberry Pi.

After reboot, when you press CTRL + F12, it takes a screenshot. You can find the screenshot under /home/pi directory.

Zurück What is Snapcraft?
Weiter What is Flatpak?
Inhaltsverzeichnis