mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
add script for chalk theme
This commit is contained in:
parent
21c09c240a
commit
8ef47afb14
@ -12,6 +12,10 @@ Color Schemes For Ubuntu, Linux Mint and all distributions that use gnome termin
|
||||
|
||||
## [What's New](https://github.com/Mayccoll/Elementary-OS-Terminal-Colors/blob/master/content/new.md)
|
||||
|
||||
### Chalk
|
||||
|
||||
![new](https://raw.githubusercontent.com/Mayccoll/Elementary-OS-Terminal-Colors/master/images/chalk.png)
|
||||
|
||||
Check the last uploaded color schemes [Here...](https://github.com/Mayccoll/Elementary-OS-Terminal-Colors/blob/master/content/new.md)
|
||||
|
||||
## [Install](https://github.com/Mayccoll/Elementary-OS-Terminal-Colors/blob/master/content/install.md)
|
||||
|
77
chalk.sh
Executable file
77
chalk.sh
Executable file
@ -0,0 +1,77 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ====================CONFIG THIS =============================== #
|
||||
|
||||
BACKGROUD_COLOR="#2D2D2D" # Background Color
|
||||
FOREGROUND_COLOR="#D4D4D4" # Text
|
||||
|
||||
COLOR_01="#646464" # HOST
|
||||
COLOR_02="#F58E8E" # SYNTAX_STRING
|
||||
COLOR_03="#A9D3AB" # COMMAND
|
||||
COLOR_04="#FED37E" # COMMAND_COLOR2
|
||||
COLOR_05="#7AABD4" # PATH
|
||||
COLOR_06="#D6ADD5" # SYNTAX_VAR
|
||||
COLOR_07="#79D4D5" # PROMP
|
||||
COLOR_08="#D4D4D4" #
|
||||
|
||||
COLOR_09="#646464" #
|
||||
COLOR_10="#F58E8E" # COMMAND_ERROR
|
||||
COLOR_11="#A9D3AB" # EXEC
|
||||
COLOR_12="#FED37E" #
|
||||
COLOR_13="#7AABD4" # FOLDER
|
||||
COLOR_14="#D6ADD5" #
|
||||
COLOR_15="#79D4D5" #
|
||||
COLOR_16="#D4D4D4" #
|
||||
|
||||
# =============================================================== #
|
||||
|
||||
|
||||
# |
|
||||
# | 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_02=$(gnome_color $COLOR_02)
|
||||
COLOR_03=$(gnome_color $COLOR_03)
|
||||
COLOR_04=$(gnome_color $COLOR_04)
|
||||
COLOR_05=$(gnome_color $COLOR_05)
|
||||
COLOR_06=$(gnome_color $COLOR_06)
|
||||
COLOR_07=$(gnome_color $COLOR_07)
|
||||
COLOR_08=$(gnome_color $COLOR_08)
|
||||
|
||||
COLOR_09=$(gnome_color $COLOR_09)
|
||||
COLOR_10=$(gnome_color $COLOR_10)
|
||||
COLOR_11=$(gnome_color $COLOR_11)
|
||||
COLOR_12=$(gnome_color $COLOR_12)
|
||||
COLOR_13=$(gnome_color $COLOR_13)
|
||||
COLOR_14=$(gnome_color $COLOR_14)
|
||||
COLOR_15=$(gnome_color $COLOR_15)
|
||||
COLOR_16=$(gnome_color $COLOR_16)
|
||||
|
||||
|
||||
|
||||
# |
|
||||
# | 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}"
|
Loading…
Reference in New Issue
Block a user