From ff95b35f24e256dd7db291c5e917e374b09ed734 Mon Sep 17 00:00:00 2001 From: Nilesh <92365820+itsNileshHere@users.noreply.github.com> Date: Fri, 27 Jun 2025 00:22:01 +0530 Subject: [PATCH] refactor(tweaks): separate removal of Home and Gallery from explorer (#3454) --- config/tweaks.json | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index b23d08aa..adff415a 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2147,28 +2147,46 @@ ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/utc" }, - "WPFTweaksRemoveHomeGallery": { - "Content": "Remove Home and Gallery from explorer", - "Description": "Removes the Home and Gallery from explorer and sets This PC as default", + "WPFTweaksRemoveHome": { + "Content": "Remove Home from explorer", + "Description": "Removes the Home from explorer and sets This PC as default", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Order": "a029_", "InvokeScript": [ " - REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f REG ADD \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" /t REG_DWORD /d \"1\" " ], "UndoScript": [ " - REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f /ve /t REG_SZ /d \"{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f /ve /t REG_SZ /d \"CLSID_MSGraphHomeFolder\" REG DELETE \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removehomegallery" }, + "WPFTweaksRemoveGallery": { + "Content": "Remove Gallery from explorer", + "Description": "Removes the Gallery from explorer and sets This PC as default", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a030_", + "InvokeScript": [ + " + REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f + REG ADD \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" /t REG_DWORD /d \"1\" + " + ], + "UndoScript": [ + " + REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f /ve /t REG_SZ /d \"{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" + REG DELETE \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" + " + ], + "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removehomegallery" + }, "WPFTweaksDisplay": { "Content": "Set Display for Performance", "Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.", @@ -2668,7 +2686,7 @@ "Description": "Moves OneDrive files to Default Home Folders and Uninstalls it.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", - "Order": "a030_", + "Order": "a031_", "InvokeScript": [ " $OneDrivePath = $($env:OneDrive) @@ -2775,7 +2793,7 @@ "Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", - "Order": "a031_", + "Order": "a032_", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching",