ShareShortcuts

Ultra Low Power

This is a shortcut that makes your phone use the smallest amount of power possible

fkawilliams
Создать форк «Ultra Low Power»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы fkawilliams получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
40K
Сохранено
1
Действия
80
Категория
API
Версия
1.0
Язык
EN

This is a shortcut that makes your phone use the smallest amount of power possible. This should also help charge your phone faster. To use: There is a short first time setup. Once that is done all you need to do is click the shortcut once to turn “Ultra Low Power” mode on and another click will turn it off.

What “Ultra Low Power” mode does:

Turns wifi off

Turns Bluetooth off

Turns mobile data off

Turns aeroplane mode on

Turns low power mode on

Turns volume down

Turns brightness down

Turns do not disturb on

Lowers white point

Turns torch off (if it is on)

Switches appearance to dark mode

Что нового

Версия 1.0

First release

История версий
1.0 26 июл 2022 г.

First release

Что делает

Действий: 80
  1. Text
  2. Set Variable
    Wifi
  3. Text
  4. Set Variable
    Bluetooth
  5. Text
  6. Set Variable
    Data
  7. Text
  8. Set Variable
    DND
  9. Text
  10. Set Variable
    Color
  11. Get File
  12. Set Variable
    Config
  13. Count
  14. If
  15. Create Folder
  16. Text
  17. Save File
  18. Set Variable
    Config
  19. If
  20. Get File
  21. Set Variable
    State
  22. Count
  23. If
  24. Text
  25. Save File
  26. Set Variable
    State
  27. If
  28. Get File
  29. Get Text from Input
  30. If
  31. Set Wi-Fi
  32. Set Bluetooth
  33. Set Cellular Data
  34. Set Brightness
  35. Set Volume
  36. Set Low Power Mode
  37. Set Airplane Mode
  38. Set Appearance
  39. Set Flashlight
  40. Set Focus
  41. Toggle White Point
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  42. Text
  43. Save File
  44. If
  45. If
  46. Get File
  47. Get Text from Input
  48. Split Text
  49. Get Item from List
  50. Set Variable
    WifiPref
  51. Get Item from List
  52. Set Variable
    BluetoothPref
  53. Get Item from List
  54. Set Variable
    DataPref
  55. Get Item from List
  56. Set Variable
    DNDPref
  57. Get Item from List
  58. Set Variable
    ColorPref
  59. Set Brightness
  60. Set Low Power Mode
  61. Set Airplane Mode
  62. Toggle White Point
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  63. If
  64. Set Wi-Fi
  65. If
  66. If
  67. Set Bluetooth
  68. If
  69. If
  70. Set Cellular Data
  71. If
  72. If
  73. Set Focus
  74. If
  75. If
  76. Set Appearance
  77. If
  78. Text
  79. Save File
  80. If

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#define mac false
#include 'actions/text'
#include 'actions/documents'
#define color green
#define glyph battery

@Wifi = "On"
@Bluetooth = "On"
@Data = "On"
@DND = "Off"
@Color = "Light"
getFileFromFolder(, "UltraLowPower/config.txt", false)
@Config
const Count = count(@Config)

if Count == 0 {
	createFolder("UltraLowPower")
	const Text = "{@Wifi}\n{@Bluetooth}\n{@Data}\n{@DND}\n{@Color}"
	saveFile("/UltraLowPower/config.txt", Text, true)
	@Config
} else {
}
getFile("/UltraLowPower/state.txt", false)
@State
const Count1 = count(@State)

if Count1 == 0 {
	const Text1 = "0"
	saveFile("/UltraLowPower/state.txt", Text1, true)
	@State
} else {
}
const File = getFile("/UltraLowPower/state.txt")
const Text2 = getText(File)

if Text2 contains "0" {
	setWifi(0)
	setBluetooth(0)
	setCellularData(0)
	setBrightness(0)
	setVolume(0)
	setLowPowerMode(1)
	setAirplaneMode(false)
	darkMode()
	toggleFlashlight(0.5)
	setFocusMode()
	setWhitePoint(false)
	const Text3 = "1"
	saveFile("/UltraLowPower/state.txt", Text3, true)
} else {
	if Text2 contains "1" {
		const File1 = getFile("/UltraLowPower/config.txt")
		const Text4 = getText(File1)
		const SplitText = splitText(Text4, "
")
		getFirstItem(SplitText)
		@WifiPref
		getListItem(SplitText, 2)
		@BluetoothPref
		getListItem(SplitText, 3)
		@DataPref
		getListItem(SplitText, 4)
		@DNDPref
		getListItem(SplitText, 5)
		@ColorPref
		setBrightness(0.34730538725852966)
		setLowPowerMode(0)
		setAirplaneMode(0)
		setWhitePoint(0)
		if @WifiPref == "On" {
			setWifi(false)
		} else {
		}
		if @BluetoothPref == "On" {
			setBluetooth(false)
		} else {
		}
		if @DataPref == "On" {
			setCellularData(false)
		} else {
		}
		if @DNDPref == "Off" {
			toggleFocusMode()
		} else {
		}
		if @ColorPref == "Light" {
			darkMode()
		} else {
		}
		const Text5 = "0"
		saveFile("/UltraLowPower/state.txt", Text5, true)
	} else {
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от fkawilliams

См. все

Вам также может понравиться

См. все
Реклама