Reduce line size
Using tab size of 2 instead of 4 in all scripts
This commit is contained in:
parent
7c9d779095
commit
2d46d36bc0
7 changed files with 693 additions and 680 deletions
11
arch.sh
11
arch.sh
|
@ -14,7 +14,8 @@ cd "$(dirname "$0")" # change script directory
|
|||
main() {
|
||||
# === Remove extra packages ==
|
||||
pacman -D --asexplicit archlinux-keyring # keep this package
|
||||
sudo pacman -Rsn --noconfirm epiphany gnome-maps cheese gnome-weather gnome-music \
|
||||
sudo pacman -Rsn --noconfirm \
|
||||
epiphany gnome-maps cheese gnome-weather gnome-music \
|
||||
# gnome-firefox, maps, caméra, météo, musique
|
||||
gnome-books vim gnome-boxes gnome-photos malcontent \
|
||||
# liseuse, vim, machines, photos, parental control
|
||||
|
@ -43,7 +44,8 @@ main() {
|
|||
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
|
||||
|
||||
# === AUR packages ==
|
||||
paru -S --noconfirm obsidian parsec-bin onlyoffice-bin evolution-etesync-git \
|
||||
paru -S --noconfirm \
|
||||
obsidian parsec-bin onlyoffice-bin evolution-etesync-git \
|
||||
x11-emoji-picker gnome-shell-extension-dash-to-dock \
|
||||
gnome-shell-extension-desktop-icons-ng dracula-gtk-theme \
|
||||
dracula-icons-git vscodium-bin otf-symbola \
|
||||
|
@ -93,7 +95,7 @@ main() {
|
|||
# Add aliases
|
||||
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
|
||||
|
||||
# Fish by default in terminal app
|
||||
# Default theme in Gnome Terminal
|
||||
local profil
|
||||
profil=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-custom-command true
|
||||
|
@ -108,6 +110,9 @@ main() {
|
|||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ default-size-rows 25
|
||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ font "MesloLGM Nerd Font 12"
|
||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-system-font false
|
||||
# Duplicate the default profile to create a light theme
|
||||
# TODO
|
||||
|
||||
# Keybinds
|
||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab "<Control>w"
|
||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ new-tab "<Control>t"
|
||||
|
|
|
@ -26,7 +26,8 @@ main() {
|
|||
sudo pacman -Syyuu --noconfirm
|
||||
|
||||
# === Install packages ==
|
||||
sudo pacman -S --noconfirm git wget zip openssh bat base-devel make \
|
||||
sudo pacman -S --noconfirm \
|
||||
git wget zip openssh bat base-devel make \
|
||||
python-pygments micro git-lfs npm sdl2_image nodejs \
|
||||
fish autoconf valgrind automake python-virtualenv gdb \
|
||||
tk sdl2_mixer eza fzf glu man-pages-fr uwufetch mdcat \
|
||||
|
@ -65,7 +66,7 @@ main() {
|
|||
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
|
||||
|
||||
# === AUR packages ==
|
||||
paru -S --noconfirm spim-svn cal8tor otf-font-awesome topgrade-bin \
|
||||
paru -S --noconfirm cal8tor otf-font-awesome topgrade-bin \
|
||||
texlive-latexindent-meta
|
||||
|
||||
# === Rust ==
|
||||
|
|
|
@ -65,7 +65,8 @@ ECHO Y | winget list >NUL
|
|||
SET "pmi=winget install -he"
|
||||
|
||||
:: C++ libraries
|
||||
SET ^"cpp_libs=Microsoft.VCRedist.2005.x86 Microsoft.VCRedist.2005.x64 ^
|
||||
SET ^"cpp_libs=^
|
||||
Microsoft.VCRedist.2005.x86 Microsoft.VCRedist.2005.x64 ^
|
||||
Microsoft.VCRedist.2008.x86 Microsoft.VCRedist.2008.x64 ^
|
||||
Microsoft.VCRedist.2010.x86 Microsoft.VCRedist.2010.x64 ^
|
||||
Microsoft.VCRedist.2012.x86 Microsoft.VCRedist.2012.x64 ^
|
||||
|
@ -77,7 +78,8 @@ for %%i in (!cpp_libs!) do (
|
|||
)
|
||||
|
||||
:: .NET libraries
|
||||
SET ^"net_libs=Microsoft.DotNet.DesktopRuntime.3_1 Microsoft.DotNet.SDK.3_1 ^
|
||||
SET ^"net_libs=^
|
||||
Microsoft.DotNet.DesktopRuntime.3_1 Microsoft.DotNet.SDK.3_1 ^
|
||||
Microsoft.DotNet.DesktopRuntime.5 Microsoft.DotNet.SDK.5 ^
|
||||
Microsoft.DotNet.DesktopRuntime.6 Microsoft.DotNet.SDK.6 ^
|
||||
Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7"
|
||||
|
@ -87,14 +89,16 @@ for %%i in (!net_libs!) do (
|
|||
)
|
||||
|
||||
:: Java dev kits
|
||||
SET ^"java_jdk=EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK"
|
||||
SET ^"java_jdk=^
|
||||
EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK"
|
||||
|
||||
for %%i in (!java_jdk!) do (
|
||||
!pmi! %%i
|
||||
)
|
||||
|
||||
:: Applications
|
||||
SET ^"apps=Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam ^
|
||||
SET ^"apps=^
|
||||
Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam ^
|
||||
voidtools.Everything.Lite VideoLAN.VLC Parsec.Parsec ^
|
||||
Microsoft.VisualStudioCode GIMP.GIMP File-New-Project.EarTrumpet ^
|
||||
TheDocumentFoundation.LibreOffice DuongDieuPhap.ImageGlass ^
|
||||
|
@ -108,7 +112,8 @@ for %%i in (!apps!) do (
|
|||
)
|
||||
|
||||
:: Games
|
||||
SET ^"games=Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU"
|
||||
SET ^"games=^
|
||||
Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU"
|
||||
|
||||
for %%i in (!games!) do (
|
||||
!pmi! %%i
|
||||
|
@ -119,7 +124,8 @@ wsl --install --no-launch
|
|||
wsl --unregister Ubuntu
|
||||
|
||||
:: === Install Geek Uninstaller ==
|
||||
PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
|
||||
PowerShell -Command "" ^
|
||||
"$archive = '%TEMP%\geek.zip';" ^
|
||||
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
|
||||
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^
|
||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
|
@ -130,7 +136,8 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v Di
|
|||
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller"
|
||||
|
||||
:: === Install LosslessCut ==
|
||||
PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^
|
||||
PowerShell -Command "" ^
|
||||
"$archive = 'LosslessCut-win-x64.7z';" ^
|
||||
"$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^
|
||||
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
|
||||
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
||||
|
@ -144,7 +151,8 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /
|
|||
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
|
||||
|
||||
:: === Install DSR ==
|
||||
PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^
|
||||
PowerShell -Command "" ^
|
||||
"$archive = '%TEMP%\dsr.zip';" ^
|
||||
"Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/dsr/releases/download/1.4.0/dsr-win32-x64-1.4.0.zip -OutFile $archive;" ^
|
||||
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR';" ^
|
||||
"Move-Item -Path '%ProgramFiles%\DSR\dsr-win32-x64\*' -Destination '%ProgramFiles%\DSR';" ^
|
||||
|
@ -177,7 +185,8 @@ ECHO Pour NVidia, utilise NVC et DDU
|
|||
:: === W10Privacy ==
|
||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'"
|
||||
ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads.
|
||||
PowerShell -Command "$archive = '%TEMP%\W10Privacy.zip';" ^
|
||||
PowerShell -Command "" ^
|
||||
"$archive = '%TEMP%\W10Privacy.zip';" ^
|
||||
"Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^
|
||||
"Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^
|
||||
"$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
|
||||
|
@ -202,12 +211,10 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat
|
|||
CMD /c "%HOMEPATH%\Documents\Local\vencord_installer.bat" yes
|
||||
|
||||
:: === Install OpenTabletDriver ==
|
||||
:: Download
|
||||
PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip'"
|
||||
:: Extract
|
||||
PowerShell -Command "Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'"
|
||||
:: Create shortcut
|
||||
PowerShell -Command "$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
PowerShell -Command "" ^
|
||||
"Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip'" ^
|
||||
"Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'" ^
|
||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^
|
||||
"$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^
|
||||
"$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^
|
||||
|
|
Loading…
Reference in a new issue