The brilume shortcut is a multi functioning shortcut that can check your current volume and brightness or set brightness and volume to the desired increment 😮💨
What's New
Version 1.0
First release
What it does
40 actions-
Choose from MenuVolume or Brightness?
-
Choose from MenuVolume
-
Choose from MenuWhat increment do you want your volume to be at?
-
Choose from Menu50% Volume
-
Set Volume
-
Choose from Menu25% Volume
-
Set Volume
-
Choose from Menu100% Volume
-
Set Volume
-
Choose from Menu75% Volume
-
Set Volume
-
Choose from MenuCustom
-
Ask for InputEnter volume %
-
Set VariableVolumeInput
-
Calculate
-
Set Volume
-
Choose from MenuCheck volume
-
Get Device Details
-
Calculate
-
Round Number
-
Show Notification…% Volume 🔊
-
Choose from MenuBrightness
-
Choose from MenuWhat increment do you want your brightness to be at?
-
Choose from Menu50% Brightness
-
Set Brightness
-
Choose from Menu25% Brightness
-
Set Brightness
-
Choose from Menu100% Brightness
-
Set Brightness
-
Choose from Menu75% Brightness
-
Set Brightness
-
Choose from MenuCustom
-
Ask for InputEnter brightness %
-
Calculate
-
Set Brightness
-
Choose from MenuCheck brightness
-
Get Device Details
-
Calculate
-
Round Number
-
Show Notification…% Brightness💡
View as code
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 yellow
#define glyph lightningBolt
const VolumeInput = menu "Volume or Brightness?" {
item "Volume":
menu "What increment do you want your volume to be at?" {
item "50% Volume":
setVolume(nil)
item "25% Volume":
setVolume(0.24948817)
item "100% Volume":
setVolume(1)
item "75% Volume":
setVolume(0.7523775)
item "Custom":
prompt("Enter volume %", "Number")
@VolumeInput
const CalculationResult = @VolumeInput / 100
setVolume(CalculationResult)
item "Check volume":
const CurrentVolume = getDeviceDetail("Current Volume")
const CalculationResult1 = CurrentVolume * 100
round(CalculationResult1)
showNotification("{}% Volume 🔊")
}
item "Brightness":
menu "What increment do you want your brightness to be at?" {
item "50% Brightness":
setBrightness(nil)
item "25% Brightness":
setBrightness(0.2506562)
item "100% Brightness":
setBrightness(1)
item "75% Brightness":
setBrightness(0.7467192)
item "Custom":
const ProvidedInput = prompt("Enter brightness %", "Number")
const CalculationResult2 = ProvidedInput / 100
setBrightness(CalculationResult2)
item "Check brightness":
const CurrentBrightness = getDeviceDetail("Current Brightness")
const CalculationResult3 = CurrentBrightness * 100
round(CalculationResult3)
showNotification("{CalculationResult3}% 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 celebrity
You Might Also Like
Advertisement