ShareShortcuts
Bifurcar “I.B.L.O.S”

¿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 shortgram 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
63K
Guardado
1
Acciones
27
Categoría
Utilities
Versión
1.0
Idioma
EN

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

Novedades

Versión 1.0

First release

Historial de versiones
1.0 10 de jun. de 2020

First release

Qué hace

27 acciones
  1. Comment
    This gets the device model
  2. Get Device Details
  3. Set Variable
    DeviceModel
  4. Comment
    This gets the device battery level
  5. Get Battery Level
  6. Set Variable
    BatteryLevel
  7. Comment
    Yes or No if your device is charging
  8. Battery Status
    com.alexhay.ToolboxProForShortcuts
  9. Set Variable
    BatteryStatus
  10. If
  11. If
  12. Show Notification
    Plug in your device soon!
  13. Comment
    If your device is iPhone it will just run low power mode
  14. If
  15. Set Low Power Mode
  16. If
  17. Comment
    If your device is anything but iPhone it will turn Bluetooth off, turn of Wi-Fi, Turn reduce motion on, set brightness to 10%
  18. Set Bluetooth
  19. Set Wi-Fi
  20. Comment
    Turning reduce motion on might help or not To get to reduce motion go to: Setting -> Accessibility -> Motion (This is on iPad mini)
  21. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  22. Set Brightness
  23. If
  24. Set Bluetooth
  25. Set Wi-Fi
  26. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  27. Set Brightness

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.

#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)
	}
}
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 shortgram

Ver todo

También te puede gustar

Ver todo
Publicidad