Skip to content

Commit 806a60a

Browse files
committed
fix: minor fixes
1 parent a2e090e commit 806a60a

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

src/dependencies/local-build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ while ($true) { Get-Content -Wait -LiteralPath $a -EA 0 | Write-Output; Start-Sl
214214
Pop-Location
215215
}
216216

217+
# Stupid hack because "The process cannot access the file because it is being used by another process." happens now and I have no idea why
218+
$apbxTmpPath = $apbxPath + '.tmp'
219+
if (Test-Path $apbxTmpPath) {
220+
Remove-Item -Path $apbxPath
221+
Rename-Item -Path $apbxTmpPath -NewName $apbxPath
222+
}
217223
Write-Host "Built successfully! Path: `"$apbxPath`"" -ForegroundColor Green
218224
if (!$DontOpenPbLocation) {
219225
if ($IsLinux -or $IsMacOS) {
@@ -230,4 +236,4 @@ while ($true) { Get-Content -Wait -LiteralPath $a -EA 0 | Write-Output; Start-Sl
230236
} finally {
231237
Remove-Item $rootTemp -Force -EA 0 -Recurse | Out-Null
232238
if ($currentDir) { Set-Location $currentDir }
233-
}
239+
}

src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
---
22
title: Add Theme
33
description: Adds and sets the Atlas themes by default
4-
onUpgrade: false
54
actions:
65
#Apply theme file and set recent themes
6+
- !powerShell:
7+
command: |
8+
.\AtlasModules\initPowerShell.ps1
9+
Set-ThemeMRU
10+
wait: true
11+
onUpgrade: true
12+
oobe: false
13+
exeDir: true
14+
runas: curretUserElevated
15+
716
- !powerShell:
817
command: |
918
.\AtlasModules\initPowerShell.ps1
1019
Set-Theme -Path """$([Environment]::GetFolderPath('Windows'))\Resources\Themes\atlas-v0.4.x-dark.theme"""
1120
Set-ThemeMRU
1221
wait: true
22+
onUpgrade: false
1323
exeDir: true
1424
runas: currentUserElevated
1525

@@ -20,32 +30,36 @@ actions:
2030
value: 'LockScreenOverlaysDisabled'
2131
data: '1'
2232
type: REG_DWORD
33+
onUpgrade: false
2334
- !registryValue:
2435
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager'
2536
value: 'RotatingLockScreenEnabled'
2637
data: '0'
2738
type: REG_DWORD
28-
39+
onUpgrade: false
2940
- !powerShell:
3041
command: |
3142
foreach ($userKey in (Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative").PsPath) {
3243
Set-ItemProperty -Path $userKey -Name 'RotatingLockScreenEnabled' -Type DWORD -Value 0 -Force
3344
}
3445
exeDir: true
3546
wait: true
47+
onUpgrade: false
3648
- !powerShell:
3749
command: |
3850
.\AtlasModules\initPowerShell.ps1
3951
Set-LockscreenImage
4052
exeDir: true
4153
wait: true
4254
runas: currentUserElevated
55+
onUpgrade: false
4356

4457
# Set Atlas theme as default for new users
4558
- !registryValue:
4659
path: 'HKCU\Software\Policies\Microsoft\Windows\Personalization'
4760
value: 'ThemeFile'
4861
data: '%windir%\Resources\Themes\atlas-v0.4.x-dark.theme'
4962
type: REG_SZ
63+
onUpgrade: true
5064

5165

src/playbook/Configuration/tweaks/qol/taskbar/config-pins.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ actions:
66
# PowerShell commands used:
77
# [BitConverter]::ToString($(Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name "FavoritesResolve").FavoritesResolve) -replace '-' | clip
88
# [BitConverter]::ToString($(Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name "Favorites").Favorites) -replace '-' | clip
9-
10-
- !taskKill: {name: 'explorer'}
11-
129
# Config pins
1310
- !registryKey:
1411
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
@@ -79,5 +76,4 @@ actions:
7976
option: 'browser-librewolf'
8077
exeDir: true
8178
oobe: false
82-
wait: true
83-
- !run: {exe: 'explorer.exe', runas: 'currentUser', wait: true}
79+
wait: true

src/playbook/Executables/APPLYDUHIVE.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ foreach ($path in $RegistryPaths) {
3939
}
4040
}
4141
}
42-
}
43-
Remove-Module "FXPSYaml" -Force
44-
# Unload DefaultUser hive
42+
}

src/playbook/Executables/AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot/Disable Microsoft Copilot (default).cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ start explorer.exe
2828

2929
if "%~1"=="/silent" exit /b
3030

31-
echo]
31+
echo.
3232
echo Finished, changes are applied.
3333
echo Press any key to exit...
3434
pause > nul

src/playbook/Executables/TASKBARPINS.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,4 @@ foreach ($userKey in (Get-RegUserPaths -NoDefault).PsPath) {
112112
}
113113
}
114114
}
115-
116115
Stop-Process -Name explorer -Force

0 commit comments

Comments
 (0)