ShareShortcuts
„ULPM“ 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 ryhart 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
37K
Gesichert
0
Aktionen
126
Kategorie
API
Version
1.0
Sprache
EN

Check the time your phone will take to get to 100% Make your phone charge rapidly fast, Save battery levels And more!

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 17. Nov 2022

First release

Was er macht

126 Aktionen
  1. Comment
    ULPM is best used as an app/widgets WIDGET - hold the home screen until your apps start to jiggle, press the top left corner and search “shorcuts” and place it on your home screen, while your apps are jiggling, press the shortcuts widget and change …
  2. Dictionary
  3. Set Variable
    TheInfo
  4. Get Device Details
  5. Set Variable
    CurrentBrightness
  6. Get Device Details
  7. Set Variable
    CurrentVolume
  8. Get Battery Level
  9. Choose from Menu
    Battery Life: …%
  10. Choose from Menu
    🔋ULPM
  11. Choose from Menu
    ULPM on or off?
  12. Choose from Menu
    🟢On
  13. Set Low Power Mode
  14. Set Brightness
  15. Set Volume
  16. Set Bluetooth
  17. Set Wi-Fi
  18. Set Airplane Mode
  19. Set Cellular Data
  20. Set Focus
  21. Cellular Rat Set
  22. A X Set Background Sound Volume
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  23. A X Toggle Background Sounds
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  24. Toggle Reduce Transparency
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  25. Toggle Voice Control
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  26. Toggle Switch Control
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  27. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  28. Show Notification
    ULPM Turned On
  29. Choose from Menu
    🔴Off
  30. Set Low Power Mode
  31. Set Brightness
  32. Set Volume
  33. Set Wi-Fi
  34. Set Bluetooth
  35. Set Airplane Mode
  36. Set Cellular Data
  37. Set Focus
  38. Cellular Rat Set
  39. Toggle Reduce Transparency
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  40. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  41. Show Notification
    ULPM Turned Off
  42. Choose from Menu
    🔙Go Back
  43. Run Shortcut
    ULPM
  44. Choose from Menu
    🔋LPM
  45. Choose from Menu
    LPM on or off?
  46. Choose from Menu
    🟢On
  47. Set Low Power Mode
  48. Set Wi-Fi
  49. Set Bluetooth
  50. Set Cellular Data
  51. Cellular Rat Set
  52. Set Brightness
  53. Set Volume
  54. Show Notification
    LPM Turned On
  55. Choose from Menu
    🔴Off
  56. Set Low Power Mode
  57. Set Wi-Fi
  58. Set Bluetooth
  59. Set Cellular Data
  60. Cellular Rat Set
  61. Set Brightness
  62. Set Volume
  63. Show Notification
    LPM Turned Off
  64. Choose from Menu
    🔙Go Back
  65. Run Shortcut
    ULPM
  66. Choose from Menu
    💨Fast Charge
  67. Choose from Menu
    On or Off?
  68. Choose from Menu
    🟢On
  69. Set Airplane Mode
  70. Set Wi-Fi
  71. Set Bluetooth
  72. Set Cellular Data
  73. Cellular Rat Set
  74. Set Brightness
  75. Set Volume
  76. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  77. Toggle Reduce Transparency
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  78. Show Notification
    Iphone now Fast Charging
  79. Choose from Menu
    🔴Off
  80. Set Airplane Mode
  81. Set Wi-Fi
  82. Set Bluetooth
  83. Set Cellular Data
  84. Cellular Rat Set
  85. Set Brightness
  86. Set Volume
  87. Toggle Reduce Motion
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  88. Toggle Reduce Transparency
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  89. Show Notification
    iPhone no longer Fast Charging
  90. Choose from Menu
    🔙Go Back
  91. Run Shortcut
    ULPM
  92. Choose from Menu
    ❓Charge Time
  93. Get Battery Level
  94. Calculate
  95. Set Variable
    BatteryNeeded
  96. Calculate
  97. Calculate
  98. Round Number
  99. Set Variable
    TimeLeft
  100. If
  101. Calculate
  102. Set Variable
    Minutes
  103. Show Result
  104. If
  105. If
  106. Calculate
  107. Set Variable
    Minutes
  108. Show Result
  109. If
  110. Show Result
  111. Choose from Menu
    ❓info
  112. Choose from Menu
    Information
  113. Choose from Menu
    ❓About
  114. Show Alert
    What is ULPM?
  115. Run Shortcut
    ULPM
  116. Choose from Menu
    👨Creator
  117. Show Alert
  118. Run Shortcut
    ULPM
  119. Choose from Menu
    ⬆️Share
  120. URL
    https://routinehub.co/shortcut/13219/
  121. Copy to Clipboard
  122. Show Alert
  123. Run Shortcut
    ULPM
  124. Choose from Menu
    🔙Go Back
  125. Run Shortcut
    ULPM
  126. Choose from Menu
    ❌Cancel

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 color yellow
#define glyph battery

