Added support for Guake terminal

This commit is contained in:
Dimitri Bohlender 2017-10-16 16:54:57 +02:00
parent 2a3b322c8c
commit a921976275
1 changed files with 10 additions and 2 deletions

View File

@ -59,7 +59,16 @@ set_theme() {
# | ===========================================
TERMINAL=$(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=)
if [ $TERMINAL = "pantheon-terminal" ]; then
if [[ $TERMINAL =~ "guake" ]]; then
# |
# | Applying values if string contains guake.main
# | =============================================
gconftool-2 -s -t string /apps/guake/style/background/color "${BACKGROUND_COLOR}"
gconftool-2 -s -t string /apps/guake/style/font/color "${FOREGROUND_COLOR}"
gconftool-2 -s -t string /apps/guake/style/font/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}"
gconftool-2 -s -t string /apps/guake/style/font/palette_name "${PROFILE_NAME}"
elif [ $TERMINAL = "pantheon-terminal" ]; then
# |
# | Applying values on pantheon-terminal
# | ===========================================
@ -104,7 +113,6 @@ elif [ $TERMINAL = "mate-terminal" ]; then
exit 0
else
# |
# | Applying values on gnome-terminal