项目作者: Mayccoll

项目描述 :
Color Scheme for Gnome Terminal and Pantheon Terminal
高级语言: Shell
项目地址: git://github.com/Mayccoll/Gogh.git
创建时间: 2013-11-19T01:01:48Z
项目社区:https://github.com/Mayccoll/Gogh

开源协议:

下载



Gogh


Gogh

:small_blue_diamond: Visit the Website :small_blue_diamond:

Created Badge

Color Scheme Implementer for Terminals

Gogh is a collection of color schemes for various terminal emulators, including Gnome Terminal, Pantheon Terminal, Tilix, and XFCE4 Terminal. These schemes are designed to make your terminal more visually appealing and improve your productivity by providing a better contrast and color differentiation. (This fork of Gogh includes a color scheme named “Vaombe”.)

The inspiration for Gogh came from the clean and minimalistic design of Elementary OS, but the project has since grown to include a variety of unique and beautiful options. Not only does Gogh work on Linux systems, but it’s also compatible with iTerm on macOS, providing a consistent and visually appealing experience across platforms.









Index:




- Pre-Install
- Install
- Install (Non-Interactive mode)
- Terminal Support
- Available Themes
- Help
- Create your Own Theme!
- As Command line
- Accessibility ~ WCAG
- First commit
- Credits
- Contributors
- Author
- Why Gogh?
- Mentions
- Stargazers Over Time








gogh


⚙️ Pre-Install

In your terminal, type:

For Debian/Ubuntu:

  1. sudo apt-get install dconf-cli uuid-runtime

For Arch Linux:

  1. sudo pacman -S dconf util-linux-libs

You can now install Gogh in Interactive Mode (Easier) or Non-Interactive Mode! (Ideal for Scripting)




Install

Interactive Mode:

1. Just copy and paste this one-line command:

  1. bash -c "$(wget -qO- https://git.io/vQgMr)"

Or, if you’re a Mac user:

  1. bash -c "$(curl -sLo- https://git.io/vQgMr)"

2. Select your installed theme from your terminal.

DEMO:

gogh-demo-profile




⚙️ Install (Non-Interactive Mode)

Two ways:

  • Clone the repository.
  • Download the only required files. (Bare Minimum!)

Clone Repository

  1. # Clone the repo into "$HOME/src/gogh"
  2. mkdir -p "$HOME/src"
  3. cd "$HOME/src"
  4. git clone https://github.com/Gogh-Co/Gogh.git gogh
  5. cd gogh
  6. # necessary in the Gnome terminal on ubuntu
  7. export TERMINAL=gnome-terminal
  8. # necessary in the Alacritty terminal
  9. pip install -r requirements.txt
  10. export TERMINAL=alacritty
  11. # Enter theme installs dir
  12. cd installs
  13. # install themes
  14. ./atom.sh
  15. ./dracula.sh

Download the only required files. (Bare Minimum!)

  1. # Download apply script
  2. wget https://github.com/Gogh-Co/Gogh/raw/master/apply-colors.sh
  3. # Download desired themes from ./installs/ like this:
  4. wget https://github.com/Gogh-Co/Gogh/raw/master/installs/selenized-dark.sh
  5. # Optional - download Alacritty dependency (may require additional python packages, see requirements.txt for more)
  6. wget https://github.com/Gogh-Co/Gogh/raw/master/apply-alacritty.py
  7. # Optional - download Terminator dependency (may require additional python packages, see requirements.txt for more)
  8. wget https://github.com/Gogh-Co/Gogh/raw/master/apply-terminator.py
  9. # You can also specify where to find the apply scripts with the following environmental variables:
  10. GOGH_APPLY_SCRIPT=/path/to/apply-colors.sh
  11. GOGH_ALACRITTY_SCRIPT=/path/to/apply-alacritty.py # only needed if applying to Alacritty terminal
  12. GOGH_TERMINATOR_SCRIPT=/path/to/apply-terminator.py # only needed if applying to Terminator terminal
  13. # Control Gogh behavior with the following:
  14. TERMINAL=gnome-terminal # Select for which terminal to install the theme
  15. # (see apply-colors.sh for all supported terminals)
  16. GOGH_NONINTERACTIVE= # Make output silent and answer all prompts with default value
  17. # (errors will still be printed)
  18. GOGH_USE_NEW_THEME= # Make theme the currently used/default one of the terminal
  19. # Actual effect may differ between terminals
  20. # Supported terminals: xfce4-terminal
  21. # Apply downloaded theme (apply script must be in the same folder)
  22. TERMINAL=gnome-terminal bash ./selenized-dark.sh
  23. # OR specify apply script path
  24. GOGH_APPLY_SCRIPT=/path/to/file/apply-colors.sh bash ./selenized-dark.sh




