Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
How to change Pantheon Terminal's color scheme

How to change Pantheon Terminal's color scheme

Many of us spend many hours of our days using their terminal. Plus, we all have different tastes when it comes to color schemes. That's why the ability to change the color scheme of a terminal is one of its more important featuresl. Throughout this tutorial, I'll teach you how you can change the looks of your terminal, step by step.

This tutorial is aimed at elementary OS users, but it also works for any Ubuntu user. Start by installing dconf-tools:

sudo apt-get install dconf-tools

Secondly, you need to decide which theme you're going to apply. You can find dozens of terminal color schemes online, you can even design your own using this web application. Design the color scheme, hit "Get Scheme" and choose "Terminator". You'll get a raw text file with a background color, a foreground color and a palette. Those strings define your color scheme. In this tutorial, I'll post an example palette give to me by Tom Beckmann.

Then, run dconf-editor with Slingshot or whichever application launcher you're using. Go to "org", then "pantheon", then "terminal" and finally "settings". On the right, you will find "palette" - edit it and replace it with the palette you want to use. I'm inserting:


Then I went to "background" and I changed it to #00002B2B3636. Then I edited both "cursor-color" and "foreground" to #838394949696. Also, this is a personal preference, but I also changed my "opacity" to 100.

To conclude, here's a screenshot of my terminal alongside my settings: (click on the image to view a bigger version)

I'd like to thank Tom for giving me his color scheme, which admittedly looks really nice!

zyrx commented Apr 29, 2015

Great work, thanks!!

CptSpaceToaster commented Aug 8, 2016

This can also be accomplished using the built-in gsettings command to edit the appropriate values

gsettings set org.pantheon.terminal.settings palette "#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
gsettings set org.pantheon.terminal.settings foreground "#838394949696"
gsettings set org.pantheon.terminal.settings background "#00002B2B3636"
gsettings set org.pantheon.terminal.settings cursor-color "#838394949696"
gsettings set org.pantheon.terminal.settings follow-last-tab "true"

How can transparency be enabled?

htv2012 commented May 13, 2017

I found a way to change the transparency. First issue the command

$ gsettings get org.pantheon.terminal.settings background
'rgba(37, 46, 50, .85)'

The last number, .85, is the transparency where 1.0 is complete opaque. Now you can set it using any value from 0.0-1.0. For example, to set the transparency to 0.95:

$ gsettings set org.pantheon.terminal.settings background  'rgba(37, 46, 50, .95)'

Are the colors listed in order with gsettings?

"black,red,green,yellow,blue,magenta,cycan,white,bright-black,bright-red,bright-green,bright-yellow,bright-blue,bright-magenta,bright-cyan,bright-white" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment