reworked launchpad integration a bit

pull/2/merge
HW 13 years ago
parent 1af5ce3d04
commit 944c310016

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

@ -1,8 +1,14 @@
#!/bin/sh
echo unlock > /proc/keypad echo unlock > /proc/keypad
echo unlock > /proc/fiveway echo unlock > /proc/fiveway
cd /mnt/us/test/ cd /mnt/us/test/
cat /dev/fb0 > screen.fb0 & cat /dev/fb0 > /tmp/screen.fb0 &
pdf=`lsof | grep /mnt/us/documents | cut -c81- | sort -u` if [ "x$1" == "x" ] ; then
pdf=`lsof | grep /mnt/us/documents | cut -c81- | sort -u`
else
pdf="$1"
fi
./reader.lua "$pdf" ./reader.lua "$pdf"
cat screen.fb0 > /dev/fb0 cat /tmp/screen.fb0 > /dev/fb0
rm /tmp/screen.fb0
echo 1 > /proc/eink_fb/update_display echo 1 > /proc/eink_fb/update_display

Loading…
Cancel
Save