diff --git a/gedit/README.md b/gedit/README.md new file mode 100644 index 0000000..ea5c28c --- /dev/null +++ b/gedit/README.md @@ -0,0 +1,59 @@ +# Solarized for Gedit + +## Precision colors for machines and people - **Now with more Gedit!** + +--- + +### Solarized + +Solarized was created by [Ethan Schoonover][ES] and you can find out more +about the design work that went into it on his [project page][ES-solarized]. If +you would like to use Solarized in editors other than Gedit or on your terminal, +Ethan hosts the [main repository][SolarizedRepo] which combines all the available +ports in one place. + +### Solarized for Gedit + +Solarized was initially ported for Gedit by [Matthew Cantelon][MC] and can be +found at . + +### Screenshots + +![Light theme][LightImg] +![Dark theme][DarkImg] + +### Installation + +You can download the files in one of two ways: + +* using `git clone git://github.com/mattcan/solarized-gedit.git` +* using the **Download** button to get the ZIP file and extracting the files to + a folder + +Once the files are on your PC, copy `solarized-light.xml` and `solarized-dark.xml` +to one of these folders: + +* if you are the only user on your computer + + cp solarized-* ~/.local/share/gedit/styles + +* if you want everyone on your PC to be able to use the styles (_path + below is for Ubuntu_) + + sudo cp solarized-* /usr/share/gtksourceview-3.0/styles + +You can also use the built installer (_has only been tested with Ubuntu 12.10_) + +### Roadmap + +There are a few things that still need to be worked out... + +1. Clean up the **c:** specific style definitions +1. Add support for further custom style definitions + +[ES]: http://ethanschoonover.com +[ES-Solarized]: http://ethanschoonover.com/solarized +[SolarizedRepo]: https://github.com/altercation/solarized +[MC]: http://matthewcantelon.ca +[LightImg]: https://github.com/mattcan/solarized-gedit/raw/master/img/solarized_light.png +[DarkImg]: https://github.com/mattcan/solarized-gedit/raw/master/img/solarized_dark.png diff --git a/gedit/img/solarized_dark.png b/gedit/img/solarized_dark.png new file mode 100644 index 0000000..0f79cff Binary files /dev/null and b/gedit/img/solarized_dark.png differ diff --git a/gedit/img/solarized_light.png b/gedit/img/solarized_light.png new file mode 100644 index 0000000..9f495f9 Binary files /dev/null and b/gedit/img/solarized_light.png differ diff --git a/gedit/installer b/gedit/installer new file mode 100644 index 0000000..662b6ee --- /dev/null +++ b/gedit/installer @@ -0,0 +1,62 @@ +#!/bin/bash + +# shows usage instructions +usage() +{ +cat << EOF +usage: $0 [options] + +This script installs the Solarized styles for gedit. + +OPTIONS: + -h Shows this message + -a Install for all users + -l Install only for you +EOF +} + +chkdir() +{ +if [ ! -d "$INSTALLPATH" ]; then + if [ "$NEEDSUDO" == true ]; then + sudo mkdir -p "$INSTALLPATH" + else + mkdir -p "$INSTALLPATH" + fi +fi +} + +# path to install to +INSTALLPATH=$HOME/.local/share/gedit/styles +# will need to use sudo to install for all users +NEEDSUDO=false + +# loop through passed arguments +while getopts "hal" OPTION +do + case $OPTION in + h) + usage + exit 1 + ;; + a) + INSTALLPATH=/usr/share/gtksourceview-3.0/styles + NEEDSUDO=false + ;; + l) + INSTALLPATH=$HOME/.local/share/gedit/styles + ;; + ?) + INSTALLPATH=$HOME/.local/share/gedit/styles + ;; + esac +done + +# install for all users when sudo set to true +if [ "$NEEDSUDO" == true ]; then + chkdir + sudo cp solarized-*.xml "$INSTALLPATH" +else + chkdir + cp solarized-*.xml "$INSTALLPATH" +fi diff --git a/gedit/solarized-dark.xml b/gedit/solarized-dark.xml new file mode 100644 index 0000000..64737f3 --- /dev/null +++ b/gedit/solarized-dark.xml @@ -0,0 +1,131 @@ + + + + + + Matthew Cantelon + <_description>Port of the Dark Solarized theme by Ethan Schoonover. + + + + + + + + + + + + + + + + + + + + +