💻 Terminal Support

Here are some terminals that Gogh is supported with:




🎨 Themes

We have lots of themes in stock! Check them out here!




👀 WCAG - Accessibility Contrast




❓ HELP

🔹 Debian Fixes

Fix 1 (@romzie):

  • Reset your profiles:
  1. dconf reset -f /org/gnome/terminal/legacy/profiles:/

Fix 2 (@MalwareJedi):

  • Reset your profiles:
  1. dconf reset -f /org/gnome/terminal/legacy/profiles:/
  • Close your terminal; re-open it.
  • Go to Edit —-> Preferences —-> Profiles.
  • Create a new profile called Default.
  • Close the terminal. re-open it.
  • Confirm that Default is still listed in your profiles.
  • If it is, run the Gogh script again.

Fix 3 (@sui74):

  • Reset your profiles:
  1. dconf reset -f /org/gnome/terminal/legacy/profiles:/
  • “Unname” Rename profile called “default”.
  1. sudo apt install uuid-runtime
  • Run the Gogh script.

🔹 Elementary OS

1 - Uncomment the following line in .bashrc ;you can find this file in your /home/USER/ directory.

  1. #force_color_prompt=yes

2 - Execute in terminal

  1. source .bashrc




🖼️ Create your Own Theme!

Good news! Now, creating themes are easier than ever.

All you need to do is to create a YAML format file, following the example of the other files in the themes folder.

Some rules to keep in mind:

  • The file name should match the name of the theme. For example:
    • Filename: Solarized Dark.yml
    • Inside the .yml file: name: 'Solarized Dark'
  • Use title case for all words by capitalizing their first letter.
  • Ensure that the contrast is sufficient for good legibility.

Now, you can send your Pull Request
Thank you for collaborating!

Theme “.yml” template

If you indeed use this, replace the HEX values with your own ones.

  1. ---
  2. name: 'Gogh'
  3. author: '' # 'Author Name (http://website.com)'
  4. variant: '' # Dark or Light
  5. color_01: '#292D3E' # Black (Host)
  6. color_02: '#F07178' # Red (Syntax string)
  7. color_03: '#62DE84' # Green (Command)
  8. color_04: '#FFCB6B' # Yellow (Command second)
  9. color_05: '#75A1FF' # Blue (Path)
  10. color_06: '#F580FF' # Magenta (Syntax var)
  11. color_07: '#60BAEC' # Cyan (Prompt)
  12. color_08: '#ABB2BF' # White
  13. color_09: '#959DCB' # Bright Black
  14. color_10: '#F07178' # Bright Red (Command error)
  15. color_11: '#C3E88D' # Bright Green (Exec)
  16. color_12: '#FF5572' # Bright Yellow
  17. color_13: '#82AAFF' # Bright Blue (Folder)
  18. color_14: '#FFCB6B' # Bright Magenta
  19. color_15: '#676E95' # Bright Cyan
  20. color_16: '#FFFEFE' # Bright White
  21. background: '#292D3E' # Background
  22. foreground: '#BFC7D5' # Foreground (Text)
  23. cursor: '#BFC7D5' # Cursor

Explanation of colors and variables

The colors of the terminal are composed of 18 colors in 3 sections.

Section 1: Regular text.

Section 2: Bold text.

Section 3: text and background.

The basic colors are 8:

  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Purple
  • Cyan
  • White

In comments variables is that of the console belongs each color.

Here is a picture that explains a little better as colors are distributed.

Colors


👨‍💻 As command line

WARNING: Only if you know what you are doing or trust me :)

  1. sudo wget -O /usr/local/bin/gogh https://git.io/vQgMr && sudo chmod +x /usr/local/bin/gogh

Now in your terminal just type gogh:

  1. gogh


🌱 First commit:

Nov 18, 2013 - aa9871e


:heart: Credits:


:heart: Contributors:

Many thanks to all who have participated in this project.

@contributors






🧠 Author (contributor)

I cannot claim to be the only author of this project. Without the help of the people who have contributed, this would not have been possible. Therefore, that’s why all contributors are listed first in this document. While I am listed as the author, the true authors are all those who are mentioned in the document. I would like to express my gratitude to all of them, as well as to future contributors.




🖌️ Why Gogh?

There is no blue without yellow and without orange.

Vincent Van Gogh




📣 Mentions


🌟 Stargazers Over Time

Stargazers over time