Last active
March 17, 2024 23:59
-
-
Save allanvobraun/75aeea30dd65f818f85dd07358802a71 to your computer and use it in GitHub Desktop.
Install apps windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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