Update instructions for gnome-terminal

The previous instructions no longer worked on the latest Ubuntu
LTS/Gnome 3.20. This commit provides an alternative way to set Spacegray
colors using dconf to set the values.
This commit is contained in:
Akshay Hegde 2016-10-30 20:59:37 -07:00
parent adb621e3d1
commit bb13c2c293
No known key found for this signature in database
GPG Key ID: D053ECD50677261D
2 changed files with 25 additions and 82 deletions

View File

@ -65,16 +65,35 @@ Spacegray's color palette, it will look beautiful.
On OS X, colorschemes for iTerm2 and Terminal.app are provided with the download. On OS X, colorschemes for iTerm2 and Terminal.app are provided with the download.
Simply double click to install. Simply double click to install.
Spacegray.terminator is also provided for Terminator and can be installed by ## Terminator
Spacegray.terminator is provided for Terminator and can be installed by
copying to `~/.config/terminator/config` on Linux or copying to `~/.config/terminator/config` on Linux or
`$XDG_CONFIG_HOME/terminator/config` if you're running OS X. `$XDG_CONFIG_HOME/terminator/config` if you're running OS X.
For gnome-terminal on Linux, simply move the `%gconf.xml`, provided with the ## Gnome Terminal
download, to the `~/.gconf/apps/gnome-terminal/profiles/Default` folder. You
might have to restart gconfd for changes to take effect ( Use `gconftool
--shutdown`, move the file, then use `gconftool-2 --spawn`)
### Xresources For gnome terminal, the instructions are a tad bit complicated since
configuration is done via dconf.
First, launch a new instance of Gnome Terminal and then go to Preferences ->
Profiles and click Edit on the default profile being used. Copy the "Profile ID"
from that window. Open a new Terminal and set a local variable like so:
profile_id=<profile_id_here>
In the same terminal window, run a set of dconf write commands to set the colors:
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/visible-name "'Spacegray'"
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/background-color "'rgb(17,19,20)'"
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/foreground-color "'rgb(183,187,183)'"
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/use-theme-colors "false"
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/use-theme-transparency "false"
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_id/palette "['rgb(44,47,51)', 'rgb(176,76,80)', 'rgb(145,150,82)', 'rgb(226,153,92)', 'rgb(102,137,157)', 'rgb(141,100,148)', 'rgb(82,124,119)', 'rgb(96,99,96)', 'rgb(75,80,86)', 'rgb(176,76,80)', 'rgb(148,152,91)', 'rgb(226,153,92)', 'rgb(102,137,157)', 'rgb(141,100,148)', 'rgb(82,124,119)', 'rgb(221,227,220)']"
The terminal should then reflect Spacegray's colors.
## Xresources
For Linux/BSD users, here is a sample ~/.Xresources: For Linux/BSD users, here is a sample ~/.Xresources:

View File

@ -1,76 +0,0 @@
<?xml version="1.0"?>
<gconf>
<entry name="custom_command" mtime="1420709894" type="string">
<stringvalue>zsh</stringvalue>
</entry>
<entry name="alternate_screen_scroll" mtime="1420709894" type="bool" value="true"/>
<entry name="use_custom_command" mtime="1420709894" type="bool" value="true"/>
<entry name="font" mtime="1420709894" type="string">
<stringvalue>Ubuntu Mono 12</stringvalue>
</entry>
<entry name="scrollbar_position" mtime="1420709894" type="string">
<stringvalue>hidden</stringvalue>
</entry>
<entry name="use_system_font" mtime="1420709894" type="bool" value="false"/>
<entry name="word_chars" mtime="1420708695" type="string">
<stringvalue>-A-Za-z0-9,./?%&amp;#:_=+@~</stringvalue>
</entry>
<entry name="palette" mtime="1420709894" type="string">
<stringvalue>#2C2C2F2F3333:#B0B04C4B504F:#919196965251:#E2E299995C5C:#666689889D9D:#8D8D64649494:#52527C7C7777:#606063636060:#4B4B50505656:#B0B04C4B504F:#949498985B5B:#E2E299995C5C:#666689889D9D:#8D8D64649494:#52527C7C7777:#DDDDE3E3DCDC</stringvalue>
</entry>
<entry name="default_size_rows" mtime="1420709894" type="int" value="40"/>
<entry name="title" mtime="1420708695" type="string">
<stringvalue>Terminal</stringvalue>
</entry>
<entry name="use_theme_colors" mtime="1420709894" type="bool" value="false"/>
<entry name="cursor_blink_mode" mtime="1420708695" type="string">
<stringvalue>system</stringvalue>
</entry>
<entry name="exit_action" mtime="1420708695" type="string">
<stringvalue>close</stringvalue>
</entry>
<entry name="scrollback_lines" mtime="1420708695" type="int" value="512"/>
<entry name="scrollback_unlimited" mtime="1420709894" type="bool" value="true"/>
<entry name="visible_name" mtime="1420709894" type="string">
<stringvalue>Spacegray</stringvalue>
</entry>
<entry name="silent_bell" mtime="1420709894" type="bool" value="true"/>
<entry name="delete_binding" mtime="1420708695" type="string">
<stringvalue>escape-sequence</stringvalue>
</entry>
<entry name="scroll_on_keystroke" mtime="1420708695" type="bool" value="true"/>
<entry name="background_type" mtime="1420708695" type="string">
<stringvalue>solid</stringvalue>
</entry>
<entry name="default_size_columns" mtime="1420709894" type="int" value="130"/>
<entry name="use_custom_default_size" mtime="1420709894" type="bool" value="true"/>
<entry name="default_show_menubar" mtime="1420709201" type="bool" value="true"/>
<entry name="bold_color_same_as_fg" mtime="1420708695" type="bool" value="true"/>
<entry name="background_color" mtime="1420709894" type="string">
<stringvalue>#111113131414</stringvalue>
</entry>
<entry name="allow_bold" mtime="1420708695" type="bool" value="true"/>
<entry name="backspace_binding" mtime="1420708695" type="string">
<stringvalue>ascii-del</stringvalue>
</entry>
<entry name="title_mode" mtime="1420708695" type="string">
<stringvalue>replace</stringvalue>
</entry>
<entry name="bold_color" mtime="1420709894" type="string">
<stringvalue>#000000000000</stringvalue>
</entry>
<entry name="scroll_on_output" mtime="1420708695" type="bool" value="false"/>
<entry name="scroll_background" mtime="1420708695" type="bool" value="true"/>
<entry name="update_records" mtime="1420708695" type="bool" value="true"/>
<entry name="login_shell" mtime="1420709894" type="bool" value="true"/>
<entry name="foreground_color" mtime="1420709894" type="string">
<stringvalue>#B7B7BBBBB7B7</stringvalue>
</entry>
<entry name="background_darkness" mtime="1420708695" type="float" value="0.5"/>
<entry name="cursor_shape" mtime="1420708695" type="string">
<stringvalue>block</stringvalue>
</entry>
<entry name="background_image" mtime="1420708695" type="string">
<stringvalue></stringvalue>
</entry>
</gconf>