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

Merge branch 'hotfix-os-2-terminals'

This commit is contained in:
Ben Hur Nascimento 2016-07-01 18:24:26 -03:00
commit 2a807354f5

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 background "${BACKGROUND_COLOR}"
gsettings set org.pantheon.terminal.settings foreground "${FOREGROUND_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}" 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 else
# | # |
# | Set gnome Variables # | Applying values on gnome-terminal
# | =========================================== # | ===========================================
BACKGROUND_COLOR=$(gnome_color $BACKGROUND_COLOR) BACKGROUND_COLOR=$(gnome_color $BACKGROUND_COLOR)
FOREGROUND_COLOR=$(gnome_color $FOREGROUND_COLOR) FOREGROUND_COLOR=$(gnome_color $FOREGROUND_COLOR)