diff --git a/2_ConfigUpdate.ps1 b/2_ConfigUpdate.ps1 index d2519ae..14c6e59 100644 --- a/2_ConfigUpdate.ps1 +++ b/2_ConfigUpdate.ps1 @@ -133,6 +133,24 @@ foreach ($entry in $entries) { } } +# Wallpaper and Lock Screen +Write-Host "Setting desktop wallpaper and lock screen..." + +$wallpaperDest = "C:\Windows\Web\Wallpaper\Custom" +New-Item -Path $wallpaperDest -ItemType Directory -Force | Out-Null +Copy-Item -Path "$scriptDir\wallpaper\Wallpaper.png" -Destination "$wallpaperDest\Wallpaper.png" -Force +Copy-Item -Path "$scriptDir\wallpaper\Lockscreen.png" -Destination "$wallpaperDest\Lockscreen.png" -Force + +Add-Type -TypeDefinition @" +using System.Runtime.InteropServices; +public class Wallpaper { + [DllImport("user32.dll", CharSet = CharSet.Auto)] + public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni); +} +"@ +[Wallpaper]::SystemParametersInfo(0x0014, 0, "$wallpaperDest\Wallpaper.png", 3) | Out-Null +Write-Host "Desktop wallpaper and lock screen configured." + # ShareX - Remove "Capture Entire Screen" shortcut Write-Host "Configuring ShareX shortcuts..." diff --git a/registry.csv b/registry.csv index 0be4efa..bf4d1df 100644 --- a/registry.csv +++ b/registry.csv @@ -110,4 +110,8 @@ registryPath,propertyName,propertyType,propertyValue "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged",Value,String,"Deny" "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.WindowsCamera_8wekyb3d8bbwe",Value,String,"Deny" "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CPSS\Store\UserLocationOverridePrivacySetting",Value,DWord,0 -"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.BingWeather_8wekyb3d8bbwe",Value,String,"Deny" \ No newline at end of file +"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.BingWeather_8wekyb3d8bbwe",Value,String,"Deny" +"HKCU:\Control Panel\Desktop",WallpaperStyle,String,10 +"HKCU:\Control Panel\Desktop",TileWallpaper,String,0 +"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP",LockScreenImagePath,String,C:\Windows\Web\Wallpaper\Custom\Lockscreen.png +"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP",LockScreenImageStatus,DWord,1 \ No newline at end of file diff --git a/wallpaper/Lockscreen.png b/wallpaper/Lockscreen.png new file mode 100644 index 0000000..8868e56 Binary files /dev/null and b/wallpaper/Lockscreen.png differ diff --git a/wallpaper/Wallpaper.png b/wallpaper/Wallpaper.png new file mode 100644 index 0000000..212a83a Binary files /dev/null and b/wallpaper/Wallpaper.png differ