Add HawolexV2 gradient style
This commit is contained in:
@@ -188,6 +188,13 @@
|
|||||||
"layout": "two-line, contest layout",
|
"layout": "two-line, contest layout",
|
||||||
"preview": "[date time user] @host - /path"
|
"preview": "[date time user] @host - /path"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "hawolexv2",
|
||||||
|
"name": "HawolexV2",
|
||||||
|
"description": "Winter neon with multi-segment gradient.",
|
||||||
|
"layout": "two-line, segmented gradient",
|
||||||
|
"preview": "[date time user] @host - /path"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "radar",
|
"id": "radar",
|
||||||
"name": "Radar",
|
"name": "Radar",
|
||||||
@@ -239,7 +246,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"env": "PS1_STYLE=aurora|neon|forge|circuit|mono|git|hawolex|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; PS1_GIT=0|1",
|
"env": "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; PS1_GIT=0|1",
|
||||||
"config_file_keys": [
|
"config_file_keys": [
|
||||||
"PS1_STYLE",
|
"PS1_STYLE",
|
||||||
"PS1_STYLE_PACK",
|
"PS1_STYLE_PACK",
|
||||||
|
|||||||
@@ -267,6 +267,27 @@
|
|||||||
},
|
},
|
||||||
"preview": "[date time user] @host - /path"
|
"preview": "[date time user] @host - /path"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "hawolexv2",
|
||||||
|
"name": "HawolexV2",
|
||||||
|
"tagline": "Winter neon gradient",
|
||||||
|
"description": "Multi-segment winter neon gradient with stronger separation.",
|
||||||
|
"layout": {
|
||||||
|
"line1": "date time user | @host | /path",
|
||||||
|
"line2": "status arrow + emoji"
|
||||||
|
},
|
||||||
|
"colors": {
|
||||||
|
"zone1_bg": 54,
|
||||||
|
"zone2_bg": 55,
|
||||||
|
"zone3_bg": 56,
|
||||||
|
"zone4_bg": 31,
|
||||||
|
"zone5_bg": 30,
|
||||||
|
"zone_fg": 255,
|
||||||
|
"path_fg": 230,
|
||||||
|
"frame": 24
|
||||||
|
},
|
||||||
|
"preview": "[date time user] @host - /path"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "radar",
|
"id": "radar",
|
||||||
"name": "Radar",
|
"name": "Radar",
|
||||||
|
|||||||
@@ -157,6 +157,8 @@ if [[ -t 0 ]]; then
|
|||||||
echo " Preview: [date time user] @host - /path (git)"
|
echo " Preview: [date time user] @host - /path (git)"
|
||||||
echo " 7) Hawolex - Winter neon, tech icons"
|
echo " 7) Hawolex - Winter neon, tech icons"
|
||||||
echo " Preview: [date time user] @host - /path"
|
echo " Preview: [date time user] @host - /path"
|
||||||
|
echo " 8) HawolexV2 - Winter neon gradient"
|
||||||
|
echo " Preview: [date time user] @host - /path"
|
||||||
read -r -p "Choose style [1]: " style_pick
|
read -r -p "Choose style [1]: " style_pick
|
||||||
case "${style_pick}" in
|
case "${style_pick}" in
|
||||||
2) style_choice="neon" ;;
|
2) style_choice="neon" ;;
|
||||||
@@ -165,6 +167,7 @@ if [[ -t 0 ]]; then
|
|||||||
5) style_choice="mono" ;;
|
5) style_choice="mono" ;;
|
||||||
6) style_choice="git" ;;
|
6) style_choice="git" ;;
|
||||||
7) style_choice="hawolex" ;;
|
7) style_choice="hawolex" ;;
|
||||||
|
8) style_choice="hawolexv2" ;;
|
||||||
""|1) style_choice="aurora" ;;
|
""|1) style_choice="aurora" ;;
|
||||||
*) echo "Invalid choice, using aurora."; style_choice="aurora" ;;
|
*) echo "Invalid choice, using aurora."; style_choice="aurora" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -133,6 +133,8 @@ if [[ -t 0 ]]; then
|
|||||||
echo " Preview: [date time user] @host - /path (git)"
|
echo " Preview: [date time user] @host - /path (git)"
|
||||||
echo " 7) Hawolex - Winter neon, tech icons"
|
echo " 7) Hawolex - Winter neon, tech icons"
|
||||||
echo " Preview: [date time user] @host - /path"
|
echo " Preview: [date time user] @host - /path"
|
||||||
|
echo " 8) HawolexV2 - Winter neon gradient"
|
||||||
|
echo " Preview: [date time user] @host - /path"
|
||||||
read -r -p "Choose style [1]: " style_pick
|
read -r -p "Choose style [1]: " style_pick
|
||||||
case "${style_pick}" in
|
case "${style_pick}" in
|
||||||
2) style_choice="neon" ;;
|
2) style_choice="neon" ;;
|
||||||
@@ -141,6 +143,7 @@ if [[ -t 0 ]]; then
|
|||||||
5) style_choice="mono" ;;
|
5) style_choice="mono" ;;
|
||||||
6) style_choice="git" ;;
|
6) style_choice="git" ;;
|
||||||
7) style_choice="hawolex" ;;
|
7) style_choice="hawolex" ;;
|
||||||
|
8) style_choice="hawolexv2" ;;
|
||||||
""|1) style_choice="aurora" ;;
|
""|1) style_choice="aurora" ;;
|
||||||
*) echo "Invalid choice, using aurora."; style_choice="aurora" ;;
|
*) echo "Invalid choice, using aurora."; style_choice="aurora" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ _ps1_season() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Style selection (aurora/neon/forge/circuit/mono/git/hawolex + custom pack)
|
# 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_STYLE_PACK=standard|contest|holiday|custom
|
||||||
# PS1_CONTEST_LAYOUT=day-time-user|user-time|time-user|day-time
|
# PS1_CONTEST_LAYOUT=day-time-user|user-time|time-user|day-time
|
||||||
# PS1_HOLIDAY=christmas|easter|halloween|valentine|thanksgiving|newyear
|
# 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}\
|
${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}"
|
\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)
|
radar)
|
||||||
local R_FRAME="\[\e[38;5;22m\]"
|
local R_FRAME="\[\e[38;5;22m\]"
|
||||||
local R_MAIN="\[\e[38;5;46m\]"
|
local R_MAIN="\[\e[38;5;46m\]"
|
||||||
|
|||||||
Reference in New Issue
Block a user