From c014bf2300cc36b313a05745cc3f286dc906a813 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sat, 7 Aug 2021 17:11:42 -0400 Subject: Add BatteryPercent and NoSpotlight --- .gitignore | 2 ++ BatteryPercent/BatteryPercent.plist | 1 + BatteryPercent/Makefile | 13 +++++++++++++ BatteryPercent/Tweak.x | 15 +++++++++++++++ BatteryPercent/control | 9 +++++++++ LICENSE | 23 +++++++++++++++++++++++ NoSpotlight/Makefile | 13 +++++++++++++ NoSpotlight/NoSpotlight.plist | 1 + NoSpotlight/Tweak.x | 10 ++++++++++ NoSpotlight/control | 9 +++++++++ 10 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 BatteryPercent/BatteryPercent.plist create mode 100644 BatteryPercent/Makefile create mode 100644 BatteryPercent/Tweak.x create mode 100644 BatteryPercent/control create mode 100644 LICENSE create mode 100644 NoSpotlight/Makefile create mode 100644 NoSpotlight/NoSpotlight.plist create mode 100644 NoSpotlight/Tweak.x create mode 100644 NoSpotlight/control diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..446282e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.theos +packages diff --git a/BatteryPercent/BatteryPercent.plist b/BatteryPercent/BatteryPercent.plist new file mode 100644 index 0000000..e5c60ee --- /dev/null +++ b/BatteryPercent/BatteryPercent.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.UIKit" ); }; } diff --git a/BatteryPercent/Makefile b/BatteryPercent/Makefile new file mode 100644 index 0000000..fb01816 --- /dev/null +++ b/BatteryPercent/Makefile @@ -0,0 +1,13 @@ +TARGET := iphone:clang:latest:7.0 +INSTALL_TARGET_PROCESSES = SpringBoard + +ARCHS := arm64 arm64e + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = BatteryPercent + +BatteryPercent_FILES = Tweak.x +BatteryPercent_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/BatteryPercent/Tweak.x b/BatteryPercent/Tweak.x new file mode 100644 index 0000000..b1f7c74 --- /dev/null +++ b/BatteryPercent/Tweak.x @@ -0,0 +1,15 @@ +%hook _UIBatteryView + +-(void)setShowsPercentage:(BOOL)enabled +{ + %orig(true); +} + +-(void)setShowsInlineChargingIndicator:(BOOL)enabled +{ + %orig(false); +} + +%end + +// vim: filetype=logos diff --git a/BatteryPercent/control b/BatteryPercent/control new file mode 100644 index 0000000..2c727fd --- /dev/null +++ b/BatteryPercent/control @@ -0,0 +1,9 @@ +Package: com.cameronkatri.batterypercent +Name: BatteryPercent +Version: 0.0.1 +Architecture: iphoneos-arm +Description: An awesome MobileSubstrate tweak! +Maintainer: Cameron Katri +Author: Cameron Katri +Section: Tweaks +Depends: mobilesubstrate (>= 0.9.5000) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..07d8e2c --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2021 Cameron Katri +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer + in this position and unchanged. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/NoSpotlight/Makefile b/NoSpotlight/Makefile new file mode 100644 index 0000000..4fd0271 --- /dev/null +++ b/NoSpotlight/Makefile @@ -0,0 +1,13 @@ +TARGET := iphone:clang:latest:7.0 +INSTALL_TARGET_PROCESSES = SpringBoard + +ARCHS := arm64 arm64e + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = NoSpotlight + +NoSpotlight_FILES = Tweak.x +NoSpotlight_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/NoSpotlight/NoSpotlight.plist b/NoSpotlight/NoSpotlight.plist new file mode 100644 index 0000000..e5c60ee --- /dev/null +++ b/NoSpotlight/NoSpotlight.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.UIKit" ); }; } diff --git a/NoSpotlight/Tweak.x b/NoSpotlight/Tweak.x new file mode 100644 index 0000000..e3a416b --- /dev/null +++ b/NoSpotlight/Tweak.x @@ -0,0 +1,10 @@ +%hook SBSearchScrollView + +-(void)setScrollEnabled:(BOOL)enabled +{ + %orig(false); +} + +%end + +// vim: filetype=logos diff --git a/NoSpotlight/control b/NoSpotlight/control new file mode 100644 index 0000000..6450389 --- /dev/null +++ b/NoSpotlight/control @@ -0,0 +1,9 @@ +Package: com.cameronkatri.nosplotlight +Name: NoSpotlight +Version: 0.0.1 +Architecture: iphoneos-arm +Description: An awesome MobileSubstrate tweak! +Maintainer: Cameron Katri +Author: Cameron Katri +Section: Tweaks +Depends: mobilesubstrate (>= 0.9.5000) -- cgit v1.2.3-56-ge451