f.lux f.lux forum
    • Recent
    • Popular
    • Register
    • Login

    Applescript to run Darkroom since no shortcut?

    macOS
    2
    2
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      boddicker
      last edited by

      Does anybody have an Applescript they're willing to share that can enable dark room? I'd like to create a Hazel rule that automatically runs the Applescript at a certain time so that my screen automatically enters Darkroom mode at night.

      V 1 Reply Last reply Reply Quote 0
      • V
        vaporstack @boddicker
        last edited by vaporstack

        @boddicker This is quite slow but appears to work:

        -- toggle flux darkroom mode
        tell application "System Events" to tell process "Flux"
        tell menu bar item 1 of menu bar 1
        click
        click menu item "Color Effects" of menu 1
        tell menu item "Color Effects" of menu 1
        click menu item "Darkroom" of menu 1
        end tell
        end tell
        end tell

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors