Skip to content

Commit 6d9970d

Browse files
Merge branch 'release/0.1.0'
2 parents 94112e5 + c9002f2 commit 6d9970d

File tree

3 files changed

+157
-0
lines changed

3 files changed

+157
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@
44

55
---
66

7+
# 0.1.0 (2016-12-24)
8+
## Features
9+
Implemented the main color config file [`config`](https://github.com/arcticicestudio/nord-terminator/blob/develop/src/config). (@arcticicestudio, #1, 0f06e46a)
10+
11+
Implementd a [`install.sh`](https://github.com/arcticicestudio/nord-terminator/blob/develop/install.sh) shell script for an automated installation . (@arcticicestudio, #2, f26407c0)
12+
13+
Detailed information about features and install instructions can be found in the [README](https://github.com/arcticicestudio/nord-terminator/blob/develop/README.md#installation) and in the [project wiki](https://github.com/arcticicestudio/nord-terminator/wiki).
14+
15+
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-terminator/develop/src/assets/scrot-colortest.png"/><br><strong>htop</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-terminator/develop/src/assets/scrot-htop.png"/></p>
16+
717
# 0.0.0 (2016-12-22)
818
**Project Initialization**

install.sh

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
#!/usr/bin/env bash
2+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3+
# title Install Script +
4+
# project nord-terminator +
5+
# repository https://github.com/arcticicestudio/nord-terminator +
6+
# author Arctic Ice Studio +
7+
8+
# copyright Copyright (C) 2016 +
9+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10+
set -e
11+
12+
_ct_error="\e[0;31m"
13+
_ct_success="\e[0;32m"
14+
_ct_warning="\e[0;33m"
15+
_ct_highlight="\e[0;34m"
16+
_ct_primary="\e[0;36m"
17+
_ct="\e[0;37m"
18+
_ctb_subtle="\e[1;30m"
19+
_ctb_error="\e[1;31m"
20+
_ctb_success="\e[1;32m"
21+
_ctb_warning="\e[1;33m"
22+
_ctb_highlight="\e[1;34m"
23+
_ctb_primary="\e[1;36m"
24+
_ctb="\e[1;37m"
25+
_c_reset="\e[0m"
26+
27+
__help() {
28+
printf "${_ctb}Usage: ${_ct_primary}install.sh ${_ctb_subtle}[OPTIONS]\n"
29+
printf " ${_ctb_highlight}-h${_ct},${_ctb_highlight} --help ${_ct}Help\n"
30+
printf " ${_ctb_highlight}-v${_ct},${_ctb_highlight} --verbose ${_ct}Verbose output\n${_ctb_reset}"
31+
printf " ${_ctb_highlight}-c${_ct},${_ctb_highlight} --configfile <COLOR_CONFIG_FILE> \
32+
${_ct}Use the specified color config file\n${_ctb_reset}"
33+
}
34+
35+
__cleanup() {
36+
trap '' SIGINT SIGTERM
37+
unset -v _ct_error _ct_success _ct_warning _ct_highlight _ct_primary _ct
38+
unset -v _ctb_error _ctb_success _ctb_warning _ctb_highlight _ctb_primary _ctb _c_reset
39+
unset -v NORD_TERMINATOR_SCRIPT_OPTS COLOR_CONFIG_FILE VERBOSE LOCAL_INSTALL NORD_TERMINATOR_VERSION
40+
unset -f __help __cleanup __log_error __log_success __log_warning __log_info
41+
unset -f __validate_file __local_install
42+
}
43+
44+
__log_error() {
45+
printf "${_ctb_error}[ERROR] ${_ct}$1${_c_reset}\n"
46+
}
47+
48+
__log_success() {
49+
printf "${_ctb_success}[OK] ${_ct}$1${_c_reset}\n"
50+
}
51+
52+
__log_warning() {
53+
printf "${_ctb_warning}[WARN] ${_ct}$1${_c_reset}\n"
54+
}
55+
56+
__log_info() {
57+
printf "${_ctb}[INFO] ${_ct}$1${_c_reset}\n"
58+
}
59+
60+
__summary_success() {
61+
__log_success "Local installation completed"
62+
__cleanup
63+
exit 0
64+
}
65+
66+
__summary_error() {
67+
__log_error "An error occurred during the installation!"
68+
__log_error "Exit code: $1"
69+
__cleanup
70+
exit 1
71+
}
72+
73+
__local_install() {
74+
__validate_file
75+
if [ ! -d $LOCAL_INSTALL_DIR ]; then
76+
mkdir -p $LOCAL_INSTALL_DIR
77+
if [ $? -eq 0 ]; then
78+
if [ $VERBOSE = true ]; then __log_info "Created local directory $LOCAL_INSTALL_DIR"; fi
79+
else
80+
__log_error "Could not create local directory $LOCAL_INSTALL_DIR"
81+
__summary_error 1
82+
fi
83+
fi
84+
cp -f $COLOR_CONFIG_FILE $LOCAL_INSTALL_DIR
85+
if [ $? -eq 0 ]; then
86+
if [ $VERBOSE = true ]; then __log_success "Copied color config file to $LOCAL_INSTALL_DIR"; fi
87+
__summary_success
88+
else
89+
__log_error "Could not copy color config file to $LOCAL_INSTALL_DIR"
90+
__summary_error 1
91+
fi
92+
}
93+
94+
__validate_file() {
95+
if [ ! -f $COLOR_CONFIG_FILE ]; then
96+
__log_error "Color config file not found: $COLOR_CONFIG_FILE"
97+
__summary_error 1
98+
fi
99+
}
100+
101+
trap "printf '${_ctb_error}User aborted.${_ctb_reset}\n' && exit 1" SIGINT SIGTERM
102+
103+
NORD_TERMINATOR_SCRIPT_OPTS=`getopt -o vhc: --long verbose,help,configfile: -n 'install.sh' -- "$@"`
104+
COLOR_CONFIG_FILE=src/config
105+
VERBOSE=false
106+
LOCAL_INSTALL_DIR=~/.config/terminator
107+
NORD_TERMINATOR_VERSION=0.1.0
108+
109+
eval set -- "$NORD_TERMINATOR_SCRIPT_OPTS"
110+
while true; do
111+
case "$1" in
112+
-v | --verbose ) VERBOSE=true; shift ;;
113+
-h | --help ) __help; exit 0; break ;;
114+
-c | --configfile )
115+
COLOR_CONFIG_FILE="$2"; shift 2 ;;
116+
-- ) shift; break ;;
117+
* ) break ;;
118+
esac
119+
done
120+
121+
__local_install
122+
123+
__cleanup
124+
exit 0

src/config

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2+
# title Nord Terminator +
3+
# project nord-terminator +
4+
# version 0.1.0 +
5+
# repository https://github.com/arcticicestudio/nord-terminator +
6+
# author Arctic Ice Studio +
7+
8+
# copyright Copyright (C) 2016 +
9+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10+
11+
[global_config]
12+
title_inactive_bg_color = "#4C566A"
13+
title_inactive_fg_color = "#D8DEE9"
14+
title_receive_bg_color = "#8FBCBB"
15+
title_receive_fg_color = "#2E3440"
16+
title_transmit_bg_color = "#88C0D0"
17+
title_transmit_fg_color = "#2E3440"
18+
[profiles]
19+
[[nord]]
20+
background_color = "#2E3440"
21+
cursor_color = "#D8DEE9"
22+
foreground_color = "#D8DEE9"
23+
palette = "#3B4252:#BF616A:#A3BE8C:#EBCB8B:#81A1C1:#B48EAD:#88C0D0:#E5E9F0:#4C566A:#BF616A:#A3BE8C:#EBCB8B:#81A1C1:#B48EAD:#8FBCBB:#ECEFF4"

0 commit comments

Comments
 (0)