ShareShortcuts
„I.B.L.O.S“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit shortgram die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
63K
Gesichert
1
Aktionen
27
Kategorie
Utilities
Version
1.0
Sprache
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

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 10. Jun 2020

First release

Was er macht

27 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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)
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von shortgram

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung