1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Merge pull request #43 from oxydron/master

[Hotfix] Using terminal name instead OS
This commit is contained in:
Mayccoll 2016-07-05 09:32:34 -05:00 committed by GitHub
commit 4444489190

View File

@ -13,12 +13,11 @@ function gnome_color () {
}
# |
# | Check for OS and decide how to apply
# | Check for the terminal name and decide how to apply
# | ===========================================
if [ $(lsb_release -c -s) = "freya" ]; then
if [ $(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=) = "pantheon-terminal" ]; then
# |
# | Apply Variables
# | Applying values on pantheon-terminal
# | ===========================================
gsettings set org.pantheon.terminal.settings background "${BACKGROUND_COLOR}"
gsettings set org.pantheon.terminal.settings foreground "${FOREGROUND_COLOR}"
@ -26,9 +25,8 @@ if [ $(lsb_release -c -s) = "freya" ]; then
gsettings set org.pantheon.terminal.settings palette "${COLOR_01}:${COLOR_02}:${COLOR_03}:${COLOR_04}:${COLOR_05}:${COLOR_06}:${COLOR_07}:${COLOR_08}:${COLOR_09}:${COLOR_10}:${COLOR_11}:${COLOR_12}:${COLOR_13}:${COLOR_14}:${COLOR_15}:${COLOR_16}"
else
# |
# | Set gnome Variables
# | Applying values on gnome-terminal
# | ===========================================
BACKGROUND_COLOR=$(gnome_color $BACKGROUND_COLOR)
FOREGROUND_COLOR=$(gnome_color $FOREGROUND_COLOR)