Last active
August 25, 2019 10:27
-
-
Save Naohiro2g/be8461eb4573732292f79855ad686278 to your computer and use it in GitHub Desktop.
This script changes the keybinding for scrot to raspi2png.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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