A lightweight Windows command-line tool for quickly switching display resolution and refresh rate.
- 🚀 Quick display settings switching
- 💻 Custom resolution and refresh rate support
- 🔧 Simple command-line interface
- 📝 Persistent settings (registry update)
rlsw.exe [width] [height] [refresh_rate]| Parameter | Description | Example |
|---|---|---|
| width | Horizontal pixel count | 1920 |
| height | Vertical pixel count | 1080 |
| refresh_rate | Refresh rate in Hz | 60 |
Set display to 1920x1080 resolution with 60Hz refresh rate:
rlsw.exe 1920 1080 60| Code | Description |
|---|---|
| 0 | Successfully changed settings |
| 1 | Already at target settings |
| Other | Change failed |
- Windows OS
- C compiler (GCC, MSVC, etc.)
- Windows SDK
gcc -o rlsw.exe main.c -luser32cl main.c user32.libThis tool uses the following Windows API functions:
- EnumDisplaySettings - Get current display settings
- ChangeDisplaySettings - Change display settings
- CDS_UPDATEREGISTRY - Flag to ensure persistent settings
- Administrator privileges may be required to change display settings
- Some resolution/refresh rate combinations may not be supported by your monitor
- Ensure your hardware supports the target configuration before changing settings