Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • Selectable area screenshot on Trixie

$
0
0
If anybody is missing the ability to screenshot an area of the screen instead of the whole thing, I found a way to fix it in Trixie based on previous posts for bookworm that didn't seem to be viable any longer. I swear, the Pi engineers have fun hiding the screenshot configuration between every new release :D

First create a script to do the screenshot. This step should not be necessary, but putting the command directly into the labwc config did not work for me. Probably some syntax that need escaping that someone here can help with. I did a /home/myuser/screenshot.sh with the following:

Code:

#!/bin/shslurp | grim -g -
Make it executable with

Code:

chmod +x /home/myuser/screenshot.sh
Try it out running it by hand just to make sure it works. It should allow you to mark an area with the mouse and then create a screenshot of that area in your Pictures folder.

Then, edit /etc/xdg/labwc/rc.xml (finding that file was some challenge) to have it call the script when you press the PrtScn key. Change the following section:

Code:

    <keybind key="Print">      <action name="Execute">        <command>/home/myuser/screenshot.sh</command>      </action>
You need to do something clever to activate it. I just rebooted.

Statistics: Posted by ljorg — Thu Jan 01, 2026 11:15 am



Viewing all articles
Browse latest Browse all 3546

Trending Articles