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

    Applescript to run Darkroom since no shortcut?

    Scheduled Pinned Locked Moved macOS
    2 Posts 2 Posters 2.0k Views 3 Watching
    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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors