Created
April 27, 2012 15:01
-
-
Save sukima/2509971 to your computer and use it in GitHub Desktop.
A convinient one stop solorized install for gnome-terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Gist: https://gist.github.com/2509971 | |
# | |
# This is a psuedo-fork of [gnome-terminal-colors=solarized][1] | |
# The values were hard coded (where the above was modularized) for | |
# ease of using curl or wget to pull from a gist. | |
# | |
# curl https://raw.github.com/gist/2509971/solarized.sh | bash -s | |
# | |
# Best use case is when using a live Ubuntu CD and you have no | |
# permanent terminal settings. | |
# | |
# [1]: https://github.com/sigurdga/gnome-terminal-colors-solarized | |
PROFILE=${1:-Default} | |
# set palette | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3" | |
# 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 | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/bold_color" --type string "#9393a1a1a1a1" | |
# set foreground to base0 and background to base03 and highlight color to base1 | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/background_color" --type string "#00002B2B3636" | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/foreground_color" --type string "#838394949696" | |
# make sure the profile is set to not use theme colors | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/use_theme_background" --type bool false | |
gconftool-2 --set "/apps/gnome-terminal/profiles/$PROFILE/use_theme_colors" --type bool false | |
echo "Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment