-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26a63a9
commit 1e1d400
Showing
5 changed files
with
760 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
#!/usr/bin/env sh | ||
# tinted-shell (https://github.com/tinted-theming/tinted-shell) | ||
# Scheme name: Moonlight | ||
# Scheme author: Jeremy Swinarton (https://github.com/jswinarton) | ||
# Template author: Tinted Theming (https://github.com/tinted-theming) | ||
export BASE16_THEME=moonlight | ||
|
||
color00="21/23/37" # Base 00 - Black | ||
color01="ff/53/70" # Base 08 - Red | ||
color02="2d/f4/c0" # Base 0B - Green | ||
color03="ff/c7/77" # Base 0A - Yellow | ||
color04="40/ff/ff" # Base 0D - Blue | ||
color05="b9/94/f1" # Base 0E - Magenta | ||
color06="04/d1/f9" # Base 0C - Cyan | ||
color07="a3/ac/e1" # Base 05 - White | ||
color08="74/8c/d6" # Base 03 - Bright Black | ||
color09="$color01" # Base 08 - Bright Red | ||
color10="$color02" # Base 0B - Bright Green | ||
color11="$color03" # Base 0A - Bright Yellow | ||
color12="$color04" # Base 0D - Bright Blue | ||
color13="$color05" # Base 0E - Bright Magenta | ||
color14="$color06" # Base 0C - Bright Cyan | ||
color15="ef/43/fa" # Base 07 - Bright White | ||
color16="f6/7f/81" # Base 09 | ||
color17="ec/b2/f0" # Base 0F | ||
color18="40/3c/64" # Base 01 | ||
color19="59/63/99" # Base 02 | ||
color20="a1/ab/e0" # Base 04 | ||
color21="b4/a4/f4" # Base 06 | ||
color_foreground="a3/ac/e1" # Base 05 | ||
color_background="21/23/37" # Base 00 | ||
|
||
if [ -z "$TTY" ] && ! TTY=$(tty); then | ||
put_template() { true; } | ||
put_template_var() { true; } | ||
put_template_custom() { true; } | ||
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then | ||
# Tell tmux to pass the escape sequences through | ||
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) | ||
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
elif [ "${TERM%%[-.]*}" = "screen" ]; then | ||
# GNU screen (screen, screen-256color, screen-256color-bce) | ||
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; } | ||
elif [ "${TERM%%-*}" = "linux" ]; then | ||
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; } | ||
put_template_var() { true; } | ||
put_template_custom() { true; } | ||
else | ||
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; } | ||
fi | ||
|
||
# 16 color space | ||
put_template 0 "$color00" | ||
put_template 1 "$color01" | ||
put_template 2 "$color02" | ||
put_template 3 "$color03" | ||
put_template 4 "$color04" | ||
put_template 5 "$color05" | ||
put_template 6 "$color06" | ||
put_template 7 "$color07" | ||
put_template 8 "$color08" | ||
put_template 9 "$color09" | ||
put_template 10 "$color10" | ||
put_template 11 "$color11" | ||
put_template 12 "$color12" | ||
put_template 13 "$color13" | ||
put_template 14 "$color14" | ||
put_template 15 "$color15" | ||
|
||
# 256 color space | ||
put_template 16 "$color16" | ||
put_template 17 "$color17" | ||
put_template 18 "$color18" | ||
put_template 19 "$color19" | ||
put_template 20 "$color20" | ||
put_template 21 "$color21" | ||
|
||
# foreground / background / cursor color | ||
if [ -n "$ITERM_SESSION_ID" ]; then | ||
# iTerm2 proprietary escape codes | ||
put_template_custom Pg a3ace1 # foreground | ||
put_template_custom Ph 212337 # background | ||
put_template_custom Pi a3ace1 # bold color | ||
put_template_custom Pj 596399 # selection color | ||
put_template_custom Pk a3ace1 # selected text color | ||
put_template_custom Pl a3ace1 # cursor | ||
put_template_custom Pm 212337 # cursor text | ||
else | ||
put_template_var 10 "$color_foreground" | ||
if [ "$BASE16_SHELL_SET_BACKGROUND" != false ]; then | ||
put_template_var 11 "$color_background" | ||
if [ "${TERM%%-*}" = "rxvt" ]; then | ||
put_template_var 708 "$color_background" # internal border (rxvt) | ||
fi | ||
fi | ||
put_template_custom 12 ";7" # cursor (reverse video) | ||
fi | ||
|
||
# clean up | ||
unset put_template | ||
unset put_template_var | ||
unset put_template_custom | ||
unset color00 | ||
unset color01 | ||
unset color02 | ||
unset color03 | ||
unset color04 | ||
unset color05 | ||
unset color06 | ||
unset color07 | ||
unset color08 | ||
unset color09 | ||
unset color10 | ||
unset color11 | ||
unset color12 | ||
unset color13 | ||
unset color14 | ||
unset color15 | ||
unset color16 | ||
unset color17 | ||
unset color18 | ||
unset color19 | ||
unset color20 | ||
unset color21 | ||
unset color_foreground | ||
unset color_background | ||
|
||
# Optionally export variables | ||
if [ -n "$TINTED_SHELL_ENABLE_BASE16_VARS" ] || [ -n "$BASE16_SHELL_ENABLE_VARS" ]; then | ||
export BASE16_COLOR_00_HEX="212337" | ||
export BASE16_COLOR_01_HEX="403c64" | ||
export BASE16_COLOR_02_HEX="596399" | ||
export BASE16_COLOR_03_HEX="748cd6" | ||
export BASE16_COLOR_04_HEX="a1abe0" | ||
export BASE16_COLOR_05_HEX="a3ace1" | ||
export BASE16_COLOR_06_HEX="b4a4f4" | ||
export BASE16_COLOR_07_HEX="ef43fa" | ||
export BASE16_COLOR_08_HEX="ff5370" | ||
export BASE16_COLOR_09_HEX="f67f81" | ||
export BASE16_COLOR_0A_HEX="ffc777" | ||
export BASE16_COLOR_0B_HEX="2df4c0" | ||
export BASE16_COLOR_0C_HEX="04d1f9" | ||
export BASE16_COLOR_0D_HEX="40ffff" | ||
export BASE16_COLOR_0E_HEX="b994f1" | ||
export BASE16_COLOR_0F_HEX="ecb2f0" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
#!/usr/bin/env sh | ||
# tinted-shell (https://github.com/tinted-theming/tinted-shell) | ||
# Scheme name: Precious Dark Eleven | ||
# Scheme author: 4lex4 <[email protected]> | ||
# Template author: Tinted Theming (https://github.com/tinted-theming) | ||
export BASE16_THEME=precious-dark-eleven | ||
|
||
color00="1c/1e/20" # Base 00 - Black | ||
color01="ff/87/82" # Base 08 - Red | ||
color02="95/b6/58" # Base 0B - Green | ||
color03="d0/a5/43" # Base 0A - Yellow | ||
color04="68/b0/ee" # Base 0D - Blue | ||
color05="b7/99/fe" # Base 0E - Magenta | ||
color06="42/bd/a7" # Base 0C - Cyan | ||
color07="b8/b7/b6" # Base 05 - White | ||
color08="85/85/85" # Base 03 - Bright Black | ||
color09="$color01" # Base 08 - Bright Red | ||
color10="$color02" # Base 0B - Bright Green | ||
color11="$color03" # Base 0A - Bright Yellow | ||
color12="$color04" # Base 0D - Bright Blue | ||
color13="$color05" # Base 0E - Bright Magenta | ||
color14="$color06" # Base 0C - Bright Cyan | ||
color15="b8/b7/b6" # Base 07 - Bright White | ||
color16="ea/97/55" # Base 09 | ||
color17="f3/82/d8" # Base 0F | ||
color18="29/2b/2d" # Base 01 | ||
color19="37/39/3a" # Base 02 | ||
color20="a8/a8/a7" # Base 04 | ||
color21="b8/b7/b6" # Base 06 | ||
color_foreground="b8/b7/b6" # Base 05 | ||
color_background="1c/1e/20" # Base 00 | ||
|
||
if [ -z "$TTY" ] && ! TTY=$(tty); then | ||
put_template() { true; } | ||
put_template_var() { true; } | ||
put_template_custom() { true; } | ||
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then | ||
# Tell tmux to pass the escape sequences through | ||
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) | ||
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; } | ||
elif [ "${TERM%%[-.]*}" = "screen" ]; then | ||
# GNU screen (screen, screen-256color, screen-256color-bce) | ||
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; } | ||
elif [ "${TERM%%-*}" = "linux" ]; then | ||
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; } | ||
put_template_var() { true; } | ||
put_template_custom() { true; } | ||
else | ||
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; } | ||
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; } | ||
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; } | ||
fi | ||
|
||
# 16 color space | ||
put_template 0 "$color00" | ||
put_template 1 "$color01" | ||
put_template 2 "$color02" | ||
put_template 3 "$color03" | ||
put_template 4 "$color04" | ||
put_template 5 "$color05" | ||
put_template 6 "$color06" | ||
put_template 7 "$color07" | ||
put_template 8 "$color08" | ||
put_template 9 "$color09" | ||
put_template 10 "$color10" | ||
put_template 11 "$color11" | ||
put_template 12 "$color12" | ||
put_template 13 "$color13" | ||
put_template 14 "$color14" | ||
put_template 15 "$color15" | ||
|
||
# 256 color space | ||
put_template 16 "$color16" | ||
put_template 17 "$color17" | ||
put_template 18 "$color18" | ||
put_template 19 "$color19" | ||
put_template 20 "$color20" | ||
put_template 21 "$color21" | ||
|
||
# foreground / background / cursor color | ||
if [ -n "$ITERM_SESSION_ID" ]; then | ||
# iTerm2 proprietary escape codes | ||
put_template_custom Pg b8b7b6 # foreground | ||
put_template_custom Ph 1c1e20 # background | ||
put_template_custom Pi b8b7b6 # bold color | ||
put_template_custom Pj 37393a # selection color | ||
put_template_custom Pk b8b7b6 # selected text color | ||
put_template_custom Pl b8b7b6 # cursor | ||
put_template_custom Pm 1c1e20 # cursor text | ||
else | ||
put_template_var 10 "$color_foreground" | ||
if [ "$BASE16_SHELL_SET_BACKGROUND" != false ]; then | ||
put_template_var 11 "$color_background" | ||
if [ "${TERM%%-*}" = "rxvt" ]; then | ||
put_template_var 708 "$color_background" # internal border (rxvt) | ||
fi | ||
fi | ||
put_template_custom 12 ";7" # cursor (reverse video) | ||
fi | ||
|
||
# clean up | ||
unset put_template | ||
unset put_template_var | ||
unset put_template_custom | ||
unset color00 | ||
unset color01 | ||
unset color02 | ||
unset color03 | ||
unset color04 | ||
unset color05 | ||
unset color06 | ||
unset color07 | ||
unset color08 | ||
unset color09 | ||
unset color10 | ||
unset color11 | ||
unset color12 | ||
unset color13 | ||
unset color14 | ||
unset color15 | ||
unset color16 | ||
unset color17 | ||
unset color18 | ||
unset color19 | ||
unset color20 | ||
unset color21 | ||
unset color_foreground | ||
unset color_background | ||
|
||
# Optionally export variables | ||
if [ -n "$TINTED_SHELL_ENABLE_BASE16_VARS" ] || [ -n "$BASE16_SHELL_ENABLE_VARS" ]; then | ||
export BASE16_COLOR_00_HEX="1c1e20" | ||
export BASE16_COLOR_01_HEX="292b2d" | ||
export BASE16_COLOR_02_HEX="37393a" | ||
export BASE16_COLOR_03_HEX="858585" | ||
export BASE16_COLOR_04_HEX="a8a8a7" | ||
export BASE16_COLOR_05_HEX="b8b7b6" | ||
export BASE16_COLOR_06_HEX="b8b7b6" | ||
export BASE16_COLOR_07_HEX="b8b7b6" | ||
export BASE16_COLOR_08_HEX="ff8782" | ||
export BASE16_COLOR_09_HEX="ea9755" | ||
export BASE16_COLOR_0A_HEX="d0a543" | ||
export BASE16_COLOR_0B_HEX="95b658" | ||
export BASE16_COLOR_0C_HEX="42bda7" | ||
export BASE16_COLOR_0D_HEX="68b0ee" | ||
export BASE16_COLOR_0E_HEX="b799fe" | ||
export BASE16_COLOR_0F_HEX="f382d8" | ||
fi |
Oops, something went wrong.