Merge branch 'main' of git.mylloon.fr:Anri/confOS

This commit is contained in:
Mylloon 2023-05-17 11:19:40 +02:00
commit 4824d7b0ca
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 15 additions and 9 deletions

View file

@ -34,7 +34,8 @@ main() {
rebuild-detector git-delta sdl2_ttf rustup pulseaudio-alsa \ rebuild-detector git-delta sdl2_ttf rustup pulseaudio-alsa \
rsync doxygen emacs-nox otf-fira-sans ttf-fira-code \ rsync doxygen emacs-nox otf-fira-sans ttf-fira-code \
otf-fira-mono mingw-w64-gcc topgrade-bin otf-font-awesome \ otf-fira-mono mingw-w64-gcc topgrade-bin otf-font-awesome \
timidity++ soundfont-fluid fluidsynth libsamplerate timidity++ soundfont-fluid fluidsynth libsamplerate \
mdcat
# === Rustup == # === Rustup ==
# Init rustup # Init rustup

View file

@ -124,7 +124,8 @@
"libsamplerate", "libsamplerate",
"cups", "cups",
"system-config-printer", "system-config-printer",
"fwupd" "fwupd",
"mdcat"
], ],
"plugin": null, "plugin": null,
"profile": { "profile": {

View file

@ -10,16 +10,16 @@ fltmc >NUL 2>&1 || (
) )
:: === Right click of Windows 10 == :: === Right click of Windows 10 ==
REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve REG ADD "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
:: === Disabling widgets == :: === Disabling widgets ==
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f
:: === Disabling hibernation == :: === Disabling hibernation (prevents computer to really shutdown) ==
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f
powercfg /H off powercfg /H off
:: === Disabling the SysMain service == :: === Disabling the SysMain service (preload some apps in memory) ==
sc stop "SysMain" & sc config "SysMain" start=disabled sc stop "SysMain" & sc config "SysMain" start=disabled
:: === Added confirmation when trashing == :: === Added confirmation when trashing ==
@ -30,7 +30,7 @@ REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\At
:: === Disables memory integrity == :: === Disables memory integrity ==
:: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613 :: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f
:: === Disables sticky keys == :: === Disables sticky keys ==
REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f
@ -39,6 +39,10 @@ REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v Flags /t R
REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f
REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f
:: === Disable Game Bar ==
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 00000000 /f
REG ADD "HKEY_CURRENT_USER\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 00000000 /f
:: === WinGet == :: === WinGet ==
:: Auto accept ToT :: Auto accept ToT
ECHO Y | winget list >NUL ECHO Y | winget list >NUL
@ -80,7 +84,7 @@ wsl --install
TASKKILL /im firefox.exe /F TASKKILL /im firefox.exe /F
FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i" FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i"
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile '!vbc!/user.js'" PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile '!vbc!\user.js'"
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile '%HOMEPATH%\Downloads\Dark-Reader-Settings.json'" PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile '%HOMEPATH%\Downloads\Dark-Reader-Settings.json'"
PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile '%HOMEPATH%\Downloads\SponsorBlockConfig.json'" PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile '%HOMEPATH%\Downloads\SponsorBlockConfig.json'"