Gogh-Co / Gogh

Gogh is a collection of color schemes for various terminal emulators, including Gnome Terminal, Pantheon Terminal, Tilix, and XFCE4 Terminal also compatible with iTerm on macOS.
https://gogh-co.github.io/Gogh/
MIT License
9.29k stars 596 forks source link

[Feature Request] : Option to change the LS_COLORS and PS1 variable #421

Open martinprad0 opened 8 months ago

martinprad0 commented 8 months ago

I consider that there should be a supplementary script to change the LS_COLORS and the PS1 variable based on the theme colors. I don't know how much extra work should be required to differentiate between dark and light themes in order to create the correct palette for these variables. Additionally, I would like to know how can I contribute or if there are any resources related to for the following request:

I'm currently using GNOME-Terminal, and I would like to have a different profile/theme, LS_COLORS and PS1 variable for every new terminal window I open. In fact, I would like to know if there's a way to change the current profile/theme of a tab from the GNOME-Terminal using commands.

stablestud commented 5 months ago

It should be possible to calculate the LS_COLORS/DIRCOLORS based on the theme values. But how these are applied to the shell is out of scope for Gogh because it only applies the colors to the terminal configuration files.

What you could do is write a script that generates the LS_COLORS/DIRCOLORS values and we can print it out when Gogh applies the theme. The user then can copy those values to their .bashrc or whatever shell config