Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Dec 24, 2016
2 parents fd15fa5 + c91dad6 commit 44dae3e
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@

---

# 0.1.0 (2016-12-24)
## Features
Implemented the main `.colorscheme` color scheme file [`nord.colorscheme`](https://github.com/arcticicestudio/nord-konsole/blob/develop/src/nord.colorscheme). (@arcticicestudio, #1, 5e319fdf)

Implementd a [`install.sh`](https://github.com/arcticicestudio/nord-konsole/blob/develop/install.sh) shell script for an automated installation . (@arcticicestudio, #2, 7f8c219a)

Detailed information about features and install instructions can be found in the [README](https://github.com/arcticicestudio/nord-konsole/blob/develop/README.md#installation) and in the [project wiki](https://github.com/arcticicestudio/nord-konsole/wiki).

<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-konsole/develop/src/assets/scrot-colortest.png"/><br><strong>htop</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-konsole/develop/src/assets/scrot-htop.png"/></p>

# 0.0.0 (2016-12-22)
**Project Initialization**
124 changes: 124 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#!/usr/bin/env bash
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# title Install Script +
# project nord-konsole +
# repository https://github.com/arcticicestudio/nord-konsole +
# author Arctic Ice Studio +
# email development@arcticicestudio.com +
# copyright Copyright (C) 2016 +
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set -e

_ct_error="\e[0;31m"
_ct_success="\e[0;32m"
_ct_warning="\e[0;33m"
_ct_highlight="\e[0;34m"
_ct_primary="\e[0;36m"
_ct="\e[0;37m"
_ctb_subtle="\e[1;30m"
_ctb_error="\e[1;31m"
_ctb_success="\e[1;32m"
_ctb_warning="\e[1;33m"
_ctb_highlight="\e[1;34m"
_ctb_primary="\e[1;36m"
_ctb="\e[1;37m"
_c_reset="\e[0m"

__help() {
printf "${_ctb}Usage: ${_ct_primary}install.sh ${_ctb_subtle}[OPTIONS]\n"
printf " ${_ctb_highlight}-h${_ct},${_ctb_highlight} --help ${_ct}Help\n"
printf " ${_ctb_highlight}-v${_ct},${_ctb_highlight} --verbose ${_ct}Verbose output\n${_ctb_reset}"
printf " ${_ctb_highlight}-s${_ct},${_ctb_highlight} --schemefile <SCHEME_FILE> \
${_ct}Use the specified color scheme file\n${_ctb_reset}"
}

__cleanup() {
trap '' SIGINT SIGTERM
unset -v _ct_error _ct_success _ct_warning _ct_highlight _ct_primary _ct
unset -v _ctb_error _ctb_success _ctb_warning _ctb_highlight _ctb_primary _ctb _c_reset
unset -v NORD_KONSOLE_SCRIPT_OPTS SCHEME_FILE VERBOSE LOCAL_INSTALL NORD_KONSOLE_VERSION
unset -f __help __cleanup __log_error __log_success __log_warning __log_info
unset -f __validate_file __local_install
}

__log_error() {
printf "${_ctb_error}[ERROR] ${_ct}$1${_c_reset}\n"
}

__log_success() {
printf "${_ctb_success}[OK] ${_ct}$1${_c_reset}\n"
}

__log_warning() {
printf "${_ctb_warning}[WARN] ${_ct}$1${_c_reset}\n"
}

__log_info() {
printf "${_ctb}[INFO] ${_ct}$1${_c_reset}\n"
}

__summary_success() {
__log_success "Local installation completed"
__cleanup
exit 0
}

__summary_error() {
__log_error "An error occurred during the installation!"
__log_error "Exit code: $1"
__cleanup
exit 1
}

__local_install() {
__validate_file
if [ ! -d $LOCAL_INSTALL_DIR ]; then
mkdir -p $LOCAL_INSTALL_DIR
if [ $? -eq 0 ]; then
if [ $VERBOSE = true ]; then __log_info "Created local directory $LOCAL_INSTALL_DIR"; fi
else
__log_error "Could not create local directory $LOCAL_INSTALL_DIR"
__summary_error 1
fi
fi
cp -f $SCHEME_FILE $LOCAL_INSTALL_DIR
if [ $? -eq 0 ]; then
if [ $VERBOSE = true ]; then __log_success "Copied color scheme file to $LOCAL_INSTALL_DIR"; fi
__summary_success
else
__log_error "Could not copy color scheme file to $LOCAL_INSTALL_DIR"
__summary_error 1
fi
}

__validate_file() {
if [ ! -f $SCHEME_FILE ]; then
__log_error "Color scheme file not found: $SCHEME_FILE"
__summary_error 1
fi
}

trap "printf '${_ctb_error}User aborted.${_ctb_reset}\n' && exit 1" SIGINT SIGTERM

NORD_KONSOLE_SCRIPT_OPTS=`getopt -o vhs: --long verbose,help,schemefile: -n 'install.sh' -- "$@"`
SCHEME_FILE=src/nord.colorscheme
VERBOSE=false
LOCAL_INSTALL_DIR=~/.local/share/konsole
NORD_KONSOLE_VERSION=0.1.0

eval set -- "$NORD_KONSOLE_SCRIPT_OPTS"
while true; do
case "$1" in
-v | --verbose ) VERBOSE=true; shift ;;
-h | --help ) __help; exit 0; break ;;
-s | --schemefile )
SCHEME_FILE="$2"; shift 2 ;;
-- ) shift; break ;;
* ) break ;;
esac
done

__local_install

__cleanup
exit 0
74 changes: 74 additions & 0 deletions src/nord.colorscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# title Nord Konsole +
# project nord-konsole +
# version 0.1.0 +
# repository https://github.com/arcticicestudio/nord-konsole +
# author Arctic Ice Studio +
# email development@arcticicestudio.com +
# copyright Copyright (C) 2016 +
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[Background]
Color=46,52,64

[BackgroundIntense]
Color=46,52,64

[Foreground]
Color=216,222,233

[ForegroundIntense]
Color=216,222,233
Bold=true

[Color0]
Color=59,66,82

[Color0Intense]
Color=76,86,106

[Color1]
Color=191,97,106

[Color1Intense]
Color=191,97,106

[Color2]
Color=163,190,140

[Color2Intense]
Color=163,190,140

[Color3]
Color=235,203,139

[Color3Intense]
Color=235,203,139

[Color4]
Color=129,161,193

[Color4Intense]
Color=129,161,193

[Color5]
Color=180,142,173

[Color5Intense]
Color=180,142,173

[Color6]
Color=136,192,208

[Color6Intense]
Color=143,188,187

[Color7]
Color=229,233,240

[Color7Intense]
Color=236,239,244

[General]
Description=Nord
Opacity=1
Wallpaper=

0 comments on commit 44dae3e

Please sign in to comment.