Skip to content

Commit

Permalink
Make it more visible that we _overwrite_ a selected profile
Browse files Browse the repository at this point in the history
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
sigurdga committed Aug 25, 2012
1 parent c8b9497 commit 3727b6c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
18 changes: 12 additions & 6 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###
###############################
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3727b6c

Please sign in to comment.