mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
Added Toggle Shutter Sound
This commit is contained in:
@@ -11,6 +11,7 @@ current_model_name = ""
|
||||
boot_chime_enabled = False
|
||||
charge_limit_enabled = False
|
||||
stage_manager_enabled = False
|
||||
shutter_sound_enabled = False
|
||||
|
||||
gestalt_path = Path.joinpath(Path.cwd(), "com.apple.MobileGestalt.plist")
|
||||
|
||||
@@ -45,6 +46,7 @@ while running:
|
||||
print(f"3. {"[Y] " if boot_chime_enabled else ""}Toggle Boot Chime")
|
||||
print(f"4. {"[Y] " if charge_limit_enabled else ""}Toggle Charge Limit")
|
||||
print(f"5. {"[Y] " if stage_manager_enabled else ""}Toggle Stage Manager Supported")
|
||||
print(f"6. {"[Y] " if shutter_sound_enabled else ""}Toggle Shutter Sound")
|
||||
print("\n9. Apply")
|
||||
print("0. Exit\n")
|
||||
page = int(input("Enter a number: "))
|
||||
@@ -61,6 +63,8 @@ while running:
|
||||
charge_limit_enabled = not charge_limit_enabled
|
||||
elif page == 5:
|
||||
stage_manager_enabled = not stage_manager_enabled
|
||||
elif page == 6:
|
||||
shutter_sound_enabled = not shutter_sound_enabled
|
||||
elif page == 9:
|
||||
print()
|
||||
# set the tweaks and apply
|
||||
@@ -79,6 +83,9 @@ while running:
|
||||
plist["CacheExtra"]["37NVydb//GP/GrhuTN+exg"] = True
|
||||
if stage_manager_enabled:
|
||||
plist["CacheExtra"]["qeaj75wk3HF4DwQ8qbIi7g"] = 1
|
||||
if shutter_sound_enabled:
|
||||
plist["CacheExtra"]["h63QSdBCiT/z0WU6rdQv6Q"] = "US"
|
||||
plist["CacheExtra"]["zHeENZu+wbg7PUprwNwBWg"] = "LL/A"
|
||||
|
||||
# write back to the file
|
||||
with open(gestalt_path, 'wb') as out_fp:
|
||||
|
||||
Reference in New Issue
Block a user