Quote:
Originally Posted by John F
This is what I did to toggle dark mode and set a light level:
Code:
menu_item :reader :Dark Mode On :nickel_setting :enable :dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 10
menu_item :reader :Dark Mode Off :nickel_setting :disable :dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 30
and it works.
I get 2 messages when I click on an entry. I tried getting rid of the messages by using ":quiet", but then the light level was set and I didn't get the messages, but dark mode was not turned on/off. How can I make these quiet?
Thank you.
|
Wow! It's what i want

Thank you!
Some edit for me:
menu_item :reader :Frontlight On :nickel_setting :disable:dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 18
menu_item :reader :Frontlight Off :nickel_setting :disable :dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 0
Ok, i don't need Dark Mode, but if it's the only possible option to simply turn on the frontklight to 18% and turn it off altogether, without using the slider, then so be it. Kobo Nia work fine