# Menu button customization
experimental :menu_main_15505_0_enabled: 1
experimental :menu_main_15505_1_label: Books
experimental :menu_main_15505_2_enabled: 1
experimental :menu_main_15505_2_label: Stats
experimental :menu_main_15505_3_enabled: 0 
experimental :menu_main_15505_3_label: Notes
experimental :menu_main_15505_4_enabled: 0
experimental :menu_main_15505_5_enabled: 1
experimental :menu_main_15505_default: 1
experimental :menu_main_15505_enabled: 1

# The main NickelMenu item is now called Tweak
experimental :menu_main_15505_label :Tweak
experimental :menu_main_15505_icon :/mnt/onboard/.adds/nm/.cog.png

menu_item :main :Screensaver :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo/screensaver_old
      chain_failure : skip : 3
      chain_success : cmd_spawn : quiet: mv /mnt/onboard/.kobo/screensaver_old /mnt/onboard/.kobo/screensaver
      chain_success : dbg_toast : screensaver on
      chain_always : skip : -1
      chain_failure : cmd_spawn : quiet: mv /mnt/onboard/.kobo/screensaver /mnt/onboard/.kobo/screensaver_old
      chain_success : dbg_toast : screensaver off

menu_item :main :Screenshots        :nickel_setting     :toggle :screenshots
menu_item :main :Auto USB           :nickel_setting     :toggle :auto_usb_gadget

# With the notebook feature disabled, this toggle is no longer required
# menu_item :main :Hide Notebook    :cmd_output :500 :/mnt/onboard/.adds/scripts/disable_notebook.sh
    chain_success :power :reboot

menu_item :main :Toggle Legibility    :cmd_output :500 :/mnt/onboard/.adds/scripts/toggle_wk_rendering.sh
    chain_success :power :reboot

menu_item :main    :IP Address      :cmd_output         :500:/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'

menu_item :main :Invert & Reboot    :nickel_setting :toggle: invert
    chain_success :power :reboot
menu_item :main :Sleep              :power              :sleep
menu_item :main :Reboot             :power              :reboot

menu_item :reader :Dark Mode        :nickel_setting     :toggle :dark_mode
