Skip to content

Latest commit

 

History

History

terminals

Harmonia for ANSI Terminals

This type of Harmonia is designed for ANSI terminals, which is almost all terminals in existence today.

Special Requirements

There are standard ANSI sequences selecting the colours which can be displayed by a terminal. The standard defines eight colours (including black and white). Further extensions add "bright" colours, which on many terminals are shown erroneously via bold text, and faint colours. Also, there is an idea of a default text and default background.

This standard was developed at a time when all terminals were of a "bright text on black background" variety. When attempting to implement this standard with a palette where there is dark text on a bright background, the meaning of "bright" and "faint" is up to a debate.

Harmonia is trying to be faithful to the standard and do the right thing where the standard is not entirely clear. Also, where choosing the brightness, colourfulness, and other attributes of colours, the guiding principle is that normal and coloured text has to be clearly visible on a default background. Other combinations are deemed to be less important.

Colour schemes

Harmonia for KDE Konsole

These colour schemes should be present on KDE Store.

Alternatively, you can download the files here, and put them into ~/.local/share/konsole/ directory, and restart Konsole application (otherwise it will not notice that the files are present).

After that you could be select the colour preset by right-clicking on the terminal, and then going to "Edit current profile ..." > "Colour scheme & font".

Harmonia for Xfce4 Terminal

It should be enough to put the files into ~/.config/xfce4/terminal/colorschemes directory.

After that you could be select the colour preset by right-clicking on the terminal, and then going to "Preferences ..." > "Colours" > "Load presets ...".

Harmonia for Gnome Terminal

Gnome terminal does not provide an easy way of adding a palette. The following works for me.

In a terminal, save the current configuration into a file:

dconf dump /org/gnome/terminal/ > gnome_terminal_colors.txt

Make a backup of the file:

cp gnome_terminal_colors.txt gnome_terminal_colors_BACKUP.txt

Edit gnome_terminal_colors.txt in your favourite text editor. There is one line which looks like [legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]. Keep it, and replace all the lines below with the text from one of the provided configurations:

Then load the new configuration into Gnome Terminal:

dconf load /org/gnome/terminal/ < gnome_terminal_colors.txt

Harmonia for XTerm

Programs like xterm use the traditional configuration method where configuration files are loaded into X11 system via a program like xrdb. The precise way the configuration is done is specific to your Linux / UNIX system.

On some systems it is enough to put the content of Xresources file into .Xresources file in your home directory. After that the files are loaded automatically upon starting an X11 session. Sadly, not every system does it.

For testing purposes, you can load the files manually and see if your xterm has loaded them up:

cat Xresources-harmonia-day | xrdb
xterm +pc

Note: +pc tells xterm to avoid PC behaviour where bold text is simulated by choosing a bright colour. Any modern terminal running in a graphical environment (and perhaps even some working in a pure text mode) should be capable of using actual bold fonts.

Demonstration

Harmonia "day"

Harmonia "day", ANSI colours

Harmonia "day", ANSI colours

Harmonia "night"

Harmonia "day", ANSI colours

Harmonia "day", ANSI colours