diff --git a/Makefile b/Makefile index 9ab9617..dbf52ea 100644 --- a/Makefile +++ b/Makefile @@ -236,6 +236,8 @@ sync-windows: # @echo "$(WIN) Topgrade settings synced!" # @echo +# TODO: OBS shadowplay config updater + # Termux distro specific sync-termux: diff --git a/windows11.bat b/windows11.bat index 6bb6934..b098bfa 100644 --- a/windows11.bat +++ b/windows11.bat @@ -363,13 +363,17 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/ :: === 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 + +:: Download configuration 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/streamEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\streamEncoder.json'" - -MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'" +:: Setup the autostart of shadowplay SCHTASKS /Create /TN "OBS Shadowplay" ^ /TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^ /SC ONLOGON ^