ShareShortcuts
Fork “Brightness ☆”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so te55eract gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
12K
Saved
0
Actions
55
Category
Utilities
Version
1.0
Language
EN

Displays a menu with options to adjust brightness


Displays menu with options to set brightness to a certain level. Displays current brightness and a menu including:

brightness presets, custom brightness, Invert colors, light/dark mode and links to settings: auto-lock, and display and text size (for resetting auto-brightness)

What's New

Version 1.0

First release

Version History
1.0 Aug 5, 2025

First release

What it does

55 actions
  1. Get Device Details
  2. Calculate
  3. Round Number
  4. Set Variable
    Brightness'
  5. Choose from Menu
    …% Brightness
  6. Choose from Menu
    +5%
  7. Calculate
  8. Set Brightness
  9. Choose from Menu
    -5%
  10. Calculate
  11. Set Brightness
  12. Choose from Menu
    100%
  13. Number
  14. Set Brightness
  15. Choose from Menu
    75%
  16. Number
  17. Set Brightness
  18. Choose from Menu
    50%
  19. Number
  20. Set Brightness
  21. Choose from Menu
    35%
  22. Number
  23. Set Brightness
  24. Choose from Menu
    25%
  25. Number
  26. Set Brightness
  27. Choose from Menu
    10%
  28. Number
  29. Set Brightness
  30. Choose from Menu
    3%
  31. Number
  32. Set Brightness
  33. Choose from Menu
    0%
  34. Number
  35. Set Brightness
  36. Choose from Menu
    Custom
  37. Ask for Input
    Brightness %
  38. Calculate
  39. Set Brightness
  40. Choose from Menu
    Smart Invert
  41. Toggle Smart Invert
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  42. Choose from Menu
    Classic Invert
  43. Toggle Classic Invert
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  44. Choose from Menu
    Dark/Light mode
  45. Set Appearance
  46. Choose from Menu
    Display & Text Size ⚙️
  47. URL
    prefs:root=ACCESSIBILITY&path=DISPLAY_AND_TEXT
  48. Open URLs
  49. Stop This Shortcut
  50. Choose from Menu
    Auto-Lock ⚙️
  51. URL
    prefs:root=DISPLAY&path=AUTOLOCK
  52. Open URLs
  53. Stop This Shortcut
  54. Run Shortcut
    Brightness ☆
  55. Comment
    V. 1.2 Moved current brightness from menu and into prompt title 2024.06.21 V. 1.2.1 Changed adjuster from 8% to 10% V. 1.2.2 Fixed incremenral brightness followed by preset bug by using "set variable" instead of "add to variable" for brightness valu…

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/settings'
#include 'actions/math'
#include 'actions/device'
#define color yellow
#define glyph sun

const CurrentBrightness = getDeviceDetail("Current Brightness")
const CalculationResult = CurrentBrightness * 100
ceil(CalculationResult, "Hundredths")
@Brightness

const MenuResult = menu "{@Brightness}% Brightness " {
item "+5%":
	const CalculationResult1 = CurrentBrightness + 0.05
	setBrightness(CalculationResult1)
item "-5%":
	const CalculationResult2 = CurrentBrightness - 0.05
	setBrightness(CalculationResult2)
item "100%":
	const Number = 1
	setBrightness(Number)
item "75%":
	const Number1 = 0.75
	setBrightness(Number1)
item "50%":
	const Number2 = 0.5
	setBrightness(Number2)
item "35%":
	const Number3 = 0.35
	setBrightness(Number3)
item "25%":
	const Number4 = 0.25
	setBrightness(Number4)
item "10%":
	const Number5 = 0.1
	setBrightness(Number5)
item "3%":
	const Number6 = 0.03
	setBrightness(Number6)
item "0%":
	const Number7 = 0
	setBrightness(Number7)
item "Custom":
	const ProvidedInput = prompt("Brightness %", "Number")
	const CalculationResult3 = ProvidedInput / 100
	setBrightness(CalculationResult3)
item "Smart Invert":
	toggleSmartInvert()
item "Classic Invert":
	toggleClassicInvert()
item "Dark/Light mode":
	darkMode()
item "Display & Text Size ⚙️":
	const URL = url("prefs:root=ACCESSIBILITY&path=DISPLAY_AND_TEXT")
	openURL(URL)
	stop()
item "Auto-Lock ⚙️":
	const URL1 = url("prefs:root=DISPLAY&path=AUTOLOCK")
	openURL(URL1)
	stop()
}
runSelf(MenuResult)
/*
V. 1.2
Moved current brightness from menu and into prompt title
2024.06.21
V. 1.2.1
Changed adjuster from 8% to 10%
V. 1.2.2
Fixed incremenral brightness followed by preset bug by using "set variable" instead of "add to variable" for brightness value. 
▸  Apparently when a shortcut launchesbitself it affects add to variable. 
V. 1.2.3
made 37.5% into 35% because "get current brightness" action rounds to ±5% (although set brightness accuratly sets small values. 


*/
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by te55eract

See All

You Might Also Like

See All
Advertisement