Adjusted colors

This commit is contained in:
Dreaded_X 2024-04-15 06:26:24 +02:00
parent b361c8863e
commit 8031f3fe6a
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 15 additions and 15 deletions

View File

@ -7,13 +7,13 @@ dark4=#7c6f64
light1=#ebdbb2 light1=#ebdbb2
light3=#bdae93 light3=#bdae93
light4=#a89984 light4=#a89984
bright_yellow=#fabd2f yellow=#fabd2f
yellow=#d79921 neutral_yellow=#d79921
blue=#458588 blue=#83a598
faded_blue=#076678 neutral_blue=#458588
alert_color="#{?$wg_is_keys_off,$yellow,$bright_yellow}" alert_color="#{?$wg_is_keys_off,$neutral_yellow,$yellow}"
current_color="#{?$wg_is_keys_off,$faded_blue,$blue}" current_color="#{?$wg_is_keys_off,$neutral_blue,$blue}"
background="#{?$wg_is_keys_off,$dark0,$dark1}" background="#{?$wg_is_keys_off,$dark0,$dark1}"
header="#{?$wg_is_keys_off,$dark4,$light4}" header="#{?$wg_is_keys_off,$dark4,$light4}"
secondary="#{?$wg_is_keys_off,$dark1,$dark2}" secondary="#{?$wg_is_keys_off,$dark1,$dark2}"

View File

@ -91,9 +91,9 @@ prompt_end() {
# Context: user@hostname (who am I and where am I) # Context: user@hostname (who am I and where am I)
prompt_context() { prompt_context() {
if [[ -n "$SSH_CLIENT" ]]; then if [[ -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%B%F{yellow}%}.)%n@%m%(!.%{%b%}.)" prompt_segment black default "%(!.%{%B%F{11}%}.)%n@%m%(!.%{%b%}.)"
else else
prompt_segment black default "%(!.%{%B%F{yellow}%}.)%n%(!.%{%b%}.)" prompt_segment black default "%(!.%{%B%F{11}%}.)%n%(!.%{%b%}.)"
fi fi
} }
@ -119,7 +119,7 @@ prompt_git() {
if [[ -n $dirty ]]; then if [[ -n $dirty ]]; then
prompt_segment yellow black prompt_segment yellow black
else else
prompt_segment green $CURRENT_FG prompt_segment 10 $CURRENT_FG
fi fi
local ahead behind local ahead behind
@ -177,7 +177,7 @@ prompt_bzr() {
if [[ $status_all -gt 0 ]] ; then if [[ $status_all -gt 0 ]] ; then
prompt_segment yellow black "bzr@$revision" prompt_segment yellow black "bzr@$revision"
else else
prompt_segment green black "bzr@$revision" prompt_segment 10 black "bzr@$revision"
fi fi
fi fi
fi fi
@ -198,7 +198,7 @@ prompt_hg() {
st='±' st='±'
else else
# if working copy is clean # if working copy is clean
prompt_segment green $CURRENT_FG prompt_segment 10 $CURRENT_FG
fi fi
echo -n ${$(hg prompt "☿ {rev}@{branch}"):gs/%/%%} $st echo -n ${$(hg prompt "☿ {rev}@{branch}"):gs/%/%%} $st
else else
@ -212,7 +212,7 @@ prompt_hg() {
prompt_segment yellow black prompt_segment yellow black
st='±' st='±'
else else
prompt_segment green $CURRENT_FG prompt_segment 10 $CURRENT_FG
fi fi
echo -n "☿ ${rev:gs/%/%%}@${branch:gs/%/%%}" $st echo -n "☿ ${rev:gs/%/%%}@${branch:gs/%/%%}" $st
fi fi
@ -221,7 +221,7 @@ prompt_hg() {
# Dir: current working directory # Dir: current working directory
prompt_dir() { prompt_dir() {
prompt_segment blue $CURRENT_FG '%~' prompt_segment 12 $CURRENT_FG '%~'
} }
# Virtualenv: current working virtualenv # Virtualenv: current working virtualenv
@ -240,7 +240,7 @@ prompt_status() {
local -a symbols local -a symbols
[[ $RETVAL -ne 0 ]] && prompt_segment red black "" [[ $RETVAL -ne 0 ]] && prompt_segment red black ""
[[ $UID -eq 0 ]] && prompt_segment yellow black "󱐋" [[ $UID -eq 0 ]] && prompt_segment 11 black "󱐋"
} }
#AWS Profile: #AWS Profile:
@ -251,7 +251,7 @@ prompt_status() {
prompt_aws() { prompt_aws() {
[[ -z "$AWS_PROFILE" || "$SHOW_AWS_PROMPT" = false ]] && return [[ -z "$AWS_PROFILE" || "$SHOW_AWS_PROMPT" = false ]] && return
case "$AWS_PROFILE" in case "$AWS_PROFILE" in
*-prod|*production*) prompt_segment red yellow "AWS: ${AWS_PROFILE:gs/%/%%}" ;; *-prod|*production*) prompt_segment red 11 "AWS: ${AWS_PROFILE:gs/%/%%}" ;;
*) prompt_segment cyan black "AWS: ${AWS_PROFILE:gs/%/%%}" ;; *) prompt_segment cyan black "AWS: ${AWS_PROFILE:gs/%/%%}" ;;
esac esac
} }