From edb8fed5d9dd7883bf9f21e7eb74f5b235d7dd0e Mon Sep 17 00:00:00 2001 From: straight-tamago Date: Tue, 3 Sep 2024 09:44:04 +0900 Subject: [PATCH] Added Toggle Shutter Sound --- main_app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main_app.py b/main_app.py index 99aa1a9..549b68e 100644 --- a/main_app.py +++ b/main_app.py @@ -11,6 +11,7 @@ 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 @@ 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 @@ 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 @@ 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: