Last active
November 6, 2018 13:45
-
-
Save Nitemice/c61f6c62791d3ce3c16dda1384a9185f to your computer and use it in GitHub Desktop.
Randomly swap between "Fill" and "Span" Wallpaper modes on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For use with multiple monitors.