WSL Bash Aliases to Change Windows Display Orientation

This blog post provides two aliases to change the Windows primary display orientation.

First, download display64.exe:

Then, define some aliases to use it, typically in .bashrc (see https://wslguy.net/2021/02/13/wsl-configure-bash-shell-initialization):

alias landscape='display64.exe /rotate:0'
alias portrait='display64.exe /rotate:90'
alias toggle='display64.exe /rotate:90 /toggle'

Leave a comment