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 /BatteryPercent | |
download | tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.tar.gz tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.tar.zst tweaks-c014bf2300cc36b313a05745cc3f286dc906a813.zip |
Add BatteryPercent and NoSpotlight
Diffstat (limited to 'BatteryPercent')
-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 |
4 files changed, 38 insertions, 0 deletions
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) |