Skip to content

Commit 065e254

Browse files
committed
Moved out into smaller repository, better README
Scripts coming from https://github.com/sigurdga/solarized
0 parents  commit 065e254

11 files changed

+118
-0
lines changed

LICENSE.mkd

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
License
2+
=======
3+
4+
Copyright (c) 2011 Sigurd Gartmann
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10+
of the Software, and to permit persons to whom the Software is furnished to do
11+
so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+

README.mkd

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Solarized Colorscheme for Gnome Terminal
2+
========================================
3+
4+
Scripts for setting the Solarized color set with Gnome Terminal. Scripts by
5+
Sigurd Gartmann <[email protected]>, based on colors by Ethan Schoonover
6+
7+
8+
Notes about color settings in Gnome Terminal
9+
--------------------------------------------
10+
11+
In Gnome terminal there are built-in color profiles, but these are hardcoded
12+
and we cannot change or add these profiles. These scripts are setting a few
13+
gconf parameters that will set the palette colors, foreground, background and
14+
highlight colors to either a light or dark color scheme.
15+
16+
Only the foreground, background and highlight colors are different in the light
17+
and dark color sets, as one of the main ideas behind Ethan Schonoovers work is
18+
to use the same colors in the palette for both.
19+
20+
Visit the [Solarized homepage]
21+
------------------------------
22+
23+
See the [Solarized homepage] for theory behind the colors, screenshots, details
24+
and colorscheme versions for Vim, Mutt, popular terminal emulators and other
25+
applications.
26+
27+
For the original works of Ethan Schoonover, visit the [Solarized repository].
28+
The colors for Gnome Terminal is maintained in [Gnome Terminal Colors Solarized
29+
repository].
30+
31+
Installation
32+
------------
33+
34+
Clone the [git repository], then run one of the scripts: set_light.sh or
35+
set_dark.sh.
36+
37+
$ git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git
38+
$ cd gnome-terminal-colors-solarized
39+
$ ./set_light.sh
40+
$ ./set_dark.sh
41+
42+
See the [Solarized homepage] for screenshots which will help you
43+
select either the light or dark background.
44+
45+
46+
[Solarized homepage]: http://ethanschoonover.com/solarized
47+
[Solarized repository]: https://github.com/altercation/solarized
48+
[Gnome Terminal Colors Solarized repository]: https://github.com/sigurdga/gnome-terminal-colors-solarized
49+

colors/base0

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#838394949696

colors/base00

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#65657b7b8383

colors/base01

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#58586e6e7575

colors/base03

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#00002B2B3636

colors/base1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#9393a1a1a1a1

colors/base3

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#fdfdf6f6e3e3

colors/palette

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3

set_dark.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
dir=`dirname $0`
4+
5+
PROFILE=${1:-Default}
6+
7+
# set palette
8+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/palette `cat $dir/colors/palette`
9+
10+
# set highlighted color to be different from foreground-color
11+
gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/bold_color_same_as_fg false
12+
13+
# set foreground to base0 and background to base03 and highlight color to base1
14+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/background_color `cat $dir/colors/base03`
15+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/foreground_color `cat $dir/colors/base0`
16+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/bold_color `cat $dir/colors/base1`
17+
18+
# make sure the profile is set to not use theme colors
19+
gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/use_theme_colors false

set_light.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
dir=`dirname $0`
4+
5+
PROFILE=${1:-Default}
6+
7+
# set palette
8+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/palette `cat $dir/colors/palette`
9+
10+
# set highlighted color to be different from foreground-color
11+
gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/bold_color_same_as_fg false
12+
13+
# set foreground to base00 and background to base3 and highlight color to
14+
# base01
15+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/background_color `cat $dir/colors/base3`
16+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/foreground_color `cat $dir/colors/base00`
17+
gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/bold_color `cat $dir/colors/base01`
18+
19+
# make sure the profile is set to not use theme colors
20+
gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/use_theme_colors false

0 commit comments

Comments
 (0)