Add HawolexV2 gradient style

This commit is contained in:
2026-01-24 15:57:58 +00:00
parent 77cbefe2a2
commit a6b588ad8a
5 changed files with 69 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ _ps1_season() {
}
# Style selection (aurora/neon/forge/circuit/mono/git/hawolex + custom pack)
# PS1_STYLE=aurora|neon|forge|circuit|mono|git|hawolex|radar|synthwave|noir|topo|glitch|arcticfire|acidlime
# PS1_STYLE=aurora|neon|forge|circuit|mono|git|hawolex|hawolexv2|radar|synthwave|noir|topo|glitch|arcticfire|acidlime
# PS1_STYLE_PACK=standard|contest|holiday|custom
# PS1_CONTEST_LAYOUT=day-time-user|user-time|time-user|day-time
# PS1_HOLIDAY=christmas|easter|halloween|valentine|thanksgiving|newyear
@@ -748,6 +748,39 @@ ${H_LEFT_FG}${H_LEFT}${RST}${H_Z1_BG}${H_Z1_FG} ${L1} ${RST}${H_Z1_BG}${H_Z2_BG}
${H_Z2_BG}${H_Z2_FG} ${HOST_PART}${PATH_SEP}${H_PATH_FG}${PATH_PART}${END_PAD}${RST}${H_RIGHT_FG}${H_RIGHT}${RST}\
\n${H_FRAME}╰── ${RST}${prompt_sym} ${__PS1_SYM}${git_tail}"
;;
hawolexv2)
local HV2_FRAME="\[\e[38;5;24m\]"
local HV2_1_BG="\[\e[48;5;54m\]"
local HV2_1_FG="\[\e[38;5;255m\]"
local HV2_2_BG="\[\e[48;5;55m\]"
local HV2_2_FG="\[\e[38;5;255m\]"
local HV2_3_BG="\[\e[48;5;56m\]"
local HV2_3_FG="\[\e[38;5;255m\]"
local HV2_4_BG="\[\e[48;5;31m\]"
local HV2_4_FG="\[\e[38;5;255m\]"
local HV2_5_BG="\[\e[48;5;30m\]"
local HV2_PATH_FG="\[\e[38;5;230m\]"
local HV2_LEFT="${left}"
local HV2_RIGHT="${right}"
local HV2_SEP="${sep}"
local HV2_LEFT_FG=""
local HV2_RIGHT_FG=""
if [[ "$__PS1_USE_NF" -eq 1 ]]; then
HV2_LEFT=""
HV2_RIGHT=""
HV2_SEP=""
HV2_LEFT_FG="\[\e[38;5;54m\]"
HV2_RIGHT_FG="\[\e[38;5;30m\]"
fi
local HV2_SEP12="\[\e[38;5;55m\]\[\e[48;5;54m\]${HV2_SEP}${RST}"
local HV2_SEP23="\[\e[38;5;56m\]\[\e[48;5;55m\]${HV2_SEP}${RST}"
local HV2_SEP34="\[\e[38;5;31m\]\[\e[48;5;56m\]${HV2_SEP}${RST}"
local HV2_SEP45="\[\e[38;5;30m\]\[\e[48;5;31m\]${HV2_SEP}${RST}"
PS1="\
${PREFIX}${HV2_FRAME}╭─${RST}\
${HV2_LEFT_FG}${HV2_LEFT}${RST}${HV2_1_BG}${HV2_1_FG} \\d ${RST}${HV2_SEP12}${HV2_2_BG}${HV2_2_FG} \\A ${RST}${HV2_SEP23}${HV2_3_BG}${HV2_3_FG} \\u ${RST}${HV2_SEP34}${HV2_4_BG}${HV2_4_FG} ${L_HOST} ${RST}${HV2_SEP45}${HV2_5_BG}${HV2_PATH_FG} ${__PS1_PATH}${END_PAD}${RST}${HV2_RIGHT_FG}${HV2_RIGHT}${RST}\
\n${HV2_FRAME}╰── ${RST}${prompt_sym} ${__PS1_SYM}${git_tail}"
;;
radar)
local R_FRAME="\[\e[38;5;22m\]"
local R_MAIN="\[\e[38;5;46m\]"