Using actions for visual effects
Windows Terminal currently has several hidden commands for managing visual effects. These commands are likely to be used rarely, but let's explore them anyway.
setColorScheme
From our example at the beginning of the chapter, we found that setColorScheme
is an available action, with a colorScheme
parameter. It does not have an associated keyboard shortcut. If we wanted to change our Windows Terminal color scheme with a keyboard shortcut (for example, Ctrl + Alt + S), we could add the following configuration:
{ Â Â "command": { Â Â Â Â "action": "setColorScheme", Â Â Â Â "colorScheme": "Solarized Light" Â Â }, Â Â "keys": "ctrl+alt+s" },
This can be useful to switch between the light and dark modes of the same theme, for example, Solarized Light and Solarized Dark. Each theme could be associated with a separate...