Created
April 8, 2024 18:20
-
-
Save narfdotpl/e4d808ec1049590dd67fd51d5fc9c588 to your computer and use it in GitHub Desktop.
Hammerspoon: switch between light and dark mode based on the ambient light sensor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hs.execute("open shortcuts://run-shortcut?name=" .. (hs.brightness.ambient() > 80 and "light" or "dark")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment