diff options
author | co1ncidence <r3yan.chaudhry@zohomail.com> | 2020-09-17 21:00:18 -0500 |
---|---|---|
committer | co1ncidence <r3yan.chaudhry@zohomail.com> | 2020-09-17 21:00:18 -0500 |
commit | 70f6452bddd5798ec5b7941b5c470ae0d5c389d2 (patch) | |
tree | 999ce3996f9729352b96dc40ef0c270994eca57a /terminals | |
parent | f7b9ed43309d2e3a1de5e05ecd27c0f0ceee369d (diff) |
docs:update
Diffstat (limited to 'terminals')
-rw-r--r-- | terminals/alacritty/alacritty.yml | 27 | ||||
-rw-r--r-- | terminals/gnome-terminal/bliss.sh | 123 | ||||
-rw-r--r-- | terminals/konsole/bliss.colorscheme | 72 | ||||
-rw-r--r-- | terminals/st/config.h | 27 | ||||
-rw-r--r-- | terminals/termite/bliss | 40 | ||||
-rw-r--r-- | terminals/xfce4-terminal/bliss.colorscheme | 6 |
6 files changed, 295 insertions, 0 deletions
diff --git a/terminals/alacritty/alacritty.yml b/terminals/alacritty/alacritty.yml new file mode 100644 index 0000000..bc3fdc1 --- /dev/null +++ b/terminals/alacritty/alacritty.yml @@ -0,0 +1,27 @@ +colors: + # Default colors + primary: + background: '0x121213' + foreground: '0xfdf9f7' + + # Normal colors + normal: + black: '0x1c1b1d' + red: '0xde9dac' + green: '0x9ddeaf' + yellow: '0xdedd9d' + blue: '0x9dacde' + magenta: '0xaf9dde' + cyan: '0x9dccde' + white: '0xf4e0d8' + + # Bright colors + bright: + black: '0x262427' + red: '0xf7afc0' + green: '0xaff7c3' + yellow: '0xf7f6af' + blue: '0xafc0f7' + magenta: '0xc3aff7' + cyan: '0xafe3f7' + white: '0xf9ece8' diff --git a/terminals/gnome-terminal/bliss.sh b/terminals/gnome-terminal/bliss.sh new file mode 100644 index 0000000..31fb6fe --- /dev/null +++ b/terminals/gnome-terminal/bliss.sh @@ -0,0 +1,123 @@ +#!/usr/bin/env bash +# Base16 - Gnome Terminal color scheme install script + +[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="terminal.sexy" +[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="terminal-dot-sexy" +[[ -z "$DCONF" ]] && DCONF=dconf +[[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen + +dset() { + local key="$1"; shift + local val="$1"; shift + + if [[ "$type" == "string" ]]; then + val="'$val'" + fi + + "$DCONF" write "$PROFILE_KEY/$key" "$val" +} + +# because dconf still doesn't have "append" +dlist_append() { + local key="$1"; shift + local val="$1"; shift + + local entries="$( + { + "$DCONF" read "$key" | tr -d '[]' | tr , "\n" | fgrep -v "$val" + echo "'$val'" + } | head -c-1 | tr "\n" , + )" + + "$DCONF" write "$key" "[$entries]" +} + +# Newest versions of gnome-terminal use dconf +if which "$DCONF" > /dev/null 2>&1; then + [[ -z "$BASE_KEY_NEW" ]] && BASE_KEY_NEW=/org/gnome/terminal/legacy/profiles: + + if [[ -n "`$DCONF list $BASE_KEY_NEW/`" ]]; then + if which "$UUIDGEN" > /dev/null 2>&1; then + PROFILE_SLUG=`uuidgen` + fi + + if [[ -n "`$DCONF read $BASE_KEY_NEW/default`" ]]; then + DEFAULT_SLUG=`$DCONF read $BASE_KEY_NEW/default | tr -d \'` + else + DEFAULT_SLUG=`$DCONF list $BASE_KEY_NEW/ | grep '^:' | head -n1 | tr -d :/` + fi + + DEFAULT_KEY="$BASE_KEY_NEW/:$DEFAULT_SLUG" + PROFILE_KEY="$BASE_KEY_NEW/:$PROFILE_SLUG" + + # copy existing settings from default profile + $DCONF dump "$DEFAULT_KEY/" | $DCONF load "$PROFILE_KEY/" + + # add new copy to list of profiles + dlist_append $BASE_KEY_NEW/list "$PROFILE_SLUG" + + # update profile values with theme options + dset visible-name "'$PROFILE_NAME'" + dset palette "['#1c1b1d', '#de9dac', '#9ddeaf', '#dedd9d', '#9dacde', '#af9dde', '#9dccde', '#f4e0d8', '#262427', '#f7afc0', '#aff7c3', '#f7f6af', '#afc0f7', '#c3aff7', '#afe3f7', '#f9ece8']" + dset background-color "'#121213'" + dset foreground-color "'#fdf9f7'" + dset bold-color "'#fdf9f7'" + dset bold-color-same-as-fg "true" + dset use-theme-colors "false" + dset use-theme-background "false" + + unset PROFILE_NAME + unset PROFILE_SLUG + unset DCONF + unset UUIDGEN + exit 0 + fi +fi + +# Fallback for Gnome 2 and early Gnome 3 +[[ -z "$GCONFTOOL" ]] && GCONFTOOL=gconftool +[[ -z "$BASE_KEY" ]] && BASE_KEY=/apps/gnome-terminal/profiles + +PROFILE_KEY="$BASE_KEY/$PROFILE_SLUG" + +gset() { + local type="$1"; shift + local key="$1"; shift + local val="$1"; shift + + "$GCONFTOOL" --set --type "$type" "$PROFILE_KEY/$key" -- "$val" +} + +# Because gconftool doesn't have "append" +glist_append() { + local type="$1"; shift + local key="$1"; shift + local val="$1"; shift + + local entries="$( + { + "$GCONFTOOL" --get "$key" | tr -d '[]' | tr , "\n" | fgrep -v "$val" + echo "$val" + } | head -c-1 | tr "\n" , + )" + + "$GCONFTOOL" --set --type list --list-type $type "$key" "[$entries]" +} + +# Append the Base16 profile to the profile list +glist_append string /apps/gnome-terminal/global/profile_list "$PROFILE_SLUG" + +gset string visible_name "$PROFILE_NAME" +gset string palette "#1c1b1d:#de9dac:#9ddeaf:#dedd9d:#9dacde:#af9dde:#9dccde:#f4e0d8:#262427:#f7afc0:#aff7c3:#f7f6af:#afc0f7:#c3aff7:#afe3f7:#f9ece8" +gset string background_color "#121213" +gset string foreground_color "#fdf9f7" +gset string bold_color "#fdf9f7" +gset bool bold_color_same_as_fg "true" +gset bool use_theme_colors "false" +gset bool use_theme_background "false" + +unset PROFILE_NAME +unset PROFILE_SLUG +unset DCONF +unset UUIDGEN + diff --git a/terminals/konsole/bliss.colorscheme b/terminals/konsole/bliss.colorscheme new file mode 100644 index 0000000..3545abc --- /dev/null +++ b/terminals/konsole/bliss.colorscheme @@ -0,0 +1,72 @@ +# --- special colors --- + +[Background] +Color=18,18,19 + +[BackgroundIntense] +Color=18,18,19 + +[Foreground] +Color=253,249,247 + +[ForegroundIntense] +Color=253,249,247 +Bold=true + +# --- standard colors --- + +[Color0] +Color=28,27,29 + +[Color0Intense] +Color=38,36,39 + +[Color1] +Color=222,157,172 + +[Color1Intense] +Color=247,175,192 + +[Color2] +Color=157,222,175 + +[Color2Intense] +Color=175,247,195 + +[Color3] +Color=222,221,157 + +[Color3Intense] +Color=247,246,175 + +[Color4] +Color=157,172,222 + +[Color4Intense] +Color=175,192,247 + +[Color5] +Color=175,157,222 + +[Color5Intense] +Color=195,175,247 + +[Color6] +Color=157,204,222 + +[Color6Intense] +Color=175,227,247 + +[Color7] +Color=244,224,216 + +[Color7Intense] +Color=249,236,232 + +# --- general options --- + +[General] +Description=terminal.sexy +Opacity=1 +Wallpaper= + diff --git a/terminals/st/config.h b/terminals/st/config.h new file mode 100644 index 0000000..4741c64 --- /dev/null +++ b/terminals/st/config.h @@ -0,0 +1,27 @@ +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + + /* 8 normal colors */ + [0] = "#1c1b1d", /* black */ + [1] = "#de9dac", /* red */ + [2] = "#9ddeaf", /* green */ + [3] = "#dedd9d", /* yellow */ + [4] = "#9dacde", /* blue */ + [5] = "#af9dde", /* purple */ + [6] = "#9dccde", /* cyan */ + [7] = "#f4e0d8", /* white */ + + /* 8 bright colors*/ + [8] = "#262427", /* black */ + [9] = "#f7afc0", /* red */ + [10] = "#aff7c3", /* green */ + [11] = "#f7f6af", /* yellow */ + [12] = "#afc0f7", /* blue */ + [13] = "#c3aff7", /* purple */ + [14] = "#afe3f7", /* cyan */ + [15] = "#f9ece8", /* white */ + + /* special colors */ + [256] = "#121213", /* background */ + [257] = "#fdf9f7", /* foreground */ +}; diff --git a/terminals/termite/bliss b/terminals/termite/bliss new file mode 100644 index 0000000..ab4a38e --- /dev/null +++ b/terminals/termite/bliss @@ -0,0 +1,40 @@ +[colors] + +# special +foreground = #fdf9f7 +foreground_bold = #fdf9f7 +cursor = #fdf9f7 +background = #121213 + +# black +color0 = #1c1b1d +color8 = #262427 + +# red +color1 = #de9dac +color9 = #f7afc0 + +# green +color2 = #9ddeaf +color10 = #aff7c3 + +# yellow +color3 = #dedd9d +color11 = #f7f6af + +# blue +color4 = #9dacde +color12 = #afc0f7 + +# magenta +color5 = #af9dde +color13 = #c3aff7 + +# cyan +color6 = #9dccde +color14 = #afe3f7 + +# white +color7 = #f4e0d8 +color15 = #f9ece8 + diff --git a/terminals/xfce4-terminal/bliss.colorscheme b/terminals/xfce4-terminal/bliss.colorscheme new file mode 100644 index 0000000..642bd64 --- /dev/null +++ b/terminals/xfce4-terminal/bliss.colorscheme @@ -0,0 +1,6 @@ +[Configuration] +ColorCursor=#fdfdf9f9f7f7 +ColorForeground=#fdfdf9f9f7f7 +ColorBackground=#121212121313 +ColorPalette=#1c1c1b1b1d1d;#dede9d9dacac;#9d9ddedeafaf;#dededddd9d9d;#9d9dacacdede;#afaf9d9ddede;#9d9dccccdede;#f4f4e0e0d8d8;#262624242727;#f7f7afafc0c0;#afaff7f7c3c3;#f7f7f6f6afaf;#afafc0c0f7f7;#c3c3afaff7f7;#afafe3e3f7f7;#f9f9ecece8e8 + |