Skip to content

Instantly share code, notes, and snippets.

View Raicuparta's full-sized avatar
💭
🦊

Raicuparta

💭
🦊
View GitHub Profile
@Raicuparta
Raicuparta / change-resolution.ps1
Last active September 14, 2023 09:50
Change / Toggle resolution
# Toggle between high and low resolutions, or set specific resolution and refresh rate.
# Adapted this to be easily used by Sunshine stream thing.
#
# Example Sunshine "Do Command" for changing resolution:
# powershell.exe -File "C:\Apps\Scripts\toggle-resolution.ps1" -Width 1920 -Height 1080 -Freq 60
# And the "Undo Command":
# powershell.exe -File "C:\Apps\Scripts\toggle-resolution.ps1" -Width 3440 -Height 1440 -Freq 144
# And for a shortcut that just toggles between high and low resolutions (set the values below):
# powershell.exe -File "C:\Apps\Scripts\toggle-resolution.ps1"