Presently sponsored by: ScriptRunner - Get your free PowerShell Security e-Book!

This is another post in the series about fun and helpful Windows Terminal tips and tricks. Here's a list of the posts in this series.

Configure opacity

To open the settings, you can either hit ctrl+, (Windows), or simply go to the dropdown-arrow in the navigation bar and select settings.

You'll see your settings.json file open in your favorite editor, and this is where you'll make the changes.

To enable transparency, you can define the useAcrylic boolean property, along with the acrylicOpacity which is a number to specify the transpacency between 0 and 1. I find that a good transparency for my terminals range between 0.45 to 0.7, depending on what terminal it is, and what type of output I expect in the terminal.

Configuring the opacity/transparency in Windows Terminal.

Here's an example:

// cropped... 
    
"defaults":
{
    // Put settings here that you want to apply to all profiles.
    "useAcrylic": true,
    "acrylicOpacity": 0.7
},

// cropped...

To make the change happen for a single type of command line, modify the specific item in the list. As an example, I want my normal cmd.exe to always be non-transparent, but my PowerShell and cloud terminals to have a certain opacity.

"list":
[
    {
        // Make changes here to the powershell.exe profile.
        "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "name": "Windows PowerShell",
        "commandline": "powershell.exe",
        "hidden": false,
        "useAcrylic": true,
        "acrylicOpacity": 0.7
    },
    {
        // Make changes here to the cmd.exe profile.
        "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
        "name": "Command Prompt",
        "commandline": "cmd.exe",
        "hidden": false
    },
    {
        "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
        "hidden": false,
        "name": "Azure Cloud Shell",
        "source": "Windows.Terminal.Azure",
        "useAcrylic": true,
        "acrylicOpacity": 0.7
    },
    {
        "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
        "hidden": false,
        "name": "PowerShell",
        "source": "Windows.Terminal.PowershellCore",
        "useAcrylic": true,
        "acrylicOpacity": 0.7
    }
]
Windows Terminal Transparency settings

Troubleshooting

If you don't get your terminal to be transparent, this could be because of configurations in Windows.

1. Enable Windows Transparency Effects

Make sure you have the Transparency Effects enabled in Windows.

You'll find this in the Windows Settings if you just search for "Transparency" from your start menu.

Enable Transparency Effects for Windows.

2. It may not work when you're running on batter saver

When you're running on battery saver mode, the transparency feature in Windows is turned off by default.

Make sure you're not running on the battery saver mode:

Do not run power save mode if you want to make use of transparency.

Happy Terminaling!