From cdb19f8cb59658059afbbbb9695709619a84ea05 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 2 Apr 2021 18:46:28 +0200 Subject: [PATCH] customizable desktop background colour --- settings.cmd | 3 +++ tools/logon.cmd | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/settings.cmd b/settings.cmd index c746c66..53a76d2 100644 --- a/settings.cmd +++ b/settings.cmd @@ -2,4 +2,7 @@ set LANG=de-DE set windows_updates=1 set logon_logo=1 set install_firefox=1 +set bgcol_R=0 +set bgcol_G=0 +set bgcol_B=0 diff --git a/tools/logon.cmd b/tools/logon.cmd index 9169579..19b3cdf 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -1,5 +1,6 @@ @echo off set TOOLS=c:\tools +set SETTINGS=%TOOLS%\scripts\settings.cmd set STATUSFILE=%LOCALAPPDATA%\.user_settings_done set STARTMENU=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" set STARTMENU_PUBLIC=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs" @@ -10,8 +11,19 @@ echo removing wallpaper ... reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters -echo set desktop colour (RGB) ... -%TOOLS%\setbgcol 3 131 135 +if EXIST %SETTINGS% ( + echo loading settings ... + call %SETTINGS% +) else ( + echo WARNING: [ %SETTINGS% ] not found! + echo setting defaults ... + set bgcol_R=3 + set bgcol_G=131 + set bgcol_B=135 +) + +echo setting desktop colour (RGB) ... +%TOOLS%\setbgcol %bgcol_R% %bgcol_G% %bgcol_B% echo starting BGInfo ... %TOOLS%\bginfo\bginfo64.exe %TOOLS%\bginfo\config.bgi /NOLICPROMPT /silent /timer:0