forked from Gogh-Co/Gogh
-
Notifications
You must be signed in to change notification settings - Fork 3
/
freya.sh
executable file
·89 lines (68 loc) · 2.79 KB
/
freya.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
# ==================== CONFIG THIS ========================================= #
BLACK="#073642" # COLOR_01 <--
RED="#DC322F" # COLOR_02
GREEN="#859900" # COLOR_03 <--
YELLOW="#B58900" # COLOR_04 <--
BLUE="#268BD2" # COLOR_05 <--
PURPLE="#EC0048" # COLOR_06
CYAN="#2AA198" # COLOR_07 <--
WHITE="#94A3A5" # COLOR_08
BBLACK="#586E75" # COLOR_09
BRED="#CB4B16" # COLOR_10 <--
BGREEN="#859900" # COLOR_11 <--
BYELLOW="#B58900" # COLOR_12
BBLUE="#268BD2" # COLOR_13 <--
BPURPLE="#D33682" # COLOR_14
BCYAN="#2AA198" # COLOR_15
BWHITE="#EEEEEE" # COLOR_16
BACKGROUD_COLOR="#2D363A" # Background Color
FOREGROUND_COLOR="#94A3A5" # Text
COLOR_01=$BLACK # HOST
COLOR_03=$GREEN # COMMAND
COLOR_04=$YELLOW # COMMAND_COLOR2
COLOR_10=$BRED # COMMAND_ERROR
COLOR_05=$BLUE # PATH
COLOR_07=$CYAN # PROMP
COLOR_11=$BGREEN # EXEC
COLOR_13=$BBLUE # FOLDER
COLOR_02=$RED # SYNTAX_STRING
COLOR_06=$PURPLE # SYNTAX_VAR
COLOR_08=$WHITE
COLOR_09=$BBLACK
COLOR_12=$BYELLOW
COLOR_14=$BPURPLE
COLOR_15=$BCYAN
COLOR_16=$BWHITE
# ===================== END CONFIG ======================================= #
# |
# | 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
# | ===========================================
gsettings set org.pantheon.terminal.settings background "${BACKGROUD_COLOR}"
gsettings set org.pantheon.terminal.settings foreground "${FOREGROUND_COLOR}"
gsettings set org.pantheon.terminal.settings cursor-color "${FOREGROUND_COLOR}"
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}"