Introduction
In the first part of this series, we introduced Windows Terminal and set up the Windows ssh program to log in to our Raspberry Pi.
In the second part, we configured Windows Terminal to open multiple profiles at startup.
We are now going to look at customising the profiles. This is done by editing the setting.json configuration file. So make sure you have a backup of it before starting. Also, as mentioned in the first part of this article I recommend using notepad++ to edit the file.
Customisation
For information on editing the settings.json Click Here
After creating a new profile in settings its entry in the settings.json file will look something like this.
{ "commandline": "ssh pi@plex -i "C:/ssh_keys/plex"", "guid": "{3f3a68d1-24b9-4008-a665-b2c4d3ff58f0}", "icon": "C:\Program Files\PuTTY\PuTTY_icon_128px.png", "name": "plex", "tabTitle": "plex" },
Things to note:
The profile is included in curly braces { .... }
Each line ends with a coma except the last line of the profile
The profile has a coma after the closing curly brace unless it is the last profile.
The guid must be unique for the profile. Do not copy and paste a profile, use the duplicate option in the settings menu.
Completed Profile
Below is my completed profile for the server plex with all of the modications. Details for each setting are listed below.
{ "closeOnExit": "always", "colorScheme": "One Half Dark", "commandline": "ssh pi@plex -i "C:/ssh_keys/plex"", "cursorShape": "underscore", "font": { "face": "Cascadia Mono", "size": 14, "weight": "normal" }, "guid": "{3f3a68d1-24b9-4008-a665-b2c4d3ff58f0}", "icon": "C:\Program Files\PuTTY\PuTTY_icon_128px.png", "name": "plex", "suppressApplicationTitle": true, "tabTitle": "plex" },
closeOnExit : Default "graceful". Determines what happens to the profile session when you exit the application. I have set this to "always" so the profile session tab closes when ssh exits.
colorScheme : Sets the colour scheme used for the profile session. The Scheme details are at the bottom of the file. You can add your own or download them from the web.
commandline : This is the command that will be run. This example includes the ssh key so you will not have to type a password.
cursorShape : Default "bar". Sets the cursor shape. Options include "bar", "vintage", "underscore", "filledBox", "emptyBox", "doubleUnderscore". For me underscore worked best.
font : This is a font structure which includes "face", "size" and "weight" settings
guid : This is the profile's unique identifier. To make a profile your default profile use the defaultProfile option in settings.json.
e.g. "defaultProfile": "{3f3a68d1-24b9-4008-a665-b2c4d3ff58f0}",
icon : Optionally set the icon for the profile. I found a suitable icon on the internet and downloaded it. Then add the path to the icon in this field.
name : The name for the profile, in my case the hostname of the RPI, e.g. plex
suppressApplicationTitle : Setting this to true stops the application from updating the tab title. As I have multiple tabs I wanted the tab always to show the tabTitle which is the hostname. Options are "true","false"
tabTitle : This sets the title of the tab. In my case it is always set to the hostname. In this profile it is set to "plex"
More Information
You can view more options on the folowing Microsoft page:
https://docs.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced
This is the last update on this subject. If I find out anything new which may be of interest to you I will post it.
I hope you have found this interesting.