The Filters shortcut filters out blue light which is a high-energy, short-wavelength of visible light which can be harmful for the eyes.
What's New
Version 1.0
First release
What it does
28 actions-
Choose from MenuAre you sure you want to turn Filters on?
-
Choose from MenuTurn on
-
Get Current Focus
-
Get Name
-
If
-
Show NotificationFilters could not be turned on because Ultra Low Power Mode is active
-
Nothing
-
If
-
Get Current Song
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Volume
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Choose from MenuCancel
-
If
-
Stop This Shortcut
-
If
-
Get Current Song
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Set Volume
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
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/settings'
#define color red
#define glyph handSlashOutline
menu "Are you sure you want to turn Filters on?" {
item "Turn on":
const CurrentFocus = getFocusMode()
const Name = getName(CurrentFocus)
if Name == "Ultra Low Power Mode" {
showNotification("Filters could not be turned on because Ultra Low Power Mode is active", Name)
} else {
const CurrentSong = getCurrentSong()
if CurrentSong {
toggleWhitePoint()
toggleColorFilters()
} else {
toggleWhitePoint()
setVolume(0.07742782)
toggleColorFilters()
}
}
item "Cancel":
if Name == "Ultra Low Power Mode" {
stop()
} else {
const CurrentSong1 = getCurrentSong()
if CurrentSong1 {
toggleWhitePoint()
toggleColorFilters()
} else {
setVolume(0.2506562)
toggleWhitePoint()
toggleColorFilters()
}
}
}
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