/*
ULPM is best used as an app/widgets

WIDGET - hold the home screen until your apps start to jiggle, press the top left corner and search “shorcuts” and place it on your home screen, while your apps are jiggling, press the shortcuts widget and change the shortcut to “ULPM”

APP - long press on the ULPM shortcut and press “details” then “add to home screen” then follow the prompts
*/
@TheInfo = {
	"Creator": "@ryhart07",
	"Published": "22/10/22",
	"Version": "1.5"
}
getDeviceDetail("Current Brightness")
@CurrentBrightness
getDeviceDetail("Current Volume")
@CurrentVolume
getBatteryLevel()

menu "Battery Life: {}%" {
item "🔋ULPM":
	menu "ULPM on or off?" {
	item "🟢On":
		setLowPowerMode(false)
		setBrightness(0)
		setVolume(0)
		setBluetooth(0)
		setWifi(0)
		setAirplaneMode(1)
		setCellularData(0)
		setFocusMode(, "Turned Off")
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "4G",
			"sim": "Primary"
		})
		rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXSetBackgroundSoundVolumeIntent", {
			"volumeValue": 0
		})
		rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleBackgroundSoundsIntent", {
			"state": 0
		})
		toggleReduceTransparency()
		setVoiceControl(0)
		setSwitchControl(0)
		toggleReduceMotion()
		showNotification("ULPM Turned On")
	item "🔴Off":
		setLowPowerMode(0)
		setBrightness(0.40288705)
		setVolume(0.2007874)
		setWifi(false)
		setBluetooth(false)
		setAirplaneMode(0)
		setCellularData(false)
		toggleDND()
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "5G",
			"sim": "Primary"
		})
		toggleReduceTransparency()
		setReduceMotion(0)
		showNotification("ULPM Turned Off")
	item "🔙Go Back":
		runSelf()
	}
item "🔋LPM":
	menu "LPM on or off?" {
	item "🟢On":
		setLowPowerMode(false)
		setWifi(0)
		setBluetooth(0)
		setCellularData(0)
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "4G",
			"sim": "Primary"
		})
		setBrightness(0.1496063)
		setVolume(0)
		showNotification("LPM Turned On")
	item "🔴Off":
		setLowPowerMode(0)
		setWifi(false)
		setBluetooth(false)
		setCellularData(false)
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "5G",
			"sim": "Primary"
		})
		setBrightness(0.60498685)
		setVolume(0.20147806)
		showNotification("LPM Turned Off", MenuResult)
	item "🔙Go Back":
		runSelf()
	}
item "💨Fast Charge":
	menu "On or Off?" {
	item "🟢On":
		setAirplaneMode(false)
		setWifi(0)
		setBluetooth(0)
		setCellularData(0)
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "4G",
			"sim": "Primary"
		})
		setBrightness(0)
		setVolume(0)
		setReduceMotion(false)
		toggleReduceTransparency()
		showNotification("Iphone now Fast Charging ")
	item "🔴Off":
		setAirplaneMode(0)
		setWifi(false)
		setBluetooth(false)
		setCellularData(false)
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "5G",
			"sim": "Primary"
		})
		setBrightness(0.69947505)
		setVolume(0.15091856)
		setReduceMotion(0)
		toggleReduceTransparency()
		showNotification("iPhone no longer Fast Charging")
	item "🔙Go Back":
		runSelf()
	}
item "❓Charge Time":
	const BatteryLevel = getBatteryLevel()
	@BatteryNeeded = 100 - BatteryLevel
	const CalculationResult = @BatteryNeeded * 110
	const CalculationResult1 = CalculationResult / 60
	round(CalculationResult1)
	@TimeLeft
	if @TimeLeft > 120 {
		@Minutes = @TimeLeft - 120
		show("Your phone is at {BatteryLevel}%\nIt will take 2 hours and {@Minutes} to charge to 100%")
	}
	if @TimeLeft > 60 {
		if @TimeLeft >= 120 {
			@Minutes = @TimeLeft - 60
			show("Your phone is at {BatteryLevel}%\nIt will take 1 hour and {@Minutes} to charge to 100%")
		}
	} else {
		show("Your phone is at {BatteryLevel}%\n\nIt will take {@TimeLeft} Minutes to charge to 100%")
	}
item "❓info":
	menu "Information" {
	item "❓About":
		alert("\nUltimate Low Power Mode\n\nThere are 2 modes of ULPM:\nULPM (Ultimate Low Power Mode)\nLPM (Low Power Mode)\n\nULPM turns off EVERYTHING, From the brightness and WIFI to background activities to turning off 5G,\n\nLPM Turns off the basics, like WIFI, Bluetooth, etc\n\nShortcut made by @ryhart07 on \nhttps://routinehub.co\n\nVersion 1.5", "What is ULPM?")
		runSelf()
	item "👨Creator":
		confirm("Creator: @ryhart07\n\nPublished: routinehub.co\n\nVersion: 1.5")
		runSelf()
	item "⬆️Share":
		const URL = url("https://routinehub.co/shortcut/13219/")
		setClipboard(URL)
		confirm("Link Copied!")
		runSelf(URL)
	item "🔙Go Back":
		runSelf()
	}
item "❌Cancel":
}
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

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung