I use this command 'screenshot' to create an on demand screenshot - currently running it using a terminal command. I'm using a raspberry pi 5 on bookworm, X11 user interface, rather than wayland.
I've used an alias to simplify the invocation of the command, I pull the date/time and put that in the filename too so that I don't have to think of unique file names.
How can I bind this command to the print screen key?
Is it worth loading up Peas to suppress the warnings?
Can I optimise the command to be more elegant?
Code:
kevin@rassilon:~$ alias screenshotalias screenshot=' sleep 5;NOW=`date +"%Y_%m_%d_%H%M.%S_%Z"`;slurp | grim -g - ~/Pictures/snip_$NOW.png ; eom ~/Pictures/snip_$NOW.png'kevin@rassilon:~$ screenshot (eom:15875): EOM-WARNING **: 14:18:59.544: Error loading Peas typelib: Typelib file for namespace 'Peas', version '1.0' not found(eom:15875): EOM-WARNING **: 14:18:59.544: Error loading PeasGtk typelib: Typelib file for namespace 'PeasGtk', version '1.0' not foundHow can I bind this command to the print screen key?
Is it worth loading up Peas to suppress the warnings?
Can I optimise the command to be more elegant?
Statistics: Posted by KomodoKryptoniteKit — Tue Aug 13, 2024 1:34 pm — Replies 0 — Views 12