Giter VIP home page Giter VIP logo

gnome-terminal-colors's Introduction

Color schemes for Gnome Terminal

Scripts for setting base-16, solarized and zenburn color schemes in gnome-terminal.

Warning

Please, note that github repository is only a mirror, the main efforts in this code are submitted to gitlab.

Installation and usage

To be able to uninstall, we highly recommend that you create a new Gnome Terminal profile, using the menus in Gnome Terminal.

You need the dconf command (if you run a recent Gnome version). With Ubuntu, this can be installed by running

$ sudo apt-get install dconf-cli

Then clone the repository and you can run the installation script:

$ git clone https://github.com/gnumoksha/gnome-terminal-colors.git
$ cd gnome-terminal-colors
$ ./install.sh

And just follow the instructions.

To run this script remotely or via cron (or from any shell where DBUS_SESSION_BUS_ADDRESS is not set), you need to start a dbus connection:

$ dbus-launch ./install.sh

Uninstall

Change to another profile in Gnome Terminal, then remove the Solarized profile by running:

Gnome 3.6 or lower

$ rm -r ~/.gconf/apps/gnome-terminal/profiles/Solarized/
$ gconftool-2 --recursive-unset /apps/gnome-terminal

Gnome 3.8 or higher

Be sure to have the dconf-cli package installed and do:

$ dconf reset -f /org/gnome/terminal/legacy/profiles:/PROFILE_ID"

Replace PROFILE_ID by your profile ID (you can get it in your profile configuration in gnome-terminal).

Themes

Each theme has is own folder in the colors dir. It contains the following files:

  • bd_color: bold color
  • bg_color: background color
  • fg_color: foreground color
  • palette: list of colors for all standard color codes.

No additional configuration is needed to add a theme, the installation script just list at launch the children folders in the colors dir.

Dircolors

The installation script will ask if a solarized dircolors is wanted. It will be downloaded and installed as ~/.dir_colors/dircolors. On CentOS, it can be an issue (see issue #62), as the default setup use ~/.dir_colors as dircolors. In that case, you should manually move ~/.dir_colors as ~/.dir_colors/dircolors before starting the installation script.

If the dircolors is not applied, please check that your shell actually source your dircolors:

if [ -f ~/.dir_colors/dircolors ]
    then eval `dircolors ~/.dir_colors/dircolors`
fi

This should not be necessary on major distributions (such as Ubuntu, Fedora, etc.) but could be on ArchLinux, Gentoo and others.

Similiar projects

FAQ

Conflicting background colors in VIM

Use the 16 colors terminal option to get VIM to look like GVIM with solarized colors.

set t_Co=16

gnome-terminal-colors's People

Contributors

absynce avatar adamv avatar aruhier avatar captbunzo avatar dangra avatar erikbrinkman avatar gnumoksha avatar hustlion avatar jan-warchol avatar reinaldo-z avatar ritesh-pandey avatar sbakker avatar schwastek avatar sigurdga avatar sveiss avatar tarrasch avatar tobinjt avatar ustuehler avatar vimalkvn avatar weynhamz avatar wieczorek1990 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gnome-terminal-colors's Issues

Error when wanted to replace actual dircolors

# ...
A dircolors already exists in /home/nvb/.dir_colors, but can be incompatible with the solarized color scheme causing some colors problems when doing a "ls".

1) Replace the actual dircolors by seebi' dircolors-solarized: https://github.com/seebi/dircolors-solarized (the actual dircolors will be keeped as backup).

2) [DEFAULT] I am awared about this potentiall problem and will check my dircolors (default path: ~/.dir_colors/dircolors) in case of conflict.

Enter your choice : [2] 1

--2023-06-04 21:41:06--  https://raw.github.com/seebi/dircolors-solarized/master//dircolors.ansi-zenburn
CA-Zertifikat »/etc/ssl/certs/ca-certificates.crt« wurde geladen
Auflösen des Hostnamens raw.github.com (raw.github.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Verbindungsaufbau zu raw.github.com (raw.github.com)|185.199.108.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://raw.githubusercontent.com/seebi/dircolors-solarized/master//dircolors.ansi-zenburn [folgend]
--2023-06-04 21:41:07--  https://raw.githubusercontent.com/seebi/dircolors-solarized/master//dircolors.ansi-zenburn
Auflösen des Hostnamens raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: /seebi/dircolors-solarized/master/dircolors.ansi-zenburn [folgend]
--2023-06-04 21:41:07--  https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-zenburn
Wiederverwendung der bestehenden Verbindung zu raw.githubusercontent.com:443.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2023-06-04 21:41:07 FEHLER 404: Not Found.

Download failed, dircolors will not be copied but you 
can install it from the official repository : https://github.com/seebi/dircolors-solarized
/home/nvb/.dir_colors/dircolors already exists, renaming it to /home/nvb/.dir_colors/dircolors.old

The new dircolors have been installed as /home/nvb/.dir_colors/dircolors.

Add "eval `dircolors /path/to/dircolorsdb`" in your shell configuration file (.bashrc, .zshrc, etc...) to use new dircolors.
For Fish, add the following to config.fish instead:
	eval (dircolors /path/to/dircolorsdb | head -n 1 | sed 's/^LS_COLORS=/set -x LS_COLORS /;s/;$//')

Do not forget to remove old dircolors from your shell configuration file if they were named differently than the one newly installed.

If there is any problem with the colors when doing a "ls", please check your dircolors.

At the end, the install.sh need to use a different dircolors link or your should remove this.

Thanks so for far for your script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.