Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make it more visible that we _overwrite_ a selected profile

There is no good uninstall, so users should be warned about overwriting
a selected profile. Also specifies how to reset the Gnome Terminal
profiles completely.

Closes #15
  • Loading branch information...
commit 3727b6cdd256aa449edfb4e3e13ea6f8bb8b3f62 1 parent c8b9497
@sigurdga sigurdga authored
Showing with 24 additions and 7 deletions.
  1. +12 −6 README.mkd
  2. +12 −1 install.sh
View
18 README.mkd
@@ -8,14 +8,20 @@ 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. Here, you'll find a script that
-will set the palette colors, foreground, background and highlight colors to
-a light or dark color scheme.
+In Gnome terminal, you can add or edit profiles from the menu bar. However,
+this functionality is not easliy available from command line. Here, you'll
+find a script that will set the palette colors, foreground, background and
+highlight colors to a light or dark color scheme, overwriting a color profile
+you choose.
There is no uninstall option as that would probably make the scripts a few
-times bigger than what they are today. Code contributions to make an uninstall
-option would be highly appreciated by the users.
+times bigger than what they are today. However, if you are completely lost, you
+can reset all profiles to a kind of "factory default", which may be different
+from the profile that came with your distribution:
+`gconftool-2 --recursive-unset /apps/gnome-terminal`
+
+Code contributions to make an uninstall option or adding new profiles through
+the script, will be highly appreciated.
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
View
13 install.sh
@@ -5,6 +5,16 @@ gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
+echo "This script will ask you if you want a light or dark color scheme, and"
+echo "which Gnome Terminal profile to overwrite."
+echo
+echo "Please note that there is no uninstall option yet. If you do not wish"
+echo "to overwrite any of your profiles, you should create a new profile"
+echo "before you run this script. However, you can reset your colors to the"
+echo "Gnome default, by running:"
+echo "gconftool-2 --recursive-unset /apps/gnome-terminal"
+echo
+
###############################
### Select the color scheme ###
###############################
@@ -67,7 +77,8 @@ echo " Scheme: $scheme"
echo -e " Profile: $profile_name (gconf key: ${profiles[$profile_key]})\n"
#typeset -u confirmation
-echo -n "Is this correct? (YES to continue) "
+echo "Are you sure you want to overwrite the selected profile?"
+echo -n "(YES to continue) "
read confirmation
confirmation=$(echo $confirmation | tr '[:lower:]' '[:upper:]')
if [[ $confirmation != YES ]]; then
Please sign in to comment.
Something went wrong with that request. Please try again.