This file contains 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
# 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" |