ShareShortcuts
Dupliquer « ULPM »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que ryhart soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
37K
Enregistré
0
Actions
126
Catégorie
API
Version
1.0
Langue
EN

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

Nouveautés

Version 1.0

First release

Historique des versions
1.0 17 nov. 2022

First release

Ce qu’il fait

126 actions
  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

Afficher en tant que code
Bêta

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 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
		})
		setReduceTransparency(1)
		setVoiceControl(0)
		setSwitchControl(0)
		setReduceMotion(false)
		showNotification("ULPM Turned On")
	item "🔴Off":
		setLowPowerMode(0)
		setBrightness(0.40288705)
		setVolume(0.2007874)
		setWifi(false)
		setBluetooth(false)
		setAirplaneMode(0)
		setCellularData(false)
		toggleFocusMode()
		rawAction("is.workflow.actions.cellular.rat.set", {
			"ratMode": "5G",
			"sim": "Primary"
		})
		setReduceTransparency(0)
		toggleReduceMotion()
		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)
		setReduceTransparency(false)
		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)
		setReduceTransparency(0)
		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":
}
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é

Ça pourrait aussi te plaire

Tout afficher
Publicité