5

I installed the solarized theme for vim but it looks quite ugly.

The documentation says, that I should also enable the solarized theme in my terminal, which is the LXTerminal. Therefore I tried to setup my terminal via ~/.Xresources with solarized/xresources but it has no effect.

How can I setup the solarized color scheme for LXTerminal?

sschmeck
  • 163

2 Answers2

5

Upstream code of LXTerminal (on git.lxde.org or GitHub) has Solarized palette built-in. This feature has been added last year, but the newer version hasn't been released for many years.

Source: I am one of the LXDE developers and I need Solarized to use LXTerminal, so actually this feature is actually dogfooding myself (?). We are currently being pushed and we are going to release a newer version in a week at the time of writing.

Update: LXTerminal 0.3.0 is released. For those who has a rolling release distros (like Arch, Debian Sid) it can be immediately available. The background color and foreground color of Solarized palette is not correct. If you find it bothering, you can change Background color to #002b36 and Foreground color to #839496. For Solarized Light, use #fdf6e3 and #657b83 respectively. This will be fixed in the next release.

Yao Wei
  • 51
  • 2
    In December 2016 version 0.3.0 was released. Could you provide an example how to setup solarized scheme with the new version, please? – sschmeck Jan 31 '17 at 14:11
  • 2
    It is right underneath the Palette drop-down menu in preferences. Though it would be a little bit more difficult to use Light scheme. (It isn't in preset yet.) – Yao Wei Feb 01 '17 at 22:57
4

LXTerminal has no color-palette dialog, nor does it recognize X resources.

However, any "recent" LXTerminal can be setup using escape sequences. Originally VTE lacked that ability, but at some undocumented point the feature was added.

This page has a script which may be useful for this purpose: solarized-termcolor-osc4

Thomas Dickey
  • 76,765
  • Thanks. I added the two statements from the link to my .vimrc and set the background color of LXTerminal to #002b36. Looks good. – sschmeck Oct 15 '16 at 22:03
  • 1
    According to git log, OSC 4 support was added to VTE in Jan 2009. – egmont Oct 17 '16 at 20:53