How to Configure Screenshot Key Bindings in FunOS

Taking screenshots in FunOS can be streamlined by configuring custom key bindings. By following this tutorial, you will be able to:

  • Take a full-screen screenshot by pressing the PrtSc button, which will automatically save the image in the Pictures directory in your home folder.
  • Capture a screenshot of the active window by pressing Alt + PrtSc, and the image will also be saved automatically in the Pictures directory.

This tutorial uses the JWM (Joe’s Window Manager) key bindings configuration file to achieve this.

Step-by-Step Guide:

1. Open Terminal

To start, launch a terminal window in FunOS by pressing Ctrl + Alt + T or clicking Menu > Terminal.

2. Edit the JWM Key Bindings Configuration

To edit the JWM key bindings file, use a text editor such as Mousepad. Run the following command to open the key bindings configuration file:

mousepad ~/.config/jwm/keys

3. Add Key Bindings for Screenshots

Once the file is open, add the following lines to configure the PrtSc and Alt + PrtSc key combinations for capturing screenshots:

<Key key="Print">exec:gnome-screenshot</Key>
<Key mask="A" key="Print">exec:gnome-screenshot -w</Key>
  • The first line configures the PrtSc key to take a full-screen screenshot.
  • The second line configures the Alt + PrtSc key combination to take a screenshot of the active window.

Your final keys file should look something like this:

<?xml version="1.0"?>
<JWM>

   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="A" key="Tab">next</Key>
   <Key mask="A" key="F4">close</Key>
   <Key mask="A" key="#">desktop#</Key>
   <Key mask="A" key="F1">root:1</Key>
   <Key mask="A" key="F2">window</Key>
   <Key mask="A" key="F10">maximize</Key>
   <Key mask="A" key="Right">rdesktop</Key>
   <Key mask="A" key="Left">ldesktop</Key>
   <Key mask="A" key="Up">udesktop</Key>
   <Key mask="A" key="Down">ddesktop</Key>
   <Key mask="CA" key="t">exec:lxterminal</Key>

   <!-- Screenshot key bindings -->
   <Key key="Print">exec:gnome-screenshot</Key>
   <Key mask="A" key="Print">exec:gnome-screenshot -w</Key>

</JWM>

This ensures that pressing the PrtSc key will take a full-screen screenshot, and pressing Alt + PrtSc will take a screenshot of the active window.

4. Save the File

After adding the key bindings, save the file by clicking File > Save or using the shortcut Ctrl + S.

5. Restart JWM

For the changes to take effect, you need to restart JWM. Run the following command in the terminal:

jwm -restart

This will reload the JWM configuration, including your new key bindings.

Conclusion

By following the steps in this tutorial, you have successfully configured key bindings in FunOS to take full-screen and active window screenshots with ease. You can now quickly capture screenshots by simply pressing PrtSc or Alt + PrtSc, with the images automatically saved in your ~/Pictures directory.

Enjoy capturing your screen effortlessly in FunOS!

Leave a Reply

Your email address will not be published. Required fields are marked *