update obs config + todo

This commit is contained in:
Mylloon 2024-08-20 18:07:44 +02:00
parent 8def89e89d
commit ae1d1c7b78
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 8 additions and 2 deletions

View file

@ -236,6 +236,8 @@ sync-windows:
# @echo "$(WIN) Topgrade settings synced!"
# @echo
# TODO: OBS shadowplay config updater
# Termux distro specific
sync-termux:

View file

@ -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 ^