Internal
Battery
Level
Optimization
System
This is my go at a PowerSaver # I don’t suggest using this shortcut if you have iPadOS 15 or newer because the newer OS has it’s own low power mode
Nouveautés
Version 1.0
First release
Ce qu’il fait
27 actions-
CommentThis gets the device model
-
Get Device Details
-
Set VariableDeviceModel
-
CommentThis gets the device battery level
-
Get Battery Level
-
Set VariableBatteryLevel
-
CommentYes or No if your device is charging
-
Battery Statuscom.alexhay.ToolboxProForShortcuts
-
Set VariableBatteryStatus
-
If
-
If
-
Show NotificationPlug in your device soon!
-
CommentIf your device is iPhone it will just run low power mode
-
If
-
Set Low Power Mode
-
If
-
CommentIf your device is anything but iPhone it will turn Bluetooth off, turn of Wi-Fi, Turn reduce motion on, set brightness to 10%
-
Set Bluetooth
-
Set Wi-Fi
-
CommentTurning reduce motion on might help or not To get to reduce motion go to: Setting -> Accessibility -> Motion (This is on iPad mini)
-
Toggle Reduce Motioncom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Brightness
-
If
-
Set Bluetooth
-
Set Wi-Fi
-
Toggle Reduce Motioncom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Brightness
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#define mac false
#include 'actions/device'
#define glyph battery
// This gets the device model
getDeviceDetail("Device Model")
@DeviceModel
// This gets the device battery level
getBatteryLevel()
@BatteryLevel
// Yes or No if your device is charging
rawAction("com.alexhay.ToolboxProForShortcuts.BatteryStatusIntent", {
"batteryState": "isCharging"
})
@BatteryStatus
if @BatteryStatus contains "Yes" {
if @BatteryLevel <= 20 {
showNotification("Plug in your device soon!", @BatteryLevel)
// If your device is iPhone it will just run low power mode
if @DeviceModel contains "iPhone" {
setLowPowerMode(false)
} else {
// If your device is anything but iPhone it will turn Bluetooth off, turn of Wi-Fi, Turn reduce motion on, set brightness to 10%
setBluetooth(0)
setWifi(0)
/*
Turning reduce motion on might help or not
To get to reduce motion go to:
Setting -> Accessibility -> Motion
(This is on iPad mini)
*/
setReduceMotion(1)
setBrightness(0.10381356)
}
} else {
setBluetooth(false)
setWifi(false)
toggleReduceMotion()
setBrightness(nil)
}
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de shortgram
Ça pourrait aussi te plaire
Publicité