Ubuntu – Color scheme not changing in Mate-Terminal

18.04mate

I am using Ubuntu Mate 18.04 LTS and i am trying to install one dark color scheme in Mate-Terminal. I am following the instructions from https://github.com/denysdovhan/one-gnome-terminal but for some reason my color scheme is not changing.

I already have the dconf-cli installed, i tried creating a new profile as well and then followed the same process by switching to that profile but even that didn't work.

So i am not sure what i am missing here, and how can i fix it. In general how can we install the custom color schemes in Mate-Terminal. I tried a lot looking for the same on google but could not find much information.

So any help would be highly appreciated.

Best Answer

As far I can understand:

  1. GSettings / dconf paths are not equal for gnome-terminal and mate-terminal.
  2. The files in repository are dated 2015, so they may not suite for modern terminals in 18.04 LTS. But it works in GNOME terminal from 16.04 LTS.

So it needs some patching. I did not edited author's scripts. I just detected what they change by comparing dconf dump / output on 16.04 LTS.

Adding new profiles

As the result below is the script which adds two new MATE Terminal profiles - One Dark and One Light:

dconf write /org/mate/terminal/global/profile-list "['default','one-dark','one-light']"
cat <<EOF | dconf load /org/mate/terminal/profiles/
[one-dark]
foreground-color='#abb2bf'
visible-name='One Dark'
palette=['#000000', '#E06C75', '#98c379', '#d19a66', '#61aeee', '#c678dd', '#56b6c2', '#abb2bf', '#5c6370', '#e06c75', '#98c379', '#d19a66', '#62afee', '#c678dd', '#56b6c2', '#ffffff']
use-theme-colors=false
use-theme-transparency=false
use-theme-background=false
bold-color-same-as-fg=true
bold-color='#ABB2BF'
background-color='#282c34'

[one-light]
foreground-color='#383A42'
visible-name='One Light'
palette=['#000000', '#E45649', '#50A14F', '#986801', '#4078F2', '#A626A4', '#0184BC', '#A0A1A7', '#5c6370', '#E45649', '#50A14F', '#986801', '#4078F2', '#A626A4', '#0184BC', '#ffffff']
use-theme-colors=false
use-theme-transparency=false
use-theme-background=false
bold-color-same-as-fg=true
bold-color='#383A42'
background-color='#F9F9F9'
EOF

After execution, closing terminal and opening it again you will get two new profiles in the drop-down menu:

two new profiles in MATE Terminal

The profiles look like as follows:

  • One Dark

    One-Dark on MATE

  • One Light

    One-Light on MATE

Revert to defaults

To remove all custom profiles use:

dconf reset -f /org/mate/terminal/profiles/

Note: the method is suitable for both Ubuntu MATE 16.04 LTS and 18.04 LTS.