Skip to content

Instantly share code, notes, and snippets.

@allanvobraun
Last active March 17, 2024 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanvobraun/75aeea30dd65f818f85dd07358802a71 to your computer and use it in GitHub Desktop.
Save allanvobraun/75aeea30dd65f818f85dd07358802a71 to your computer and use it in GitHub Desktop.
Install apps windows
# Abrindo bitwarden
$url = "https://vault.bitwarden.com/#/login"
$edgePath = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
if (Test-Path $chromePath) {
Start-Process -FilePath $chromePath -ArgumentList $url
} else {
Write-Host "Chrome is not installed or the path is incorrect."
}
# Instalando programas
winget install -e --id Google.Chrome
winget install -e --id Nvidia.GeForceExperience
winget install -e --id Discord.Discord
winget install -e --id Valve.Steam
winget install -e --id RiotGames.LeagueOfLegends.BR
winget install 7-Zip
winget install flameshot
# Check if the theme is currently set to dark
$darkThemeEnabled = (Get-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme').AppsUseLightTheme -eq 0
# Toggle between light and dark themes
if ($darkThemeEnabled) {
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme' -Value 1
} else {
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme' -Value 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment