-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gogh 2.0 #160
Gogh 2.0 #160
Conversation
Keep up to date with upstream
Changed one liner command to a more simpler one
Can you do this in a separate PR, that would make this PR a little bit easy to review. One step at a time.
Wouldn't this cause problems for people who do not use
Make sure that you do not pollute global variable space with all the exported variables, make sure to |
I will make a separate PR for this once this PR has been merged so to follow the new theme format.
It will not. Consider this
Now if you call a script by specifying which shell to use i.e Since all script files do use a shebang that specifies bash as the interpreter - all scripts will work as long as the user have bash installed, regardless of what your main shell is
This is a good point. I will fix accordingly |
@phenonymous His is huge and awesome 😲🤩👏 |
also @notlmn thanks for your review 🙇♀️ |
Hi @phenonymous! |
@phenonymous Thanks for the PR, I really like rewrites, they always bring something new. |
And I'd suggest from now on, to squash-commit any PR's. Because there is no point importing all the intermediary commits in a PR into the repo, and the original commits are still available in the PR anyway. And again, that's just what I think, and only a suggestion. Thanks. |
Wow this is awesome! 🎉 |
Gogh 2.0 🎉 🎉 🎉 🎉 Another amazing PR thank you very much
Fix suggestions in Gogh-Co#160
Gogh 2.0
This PR started with me wanting this to work for tilix but ended up with a much bigger update. I'll outline what this update contains below.
TOC
List of changes
General changes
curlsource
from all scripts where applicable. This got replaced bybash -c "$(curl <url>)"
insteadsource
commands and replaced withbash -c <file>
for remote files andbash
for local files[
tests to[[
curl
andwget
commands to include silent option. This is to avoid cluttering the screenGeneral theme changes
gogh_colors
toapply-colors.sh
export
before all variables since allsource
commands got replacedgogh dot sh
set_gogh
apply-colors.sh
$PPID
is no longer a shell.apply-colors dot sh
if
statement and replaced it withcase
test/print-themes.sh
was invokedTilix support
This update adds support for tilix terminal. tilix support both profiles and color schemes. A code subsection in
gogh.sh
checks if current terminal is tilix and asks the user if they want to use color schemes instead of profiles. If they do a temporary directory is made and all color schems gets copied over to that folder. When all themes has been processed all color schemes are copied over to the default tilix color scheme directory$HOME/.config/tilix/schemes
and the temporary directory is deleted.If the user aborts before all themes has been processed, the temporary directory gets deleted and no color schemes are copied.
Overhaul of apply-colors.sh
The reason why I completely changed this script is because I found the old script cumberstone to troubleshoot. Instead of
if
statements I use acase
statement instead and from there calls functions that are applicable for the current terminal.These functions are
apply_cygwin
apply_darwin
apply_guake
apply_elementary
apply_gtk
With this change I was able to merge pantheon-terminal and elementary-terminal to one function,
apply_elementary
. Likewiseapply_gtk
is a merge of gnome-terminal, mate-terminal and tilix. This makes it much easier to add any gtk-vte based terminal in the future.Issues
This can happen even if a default profile exists
Bug fixes not listed in issues
Verification
This is a non-breaking update. I have merged all the latest commits into this PR so you would be able to auto-merge.
The following table illustrates which terminals and OS's I have verified this to be working on.
The verification tests inluded the following:
Tested both locally (from cloned repo) and remote (using the URL mentioned above)
gogh.sh
themes/theme.sh
test/print-themes.sh