View Single Post
Old 06-02-2024, 07:07 AM   #37
dom
THEDOM
dom began at the beginning.
 
dom's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra Color
Quote:
Originally Posted by DNSB View Post
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
#
This still works fine on a Kobo Libra Colour with the latest firmware (4.39.22861).
dom is offline   Reply With Quote