Skip to content

Instantly share code, notes, and snippets.

@Nitemice
Last active November 6, 2018 13:45
Show Gist options
  • Save Nitemice/c61f6c62791d3ce3c16dda1384a9185f to your computer and use it in GitHub Desktop.
Save Nitemice/c61f6c62791d3ce3c16dda1384a9185f to your computer and use it in GitHub Desktop.
Randomly swap between "Fill" and "Span" Wallpaper modes on Windows
@echo off
set /a num=%random% %% 3
if %num% equ 0 (set /a style=22) else if %num% equ 1 (set /a style=10)
if %num% neq 2 (reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d %style% /f)
REM RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
exit
@Nitemice
Copy link
Author

For use with multiple monitors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment