Skip to content

Instantly share code, notes, and snippets.

@Naohiro2g
Last active August 25, 2019 10:27
Show Gist options
  • Save Naohiro2g/be8461eb4573732292f79855ad686278 to your computer and use it in GitHub Desktop.
Save Naohiro2g/be8461eb4573732292f79855ad686278 to your computer and use it in GitHub Desktop.
This script changes the keybinding for scrot to raspi2png.
echo '#!/bin/sh' >/home/pi/r2p.sh
echo >>/home/pi/r2p.sh
echo '/home/pi/raspi2png-master/raspi2png --pngname /home/pi/Pictures/$(date +snapshot-%Y%m%d-%H%M%S.png)' >>/home/pi/r2p.sh
sed -i.bak 's/scrot/sh \/home\/pi\/r2p.sh/g' /home/pi/.config/openbox/lxde-pi-rc.xml
openbox --reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment