Skip to content

Commit bfb752a

Browse files
Merge branch 'release/0.1.0'
2 parents 24e1eb5 + 1a02e3d commit bfb752a

File tree

3 files changed

+143
-0
lines changed

3 files changed

+143
-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 olor theme file [`nord.theme`](https://github.com/arcticicestudio/nord-xfce-terminal/blob/develop/src/nord.theme). (@arcticicestudio, #1, 5f426da8)
10+
11+
Implementd a [`install.sh`](https://github.com/arcticicestudio/nord-xfce-terminal/blob/develop/install.sh) shell script for an automated installation . (@arcticicestudio, #2, 8848292e)
12+
13+
Detailed information about features and install instructions can be found in the [README](https://github.com/arcticicestudio/nord-xfce-terminal/blob/develop/README.md#installation) and in the [project wiki](https://github.com/arcticicestudio/nord-xfce-terminal/wiki).
14+
15+
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-xfce-terminal/develop/src/assets/scrot-colortest.png"/><br><strong>htop</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-xfce-terminal/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-xfce-terminal +
5+
# repository https://github.com/arcticicestudio/nord-xfce-terminal +
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}-t${_ct},${_ctb_highlight} --themefile <THEME_FILE> \
32+
${_ct}Use the specified color theme 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_XFCE_TERMINAL_SCRIPT_OPTS THEME_FILE VERBOSE LOCAL_INSTALL NORD_XFCE_TERMINAL_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 $THEME_FILE $LOCAL_INSTALL_DIR
85+
if [ $? -eq 0 ]; then
86+
if [ $VERBOSE = true ]; then __log_success "Copied color theme file to $LOCAL_INSTALL_DIR"; fi
87+
__summary_success
88+
else
89+
__log_error "Could not copy color theme file to $LOCAL_INSTALL_DIR"
90+
__summary_error 1
91+
fi
92+
}
93+
94+
__validate_file() {
95+
if [ ! -f $THEME_FILE ]; then
96+
__log_error "Color theme file not found: $THEME_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_XFCE_TERMINAL_SCRIPT_OPTS=`getopt -o vht: --long verbose,help,themefile: -n 'install.sh' -- "$@"`
104+
THEME_FILE=src/nord.theme
105+
VERBOSE=false
106+
LOCAL_INSTALL_DIR=~/.local/share/xfce4/terminal/colorschemes
107+
NORD_XFCE_TERMINAL_VERSION=0.1.0
108+
109+
eval set -- "$NORD_XFCE_TERMINAL_SCRIPT_OPTS"
110+
while true; do
111+
case "$1" in
112+
-v | --verbose ) VERBOSE=true; shift ;;
113+
-h | --help ) __help; exit 0; break ;;
114+
-t | --themefile )
115+
THEME_FILE="$2"; shift 2 ;;
116+
-- ) shift; break ;;
117+
* ) break ;;
118+
esac
119+
done
120+
121+
__local_install
122+
123+
__cleanup
124+
exit 0

src/nord.theme

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Scheme]
2+
Name=Nord
3+
ColorCursor=#D8DEE9
4+
ColorForeground=#D8DEE9
5+
ColorBackground=#2E3440
6+
TabActivityColor=#88C0D0
7+
ColorPalette=#3B4252;#BF616A;#A3BE8C;#EBCB8B;#81A1C1;#B48EAD;#88C0D0;#E5E9F0;#4C566A;#BF616A;#A3BE8C;#EBCB8B;#81A1C1;#B48EAD;#8FBCBB;#ECEFF4
8+
ColorBold=#D8DEE9
9+
ColorBoldUseDefault=FALSE

0 commit comments

Comments
 (0)