View Single Post
Old 03-14-2023, 01:32 PM   #35
fogice
Addict
fogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 262
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
Interesting. A while back in 2020, the following was posted:

Code:
#
menu_item :main :Screensaver Status :cmd_output :500:quiet:test -e /mnt/onboard/.kobo/screensaver_old
      chain_success  : dbg_toast :Screensaver is off
      chain_failure  : dbg_toast :Screensaver is on
#
menu_item :main :Toggle 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
#
The assumption was made that anyone who wanted to use this would have created the screensaver directory so no error checking was done for a missing screensaver directory.
Thanks for that code! I didn't like the 'off/on' terminology, so I changed the outputs to "Cover Art Mode" and "Wallpaper Mode".
fogice is offline   Reply With Quote