ShareShortcuts
Fazer fork de “I.B.L.O.S”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que shortgram receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
63K
Salvo
1
Ações
27
Categoria
Utilities
Versão
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

Novidades

Versão 1.0

First release

Histórico de versões
1.0 10 de jun de 2020

First release

O que ele faz

27 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de shortgram

Ver tudo

Você também pode gostar

Ver tudo
Publicidade