View Single Post
Old 05-01-2020, 05:09 PM   #1
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,758
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
NickelMenu: An integrated launcher for Kobo eReaders

NickelMenu
The easiest way to launch custom scripts, change hidden settings, and run actions on Kobo eReaders.
___



NickelMenu adds custom actions the main, reader, browser, and library menus. It works on firmware 4.6+, and persists between firmware upgrades.

Installation:
  1. Connect your Kobo eReader to your computer over USB.
  2. Download KoboRoot.tgz (release notes) into KOBOeReader/.kobo. You may need to show hidden files to see the folder.
  3. Safely eject your eReader and wait for it to reboot.
  4. Ensure there is a new menu item in the top-left main menu entitled NickelMenu (it will appear in the bottom-right on firmware 4.23.15505+).
  5. Connect you Kobo eReader to your computer again and create a new file (of any type) named KOBOeReader/.adds/nm/config, and follow the instructions in KOBOeReader/.adds/nm/doc to configure NickelMenu.

Features:
  • A built-in failsafe will automatically remove NickelMenu if any fatal error occurs, and will never result in an unbootable Kobo. Non-fatal errors will appear as a menu item with more details.
  • Multi-version compatibility (even for future versions).
  • Can add items to the main, reader, browser, library, and selection menus.
  • Can use the currently selected text in selection menu actions, with optional transformations and escaping.
  • Many built-in actions:
    • Debug messages (dbg_syslog, dbg_error, dbg_msg, dbg_toast).
    • Nickel settings (nickel_setting:{toggle,enable,disable}:{invert,da rk_mode,lockscreen,screenshots,force_wifi,auto_usb _gadget}).
    • Nickel browser with support for showing as a pop-up (e.g. for a reference site while reading) and adding custom CSS (nickel_browser:{modal:,}<url>{ <css>,})
    • Nickel extras (nickel_extras:{unblock_it,sketch_pad,solitaire,su doku,word_scramble}).
    • Nickel views (nickel_open:{discover:storefront,discover:wishlis t,library:library,library:all,library:authors,libr ary:series,library:shelves,library:pocket,library: dropbox,reading_life:reading_life,reading_life:sta ts,reading_life:awards,reading_life:words,store:ov erdrive,store:search}).
    • Nickel WiFi (nickel_wifi:{autoconnect,autoconnect_silent,enabl e,disable,toggle}).
    • Nickel orientation, even on devices without a sensor (nickel_orientation:{portrait,landscape,inverted_p ortrait,inverted_landscape,invert,swap}).
    • Other Nickel stuff (nickel_misc:{home,force_usb_connection,rescan_boo ks,rescan_books_full}).
    • Gracefully exit Nickel (power:{shutdown,reboot,sleep})
    • Launch system commands and optionally display the output (cmd_spawn{,:quiet},cmd_output:timeout{,:quiet}).
    • KFMon (kfmon, kfmon_id).
  • The web_browser action has additional features such as opening a pop-up window, opening a custom URL instead of the homepage, or adding custom CSS styles to the webpages.
  • Action chaining (chain_{success,failure,always}).
  • Dynamically generated menu items (generator:kfmon).
  • Simple configuration format with support for multiple configuration files.
  • Configuration files and item generators will be updated instantly without a reboot.
  • Comprehensive logging to syslog (view over telnet or SSH with logread, or enable developer options and see the syslog files in KOBOeReader/.kobo).
  • No system files are ever touched directly, and no patching is required.

Troubleshooting/FAQ:
  • I don't see any menu items in the main menu
    Try re-installing NickelMenu. If it still doesn't appear, please reboot and post the contents of the syslog.
  • I rebooted, and NickelMenu suddenly disappeared
    You probably triggered the failsafe (if you rebooted within 20 seconds after first turning it on).
  • I want to uninstall NickelMenu
    Create a new file named KOBOeReader/.adds/nm/uninstall, then reboot your Kobo.
  • I want to update NickelMenu
    Follow the installation process again. Your configuration files will be preserved.
  • When I press one of the actions, I get an error message about dlsym
    Something has probably changed in your firmware version. Try updating NickelMenu, and if it still doesn't work, please post your current version and the action you are trying to use.
  • When I try to open a file in KOBOeReader/.adds/nm, I get asked what I want to open it with
    Open it with a text editor, for example, Notepad, Notepad++, or Visual Studio Code.
  • When I open a configuration file, everything is jumbled in one long line
    Open it with a different text editor which supports unix line breaks. If you are trying to view the documentation, it is also available online.
  • I need help writing a configuration file
    There is an example configuration file in the documentation. If you still need help, feel free to post in this thread.
  • I found a bug in NickelMenu
    Try re-installing NickelMenu. If that still doesn't work, please post your syslog, your configuration file, and a description of the issue in this thread or on GitHub.
  • I found a bug in Nickel (i.e. Kobo's reader itself)
    Before you report it, first reboot and confirm the issue is still reproducible without using any menu items.
  • I would like to request a new feature
    Please post it in this thread or open an issue on GitHub.
  • I receive an error message when trying to launch a KFMon action
    Make sure the launcher name you specified is correct. It should look like action.png or something similar. Also, make sure you have installed the latest version of KFMon and try re-installing NickelMenu.
  • How do I configure NickelMenu
    Read the instructions above again, and see the documentation.

Credits (initial version):
  • pgaskin (@pgaskin): Original idea, reverse engineering, implemented core functionality, implemented most actions.
  • sherman (@shermp): Implemented action chaining, tested everything, provided feedback and ideas.
  • NiLuJe (@NiLuJe): Implemented kfmon action, tested everything, provided feedback and ideas.
  • jackie_w (@jackiew1): Did some testing, provided feedback and ideas.

Contributors:
Screenshots:
See here.

Download | Website | Documentation | Source Code | Release Notes
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	12959
Size:	182.2 KB
ID:	185245   Click image for larger version

Name:	screen_002.png
Views:	10537
Size:	125.0 KB
ID:	185246   Click image for larger version

Name:	screen_004.png
Views:	9605
Size:	52.1 KB
ID:	185247   Click image for larger version

Name:	screen_005.png
Views:	8684
Size:	52.3 KB
ID:	185248   Click image for larger version

Name:	screen_011.png
Views:	9173
Size:	246.3 KB
ID:	185249  

Last edited by geek1011; 01-22-2022 at 12:53 AM. Reason: v0.5.4
geek1011 is offline   Reply With Quote