Skip to content

Commit

Permalink
enable windows game mode
Browse files Browse the repository at this point in the history
  • Loading branch information
caglaryalcin committed Feb 11, 2024
1 parent c565af5 commit fa872f5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
4 changes: 4 additions & 0 deletions files/own/mysettings.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ if ($response -eq 'y' -or $response -eq 'Y') {
"$env:userprofile\Desktop" = @(
"https://raw.githubusercontent.com/caglaryalcin/my-configs/main/cs2/cs.cfg"
)

"C:\programdata\NVIDIA Corporation\Drs\" = @(
"https://github.com/caglaryalcin/my-configs/raw/main/nvidia/nvdrsdb0.bin"
)
}

# Process each directory and download files
Expand Down
13 changes: 8 additions & 5 deletions files/startup/Shells.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,14 @@ Function DisableStartupApps {
)

$removeList = @(
"*EADM*", "*Java*", "*CCX*", "*cisco*", "*vivaldi", "*NV*", "*npcap*", "*Edge*",
"*Brave*", "*Riot*", "*IDMan*", "*Teams*", "*Disc*", "*Epic*", "*CORS*", "*Next*",
"*One*", "*Chrome*", "*Opera*", "*iTunes*", "*CC*", "*Vanguard*", "*Update*",
"*iTunes*", "*Ai*", "*Skype*", "*Yandex*", "*uTorrent*", "*Deluge*", "*Blitz*",
"*vmware*", "*Any*", "Teams*"
"Security*", "*Teams*", "Microsoft team*", "*Update*", #Microsoft & Updates
"*NV*", #Nvidia
"*CCX*", "Adobe*", "*CC*", #Adobe
"*uTorrent*", "*Deluge*", #Torrent
"FACEIT*", "*Riot*", "*Epic*", "*Vanguard*", "*Blitz*", #Gaming
"*Brave*", "Google*", "*Chrome*", "*Opera*", "*vivaldi", "*Edge*", "*Yandex*", "*Firefox*", "*Librewolf*", #Browsers
"*EADM*", "*Java*", "*cisco*", "*npcap*", "*IDMan*", "*Disc*", "*CORS*", "*Next*", "*One*", "*iTunes*", "*iTunes*", "*Ai*", "*Skype*",
"*vmware*", "*Any*", "Tailscale*", "Docker*" #Other
)

# Remove from registry
Expand Down
14 changes: 14 additions & 0 deletions w10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,20 @@ Function SystemSettings {

RemoveTaskbarWidgets

# Enable Windows Game Mode
Function Gamemode {
Write-Host "Enabling Windows Game Mode..." -NoNewline
try {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "UseNexusForGameDetection" -Value 1
}
catch {
Write-Host "[WARNING]: Game Mode could not be enabled. $_" -ForegroundColor Red
}
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}

Gamemode

# Hide Taskbar Remove Widgets from the Taskbar
Function UnpinEverything {
Param(
Expand Down
14 changes: 14 additions & 0 deletions w11.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,20 @@ Function SystemSettings {

RemoveTaskbarWidgets

# Enable Windows Game Mode
Function Gamemode {
Write-Host "Enabling Windows Game Mode..." -NoNewline
try {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "UseNexusForGameDetection" -Value 1
}
catch {
Write-Host "[WARNING]: Game Mode could not be enabled. $_" -ForegroundColor Red
}
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}

Gamemode

# Hide Taskbar Remove Widgets from the Taskbar
Function UnpinEverything {
Param(
Expand Down

0 comments on commit fa872f5

Please sign in to comment.