open reader using shift+P+P from Kindle's pdf viewer using launchpad

lsof is used to find path of current opened pdf
pull/2/merge
Dobrica Pavlinusic 13 years ago
parent 04087c072f
commit aa55dca677

@ -0,0 +1,2 @@
[Actions]
P P = !/mnt/us/launchpad/kpdf.sh

@ -0,0 +1,8 @@
echo unlock > /proc/keypad
echo unlock > /proc/fiveway
cd /mnt/us/test/
cat /dev/fb0 > screen.fb0 &
pdf=`lsof | grep /mnt/us/documents | cut -c81- | sort -u`
./reader.lua "$pdf"
cat screen.fb0 > /dev/fb0
echo 1 > /proc/eink_fb/update_display
Loading…
Cancel
Save