"Boost Productivity: Solarized Colors for Gnome Terminal"
Elevate Your Coding Experience: GNOME Terminal Colors with Solarized
Are you tired of the monotonous black-on-white coding experience in your GNOME terminal? It's time to boost your productivity and eye comfort with the Solarized color scheme. This popular scheme, designed by Ethan Schoonover, provides high contrast and readable colors, making it a favorite among developers worldwide. In this guide, we'll explore how to apply the Solarized color scheme to your GNOME terminal.
Understanding the Solarized Color Scheme
Solarized comes in two variants: dark and light. Both versions share the same color palette but differ in their base background and foreground colors. The scheme consists of eight colors, carefully chosen to provide high contrast and readability. Here's a brief overview:
- base03: Dark background (Dark: #002b36, Light: #fdf6e3)
- base02: Lighter background (Dark: #073642, Light: #f5f5dc)
- base01: Even lighter background (Dark: #b58900, Light: #f3f4f5)
- base00: Lightest background (Dark: #d33682, Light: #e3e3e3)
- base0: Foreground (Dark: #839496, Light: #657b83)
- base1: Brighter foreground (Dark: #93a1a1, Light: #93a1a1)
- base2: Brightest foreground (Dark: #eee8d5, Light: #268bd2)
- base3: Bright accent (Dark: #2aa198, Light: #268bd2)
Installing Solarized on GNOME Terminal
To apply the Solarized color scheme to your GNOME terminal, you'll need to install the gnome-terminal package if you haven't already. Then, follow these steps:
- Open your terminal and create a new file for your color scheme settings:
touch ~/.config/gtk-3.0/settings.ini - Open the newly created file with a text editor, e.g.,
nano ~/.config/gtk-3.0/settings.ini - Add the following lines, depending on whether you prefer the dark or light version:
Dark version:
[GtkApplication] gtk-application-prefer-dark-theme=1
Light version:
[GtkApplication] gtk-application-prefer-dark-theme=0
- Save and close the file, then restart your terminal for the changes to take effect.
Customizing Your GNOME Terminal
Now that you've set the base theme, let's customize your terminal further using the Solarized color scheme. Open your terminal preferences (gnome-terminal --profile-manager) and create a new profile. Then, follow these steps to apply the Solarized colors:
| Setting | Dark Version | Light Version |
|---|---|---|
| Background color | #002b36 | #fdf6e3 |
| Foreground color | #839496 | #657b83 |
| Cursor color | #2aa198 | #268bd2 |
| Color palette | #073642, #b58900, #d33682, #eee8d5, #93a1a1, #eee8d5, #268bd2, #2aa198 | #f5f5dc, #f3f4f5, #e3e3e3, #93a1a1, #268bd2, #2aa198, #657b83, #d33682 |
Apply these colors to the respective settings in your terminal profile, and you're all set! Don't forget to save your new profile and make it the default.
Conclusion
By following this guide, you've successfully transformed your GNOME terminal into a visually appealing and productive workspace with the Solarized color scheme. Embrace the power of high contrast and readable colors to enhance your coding experience. Happy coding!