ShareShortcuts

Brightness 🔆

Turn up/down brightness

southerncountrybellegirl
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 southerncountrybellegirl 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
50K
Saved
0
Actions
32
Category
Utilities
Version
1.0
Language
EN

Turn up/down brightness

What's New

Version 1.0

First release

Version History
1.0 Jun 5, 2021

First release

What it does

32 actions
  1. Choose from Menu
  2. Choose from Menu
    0% Brightness
  3. Set Brightness
  4. Choose from Menu
    10% Brightness
  5. Set Brightness
  6. Choose from Menu
    20% Brightness
  7. Set Brightness
  8. Choose from Menu
    30% Brightness
  9. Set Brightness
  10. Choose from Menu
    40% Brightness
  11. Set Brightness
  12. Choose from Menu
    50% Brightness
  13. Set Brightness
  14. Choose from Menu
    60% Brightness
  15. Set Brightness
  16. Choose from Menu
    70% Brightness
  17. Set Brightness
  18. Choose from Menu
    80% Brightness
  19. Set Brightness
  20. Choose from Menu
    90% Brightness
  21. Set Brightness
  22. Choose from Menu
    100% Brightness
  23. Set Brightness
  24. Choose from Menu
    Custom
  25. Ask for Input
    Brightness %
  26. Calculate
  27. Set Brightness
  28. Choose from Menu
    Get Brightness
  29. Get Device Details
  30. Calculate
  31. Round Number
  32. Show Result

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/math'
#include 'actions/device'
#define color darkorange
#define glyph nightShift


menu nil {
item "0% Brightness":
	setBrightness(0)
item "10% Brightness":
	setBrightness(0.10122699)
item "20% Brightness":
	setBrightness(0.1993865)
item "30% Brightness":
	setBrightness(0.3006135)
item "40% Brightness":
	setBrightness(0.39570552)
item "50% Brightness":
	setBrightness(0.5030675)
item "60% Brightness":
	setBrightness(0.6042945)
item "70% Brightness":
	setBrightness(0.6993865)
item "80% Brightness":
	setBrightness(0.8006135)
item "90% Brightness":
	setBrightness(0.9018405)
item "100% Brightness":
	setBrightness(1)
item "Custom":
	const ProvidedInput = prompt("Brightness %", "Number")
	const CalculationResult = ProvidedInput / 100
	setBrightness(CalculationResult)
item "Get Brightness ":
	const CurrentBrightness = getDeviceDetail("Current Brightness")
	const CalculationResult1 = CurrentBrightness * 100
	ceil(CalculationResult1, "Hundredths")
	show("Brightness ={}%")
}
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 southerncountrybellegirl

See All

You Might Also Like

See All
Advertisement