don't use OBS setup anymore
This commit is contained in:
parent
7c26c5c12b
commit
67913884d5
2 changed files with 31 additions and 31 deletions
|
@ -93,9 +93,9 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy" /v TailoredExpe
|
|||
:: Disable ad in start menu
|
||||
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_IrisRecommendations /t REG_DWORD /d 0 /f
|
||||
|
||||
:: Disable HAGS
|
||||
:: see https://obsproject.com/wiki/How-to-disable-Windows-10-Hardware-GPU-Scheduler
|
||||
REG ADD "HKLM\System\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 1 /f
|
||||
@REM :: Disable HAGS
|
||||
@REM :: see https://obsproject.com/wiki/How-to-disable-Windows-10-Hardware-GPU-Scheduler
|
||||
@REM REG ADD "HKLM\System\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Disable automatic reboot after update
|
||||
REG ADD "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
|
||||
|
|
|
@ -24,8 +24,8 @@ fltmc >NUL 2>&1 || (
|
|||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/clean.bat -OutFile '!local!\ctmpf.bat'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/spotify.bat -OutFile '!local!\blockthespot.bat'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/vencord.bat -OutFile '!local!\vencord_installer.bat'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/start_obs_as_shadowplay.bat -OutFile '%LOCALAPPDATA%\start_obs_as_shadowplay.bat'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/reg_fixes.bat -OutFile '!local!\reg_fixes.bat'"
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/start_obs_as_shadowplay.bat -OutFile '%LOCALAPPDATA%\start_obs_as_shadowplay.bat'"
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '!local!\fix_nvidia_wsl.bat'"
|
||||
|
||||
|
||||
|
@ -250,41 +250,41 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/
|
|||
"%LOCALAPPDATA%\Programs\AutoDarkMode\adm-app\AutoDarkModeApp.exe"
|
||||
|
||||
|
||||
:: === OBS ==
|
||||
:: Create directories for configurations
|
||||
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer" 2>NUL
|
||||
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL
|
||||
@REM :: === OBS ==
|
||||
@REM :: Create directories for configurations
|
||||
@REM MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer" 2>NUL
|
||||
@REM MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL
|
||||
|
||||
:: Download configuration
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/basic.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\basic.ini'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\recordEncoder.json'"
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
||||
@REM :: Download configuration
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'"
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/basic.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\basic.ini'"
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\recordEncoder.json'"
|
||||
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
||||
|
||||
:: Script OBS Replay Folder
|
||||
PowerShell -Command "" ^
|
||||
"$archive = '%TEMP%\obs-replay-folders.zip';" ^
|
||||
"Invoke-WebRequest -Uri https://github.com/Mylloon/obs-replay-folders/releases/latest/download/obs-replay-folders.zip -OutFile $archive;" ^
|
||||
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
|
||||
"Remove-Item -Force $archive"
|
||||
|
||||
:: Script OBS Automatic ReplayBuffer Restart
|
||||
@REM :: Script OBS Replay Folder
|
||||
@REM PowerShell -Command "" ^
|
||||
@REM "$archive = '%TEMP%\auto-obs-rb-restart.zip';" ^
|
||||
@REM "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/auto-obs-rb-restart/releases/download/latest/auto-obs-rb-restart.zip -OutFile $archive;" ^
|
||||
@REM "$archive = '%TEMP%\obs-replay-folders.zip';" ^
|
||||
@REM "Invoke-WebRequest -Uri https://github.com/Mylloon/obs-replay-folders/releases/latest/download/obs-replay-folders.zip -OutFile $archive;" ^
|
||||
@REM "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
|
||||
@REM "Remove-Item -Force $archive"
|
||||
|
||||
:: Setup the autostart of shadowplay
|
||||
SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^
|
||||
/TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^
|
||||
/F /RL HIGHEST
|
||||
@REM :: Script OBS Automatic ReplayBuffer Restart
|
||||
@REM @REM PowerShell -Command "" ^
|
||||
@REM @REM "$archive = '%TEMP%\auto-obs-rb-restart.zip';" ^
|
||||
@REM @REM "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/auto-obs-rb-restart/releases/download/latest/auto-obs-rb-restart.zip -OutFile $archive;" ^
|
||||
@REM @REM "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
|
||||
@REM @REM "Remove-Item -Force $archive"
|
||||
|
||||
:: Allow system to go in sleep mode when OBS is running
|
||||
POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE
|
||||
@REM :: Setup the autostart of shadowplay
|
||||
@REM SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^
|
||||
@REM /TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^
|
||||
@REM /F /RL HIGHEST
|
||||
|
||||
ECHO About OBS, you may need to adjust the screen ID by opening the OBS app
|
||||
ECHO in the systray as it may be not the same as the one presaved.
|
||||
@REM :: Allow system to go in sleep mode when OBS is running
|
||||
@REM POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE
|
||||
|
||||
@REM ECHO About OBS, you may need to adjust the screen ID by opening the OBS app
|
||||
@REM ECHO in the systray as it may be not the same as the one presaved.
|
||||
|
||||
|
||||
:: Fix games shortcut
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue