Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved out into smaller repository, better README

  • Loading branch information...
commit 065e254f16141f44020e1b1656e5d9a23c8064f1 0 parents
@sigurdga sigurdga authored
23 LICENSE.mkd
@@ -0,0 +1,23 @@
+License
+=======
+
+Copyright (c) 2011 Sigurd Gartmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
49 README.mkd
@@ -0,0 +1,49 @@
+Solarized Colorscheme for Gnome Terminal
+========================================
+
+Scripts for setting the Solarized color set with Gnome Terminal. Scripts by
+Sigurd Gartmann <sigurdga@sigurdga.no>, based on colors by Ethan Schoonover
+<es@ethanschoonover.com>.
+
+Notes about color settings in Gnome Terminal
+--------------------------------------------
+
+In Gnome terminal there are built-in color profiles, but these are hardcoded
+and we cannot change or add these profiles. These scripts are setting a few
+gconf parameters that will set the palette colors, foreground, background and
+highlight colors to either a light or dark color scheme.
+
+Only the foreground, background and highlight colors are different in the light
+and dark color sets, as one of the main ideas behind Ethan Schonoovers work is
+to use the same colors in the palette for both.
+
+Visit the [Solarized homepage]
+------------------------------
+
+See the [Solarized homepage] for theory behind the colors, screenshots, details
+and colorscheme versions for Vim, Mutt, popular terminal emulators and other
+applications.
+
+For the original works of Ethan Schoonover, visit the [Solarized repository].
+The colors for Gnome Terminal is maintained in [Gnome Terminal Colors Solarized
+repository].
+
+Installation
+------------
+
+Clone the [git repository], then run one of the scripts: set_light.sh or
+set_dark.sh.
+
+ $ git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git
+ $ cd gnome-terminal-colors-solarized
+ $ ./set_light.sh
+ $ ./set_dark.sh
+
+See the [Solarized homepage] for screenshots which will help you
+select either the light or dark background.
+
+
+[Solarized homepage]: http://ethanschoonover.com/solarized
+[Solarized repository]: https://github.com/altercation/solarized
+[Gnome Terminal Colors Solarized repository]: https://github.com/sigurdga/gnome-terminal-colors-solarized
+
1  colors/base0
@@ -0,0 +1 @@
+#838394949696
1  colors/base00
@@ -0,0 +1 @@
+#65657b7b8383
1  colors/base01
@@ -0,0 +1 @@
+#58586e6e7575
1  colors/base03
@@ -0,0 +1 @@
+#00002B2B3636
1  colors/base1
@@ -0,0 +1 @@
+#9393a1a1a1a1
1  colors/base3
@@ -0,0 +1 @@
+#fdfdf6f6e3e3
1  colors/palette
@@ -0,0 +1 @@
+#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3
19 set_dark.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+dir=`dirname $0`
+
+PROFILE=${1:-Default}
+
+# set palette
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/palette `cat $dir/colors/palette`
+
+# set highlighted color to be different from foreground-color
+gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/bold_color_same_as_fg false
+
+# set foreground to base0 and background to base03 and highlight color to base1
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/background_color `cat $dir/colors/base03`
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/foreground_color `cat $dir/colors/base0`
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/bold_color `cat $dir/colors/base1`
+
+# make sure the profile is set to not use theme colors
+gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/use_theme_colors false
20 set_light.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+dir=`dirname $0`
+
+PROFILE=${1:-Default}
+
+# set palette
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/palette `cat $dir/colors/palette`
+
+# set highlighted color to be different from foreground-color
+gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/bold_color_same_as_fg false
+
+# set foreground to base00 and background to base3 and highlight color to
+# base01
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/background_color `cat $dir/colors/base3`
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/foreground_color `cat $dir/colors/base00`
+gconftool-2 -s -t string /apps/gnome-terminal/profiles/$PROFILE/bold_color `cat $dir/colors/base01`
+
+# make sure the profile is set to not use theme colors
+gconftool-2 -s -t bool /apps/gnome-terminal/profiles/$PROFILE/use_theme_colors false
Please sign in to comment.
Something went wrong with that request. Please try again.