dyguests/OneDisplay

OneDisplay

★ 0Forks 0BatchfileGitHub ↗Compare

README

OneDisplay - Windows Display Mode Switcher

This project provides simple batch scripts to quickly switch between single display mode (only the primary monitor is active) and multi-display (extended) mode on Windows 10/11 systems.

Files

  • SingleDisplayMode.bat
    • Switches your system to use only the primary display, disabling all other connected monitors.
  • RestoreDisplays.bat
    • Restores the extended desktop mode, enabling all connected monitors.

Usage

  1. SingleDisplayMode.bat

    • Double-click运行,或右键以管理员身份运行。
    • 脚本会自动检测显示器数量,若多于1个,则切换到仅主显示器模式。
  2. RestoreDisplays.bat

    • 双击运行即可恢复多显示器扩展模式。

快捷键提示

  • 你也可以使用 Win + P 快捷键手动切换显示模式。

注意事项

  • 脚本基于 Windows 内置的 DisplaySwitch.exe,无需第三方工具。
  • 某些情况下可能需要以管理员身份运行脚本。

适用场景

  • 会议演示、远程办公、临时只用主显示器等。

如有更多需求或建议,欢迎反馈!

Contributors

dyguests

Issues