View Single Post
Old 07-10-2016, 11:47 AM   #1
homeceo43
Connoisseur
homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.homeceo43 will give the Devil his due.
 
Posts: 63
Karma: 77988
Join Date: Jul 2016
Location: Texas
Device: Boox Palma
Trying to run Aeris' Kindle Menu without KUAL on Kindle Oasis

Hi Everyone,

KUAL does not work on jailbroken Kindle Oasis.

knc1 asked if I could try the Kindle Menu. However, it does not work without KUAL.

knc1 is very kind to take the time and patience to point me in the right direction on how to get Kindle Menu to run without KUAL. Please see this post: https://www.mobileread.com/forums/sho...&postcount=338 (and I thank you knc1) however I do not know how to write/read scripts or commands he mentioned.

Aeris' Kindle Menu here: https://www.mobileread.com/forums/sho...d.php?t=225860 and also here https://github.com/AerisDev/KindleMenu.


I looked through all of the files as he suggested I think this is the script,

Spoiler:
shortcut.sh

Code:
#!/bin/sh
SCRIPT=`cat << 'JAVASCRIPT' | tr -d '\n' | sed -e 's,",\\\\",g'
(function () {

  var swiped = false;

  document.body.addEventListener("mousedown", function () {
    swiped = true;
  });
  document.body.addEventListener("mouseup", function () {
    swiped = false;
  });

  document.body.addEventListener("mouseout", function () {
    if (swiped) {
      swiped = false;
nativeBridge.setLipcProperty( "com.lab126.system", "sendEvent", "; sh -c 'DISPLAY=:0 /mnt/us/extensions/kindlemenu/bin/kindlemenu.sh'");
    }
  });
})();
`

MESSAGE='{
  "__id__":   "0",
  "pillowId": "default_status_bar",
  "replySrc": "",
  "function": "'${SCRIPT}'"
}'

lipc-set-prop -s com.lab126.pillow interrogatePillow "$MESSAGE"


There is also this file:

Spoiler:
disable_shortcut.sh

Code:
#!/bin/sh
lipc-set-prop com.lab126.pillow disableEnablePillow disable
lipc-set-prop com.lab126.pillow disableEnablePillow enable



I have no experience in writing/modifying scripts and I'm not sure if these are the relevant files.

Let me know if I can provide more information.

I'm not a developer and I think it is amazing what you all do here.

Your expertise is very appreciated, and I thank you.
homeceo43 is offline   Reply With Quote