mirror of https://github.com/koreader/koreader
open reader using shift+P+P from Kindle's pdf viewer using launchpad
lsof is used to find path of current opened pdfpull/2/merge
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…
Reference in New Issue