From 74e1cf9fb84f95f103159e15c6b3f357cc77929c Mon Sep 17 00:00:00 2001 From: Mayccoll Date: Sun, 14 Dec 2014 15:10:29 -0500 Subject: [PATCH] new script --- base.sh | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 base.sh diff --git a/base.sh b/base.sh new file mode 100755 index 0000000..2dc8ce2 --- /dev/null +++ b/base.sh @@ -0,0 +1,70 @@ +#!/bin/bash + +# ====================CONFIG THIS =============================== # + +BACKGROUD_COLOR="#2F373B" # Background Color +FOREGROUND_COLOR="#d9e6f2" # Text +COLOR_01="#383838" # HOST +COLOR_03="#939f93" # COMMAND +COLOR_04="#9f9f93" # COMMAND_COLOR2 +COLOR_10="#ab4642" # COMMAND_ERROR +COLOR_05="#7cafc2" # PATH +COLOR_07="#ab4642" # PROMP +COLOR_11="#a1b56c" # EXEC +COLOR_13="#7cafc2" # FOLDER + +COLOR_02="#9f9393" # SYNTAX_STRING +COLOR_06="#9f939f" # SYNTAX_VAR + +COLOR_08="#F2F2F2" # COLOR_08 +COLOR_09="#5D5D5D" # COLOR_09 +COLOR_12="#FFD00A" # COLOR_12 +COLOR_14="#FF1D62" # COLOR_14 +COLOR_15="#4BB8FD" # COLOR_15 +COLOR_16="#A020F0" # COLOR_16 + +# =============================================================== # + + +# | +# | Convert RGB to gnome colors +# | =========================================== +function gnome_color () { + AA=${1:1:2} + BB=${1:3:2} + CC=${1:5:2} + + echo "#${AA}${AA}${BB}${BB}${CC}${CC}" +} + + + +# | +# | Set gnome Variables +# | =========================================== + +BACKGROUD_COLOR=$(gnome_color $BACKGROUD_COLOR) +FOREGROUND_COLOR=$(gnome_color $FOREGROUND_COLOR) +COLOR_01=$(gnome_color $COLOR_01) +COLOR_03=$(gnome_color $COLOR_03) +COLOR_04=$(gnome_color $COLOR_04) +COLOR_10=$(gnome_color $COLOR_10) +COLOR_05=$(gnome_color $COLOR_05) +COLOR_07=$(gnome_color $COLOR_07) +COLOR_11=$(gnome_color $COLOR_11) +COLOR_13=$(gnome_color $COLOR_13) + +COLOR_02=$(gnome_color $COLOR_02) +COLOR_06=$(gnome_color $COLOR_06) + + + +# | +# | Apply Variables +# | =========================================== + +gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_theme_background --type bool false +gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_theme_colors --type bool false +gconftool-2 -s -t string /apps/gnome-terminal/profiles/Default/background_color "${BACKGROUD_COLOR}" +gconftool-2 -s -t string /apps/gnome-terminal/profiles/Default/foreground_color "${FOREGROUND_COLOR}" +gconftool-2 -s -t string /apps/gnome-terminal/profiles/Default/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}" \ No newline at end of file