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

Fixed warning on Linux

This commit is contained in:
Dimitri Bohlender 2017-10-19 21:24:38 +02:00
parent 49216ea36d
commit 96c048b92b

View File

@ -90,11 +90,21 @@ else
TERMINAL=$(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=)
fi
# |
# | Apply color scheme to terminal
# | ===========================================
if [ $TERMINAL = "iTerm.app" ]; then
if [[ $TERMINAL =~ "guake" ]]; then
# |
# | Applying values if string contains guake.main
# | =============================================
# Note: Guake still uses gconf but plans to support dconf/gsettings when reaching 1.0.0.
# See notes for 0.8.1 in https://github.com/Guake/guake/blob/master/NEWS.
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 = "iTerm.app" ]; then
# |
# | Applying values on iTerm2
# | ===========================================
@ -117,6 +127,7 @@ if [ $TERMINAL = "iTerm.app" ]; then
COLOR_15=$(convertNameAndRGBtoITerm "Ansi 14 Color" $COLOR_15)
COLOR_16=$(convertNameAndRGBtoITerm "Ansi 15 Color" $COLOR_16)
# Assemble color scheme file contents
ITERMCOLORS='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>'${BACKGROUND_COLOR}${FOREGROUND_COLOR}${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}'</dict></plist>'
# Dump iTerm color scheme to file and import it by opening it
@ -124,17 +135,6 @@ if [ $TERMINAL = "iTerm.app" ]; then
open "${PROFILE_NAME}.itermcolors"
rm "${PROFILE_NAME}.itermcolors"
elif [[ $TERMINAL =~ "guake" ]]; then
# |
# | Applying values if string contains guake.main
# | =============================================
# Note: Guake still uses gconf but plans to support dconf/gsettings when reaching 1.0.0.
# See notes for 0.8.1 in https://github.com/Guake/guake/blob/master/NEWS.
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