diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-08-07 17:11:42 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-08-07 17:11:42 -0400 |
commit | c014bf2300cc36b313a05745cc3f286dc906a813 (patch) | |
tree | 431e8bec7f0fbe39a56b0bfb1d14d2f2cce43e15 | |
download | tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.tar.gz tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.tar.zst tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.zip |
Add BatteryPercent and NoSpotlight
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | BatteryPercent/BatteryPercent.plist | 1 | ||||
-rw-r--r-- | BatteryPercent/Makefile | 13 | ||||
-rw-r--r-- | BatteryPercent/Tweak.x | 15 | ||||
-rw-r--r-- | BatteryPercent/control | 9 | ||||
-rw-r--r-- | LICENSE | 23 | ||||
-rw-r--r-- | NoSpotlight/Makefile | 13 | ||||
-rw-r--r-- | NoSpotlight/NoSpotlight.plist | 1 | ||||
-rw-r--r-- | NoSpotlight/Tweak.x | 10 | ||||
-rw-r--r-- | NoSpotlight/control | 9 |
10 files changed, 96 insertions, 0 deletions
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 <me@cameronkatri.com> +Author: Cameron Katri <me@cameronkatri.com> +Section: Tweaks +Depends: mobilesubstrate (>= 0.9.5000) @@ -0,0 +1,23 @@ +Copyright (c) 2021 Cameron Katri <me@cameronkatri.com> +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 <me@cameronkatri.com> +Author: Cameron Katri <me@cameronkatri.com> +Section: Tweaks +Depends: mobilesubstrate (>= 0.9.5000) |