Customizing Elementary OS 5.1 Terminal Not Working

elementary OS Asked by motash on August 28, 2021

I’m tring to change the theme for default Terminal app, the commands seem to run without throwing errors, yet nothing happens.
I tried running:

gsettings set io.elementary.terminal.settings foreground 'rgb(46, 46, 46)'

also this bash script, but nothing takes effect:

darkstyle="true" # true or false

gsettings set io.elementary.terminal.settings palette "$palette"
gsettings set io.elementary.terminal.settings foreground "$foreground"
gsettings set io.elementary.terminal.settings background "$background"
gsettings set io.elementary.terminal.settings cursor-color "$cursor"
gsettings set io.elementary.terminal.settings prefer-dark-style "$darkstyle"


installing dconf-tools and setting the values from there works, but I’m confused as to why gsetting set commands aren’t doing anything.

2 Answers

I finally got it working. I'll put it here in case someone faces the same issue.

First, I followed @Sysadmin suggestion mentioned in the comments above.


Run the following two commands in the terminal before trying to change colors or theme. (you can add this to your .bashrc or profile so that you don't have to do it everytime your system reboots).

export TERMINAL='io.elementary.terminal'

export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/

After this, you can run gsettings commands with no problem.

Also, this doesn't require a reboot and changes are reflected immediatly (pretty neat).

Check this awsome tool for switching themes easily.

source: credits to drjmcauliffe

Answered by motash on August 28, 2021

Probably the only one correct way is to do this way:

sudo gsettings set io.elementary.terminal.settings background 'rgb(46, 46, 46,0.95)' 

The last position 0.95 is about transparency. Less value means more transparent background.

Settings work only after the restart of the system, so each time you need to restart if you are changing values.

Answered by Sysadmin on August 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP