ShareShortcuts
Bifurcar “Brightness ☆”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que te55eract reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
12K
Guardado
0
Acciones
55
Categoría
Utilities
Versión
1.0
Idioma
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)

Novedades

Versión 1.0

First release

Historial de versiones
1.0 5 de ago. de 2025

First release

Qué hace

55 acciones
  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…

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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. 


*/
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de te55eract

Ver todo

También te puede gustar

Ver todo
Publicidad