From b52ebb1818a19654315765ee86a67a6003560c84 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:07:13 +0100 Subject: [PATCH] feat: ability to toggle Recall support --- .../tweaks/misc/delete-windows-specific-files.yml | 1 + .../Configuration/tweaks/privacy/disable-recall-snap.yml | 9 ++++----- .../Disable Microsoft Copilot (default).cmd | 0 .../Microsoft Copilot/Enable Microsoft Copilot.cmd | 0 .../Recall/Disable Recall Support (default).reg | 4 ++++ .../AI Features/Recall/Enable Recall Support.reg | 4 ++++ 6 files changed, 13 insertions(+), 5 deletions(-) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{ => AI Features}/Microsoft Copilot/Disable Microsoft Copilot (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{ => AI Features}/Microsoft Copilot/Enable Microsoft Copilot.cmd (100%) create mode 100644 src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Disable Recall Support (default).reg create mode 100644 src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Enable Recall Support.reg diff --git a/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml index 708e76bd1b..8afccb68b2 100644 --- a/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml +++ b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml @@ -10,6 +10,7 @@ actions: - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Gallery', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\Context Menu\Windows 11', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\Snap Layouts', builds: [ '<22000' ]} + - !file: {path: '%windir%\AtlasDesktop\3. General Configuration\AI Features\Recall', builds: [ '<22000' ]} # Delete files exclusive to Windows 10 - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Folders in This PC', builds: [ '>=22000' ]} diff --git a/src/playbook/Configuration/tweaks/privacy/disable-recall-snap.yml b/src/playbook/Configuration/tweaks/privacy/disable-recall-snap.yml index 70092811a8..796e828b77 100644 --- a/src/playbook/Configuration/tweaks/privacy/disable-recall-snap.yml +++ b/src/playbook/Configuration/tweaks/privacy/disable-recall-snap.yml @@ -3,8 +3,7 @@ title: Disable Recall Snapshots description: Disables snapshots of Recall (24H2+) builds: [ '>=22000' ] actions: - - !registryValue: - path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' - value: 'DisableAIDataAnalysis' - data: '1' - type: REG_DWORD + - !cmd: + command: 'reg import "AtlasDesktop\3. General Configuration\AI Features\Recall\Disable Recall Support (default).reg"' + exeDir: true + wait: true diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Microsoft Copilot/Disable Microsoft Copilot (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot/Disable Microsoft Copilot (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Microsoft Copilot/Disable Microsoft Copilot (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot/Disable Microsoft Copilot (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Microsoft Copilot/Enable Microsoft Copilot.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot/Enable Microsoft Copilot.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Microsoft Copilot/Enable Microsoft Copilot.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot/Enable Microsoft Copilot.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Disable Recall Support (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Disable Recall Support (default).reg new file mode 100644 index 0000000000..8916645a8f --- /dev/null +++ b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Disable Recall Support (default).reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] +"DisableAIDataAnalysis"=dword:00000001 diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Enable Recall Support.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Enable Recall Support.reg new file mode 100644 index 0000000000..eab40637d0 --- /dev/null +++ b/src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Recall/Enable Recall Support.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] +"DisableAIDataAnalysis"=-