new command prompt

This commit is contained in:
zegonix
2024-09-14 12:06:52 +02:00
parent 17c6ab5b3d
commit 162b88abe5
5 changed files with 148 additions and 31 deletions

View File

@@ -25,3 +25,4 @@ _darcs
images images
fonts fonts
misc misc
*/backup

View File

@@ -9,18 +9,24 @@ history = 100000
[font] [font]
size = 13.0 size = 13.0
[font.bold]
family = "VictorMono Nerd Font"
style = "Bold"
[font.bold_italic]
family = "VictorMono Nerd Font"
style = "BoldItalic"
[font.italic]
family = "VictorMono Nerd Font"
style = "SemiBoldItalic"
[font.normal] [font.normal]
family = "VictorMono Nerd Font" family = "VictorMono Nerd Font"
style = "SemiBold" style = "SemiBold"
# family = "Meslo LGS Nerd Font"
# style = "Regular"
[font.bold]
family = "VictorMono Nerd Font"
# family = "Mononoki Nerd Font Mono"
style = "Bold"
[font.italic]
family = "VictorMono Nerd Font"
# family = "Mononoki Nerd Font Mono"
style = "SemiBoldItalic"
[font.bold_italic]
family = "VictorMono Nerd Font"
# family = "Mononoki Nerd Font Mono"
style = "BoldItalic"

View File

@@ -13,7 +13,7 @@ fade-delta = 8;
# opacity # opacity
opacity-rule = [ opacity-rule = [
"90:class_g = 'Alacritty'" "93:class_g = 'Alacritty'"
]; ];
# corners # corners

View File

@@ -0,0 +1,60 @@
format = """
\n\
$username\
[](bg:#1E3769 fg:#361C72)\
$directory\
[](fg:#1E3769 bg:#215189)\
$git_branch\
$git_status\
[](fg:#215189 bg:#2A76A9)\
$time\
[](fg:#2A76A9)\n\
>>
"""
# Disable the blank line at the start of the prompt
add_newline = false
# You can also replace your username with a neat symbol like  or disable this
# and use the os module below
[username]
disabled = false
show_always = true
style_user = "bg:#361C72 fg:#DFDFD0"
style_root = "bg:#361C72 fg:#DFDFD0"
format = '[ $user ]($style)'
[directory]
disabled = false
style = "bg:#1E3769 fg:#DFDFD0"
format = "[ $path ]($style)"
truncation_length = 8
truncation_symbol = "…/"
truncate_to_repo = false
[git_branch]
disabled = false
symbol = ""
style = "bg:#215189 fg:#DFDFD0"
format = '[ $symbol $branch ]($style)'
[git_status]
disabled = false
style = "bg:#215189 fg:#DFDFD0"
format = '[$all_status$ahead_behind ]($style)'
[time]
disabled = false
style = "bg:#2A76A9 fg:#DFDFD0"
format = '[ $time ]($style)'
use_12hr = false
[status]
disabled = true
symbol = "[failure](fg:red)"
success_symbol = "[success](fg:green)"
[fill]
disabled = true
symbol = ' '
style = ''

View File

@@ -1,60 +1,110 @@
format = """ format = """
\n\ \n\
[╭─ ](bold)[⟨](bold zx_light_magenta)\
$status\
[//](bold zx_magenta)\
$username\ $username\
[](bg:#1E3769 fg:#361C72)\ [//](bold zx_cyan)\
$directory\ $directory\
[](fg:#1E3769 bg:#215189)\ [//](bold zx_light_yellow)\
$git_branch\ $git_branch[-](zx_light_magenta)$git_status\
$git_status\ [//](bold zx_yellow)\
[](fg:#215189 bg:#2A76A9)\ $jobs\
$time\ [⟩ ](bold zx_dark_cyan)\
[](fg:#2A76A9)\n\ $fill$shell\
>> \n[╰─](bold)
""" """
# \n[╰─](bold zx_light_magenta)
# Disable the blank line at the start of the prompt # Disable the blank line at the start of the prompt
add_newline = false add_newline = false
palette = 'zegonix'
# custom colors
[palettes.zegonix]
zx_green = "#0CB653"
zx_light_green = "#4BDD94"
zx_yellow = "#5EB34D"
zx_light_yellow = "#9EDF6D"
zx_blue = "#0E4081"
zx_light_blue = "#72AFE3"
zx_magenta = "#E02482"
zx_light_magenta = "#FBADDD"
zx_cyan = "#15D7E5"
zx_light_cyan = "#65E7F1"
zx_dark_cyan = "#109EA8"
zx_white = "#DFDFD0"
# You can also replace your username with a neat symbol like  or disable this # You can also replace your username with a neat symbol like  or disable this
# and use the os module below # and use the os module below
[username] [username]
disabled = false disabled = false
show_always = true show_always = true
style_user = "bg:#361C72 fg:#DFDFD0" style_user = "fg:zx_white"
style_root = "bg:#361C72 fg:#DFDFD0" style_root = "fg:zx_white"
format = '[ $user ]($style)' format = '[ $user ]($style)'
[directory] [directory]
disabled = false disabled = false
style = "bg:#1E3769 fg:#DFDFD0" style = "fg:zx_white"
format = "[ $path ]($style)" format = "[ $path ]($style)"
truncation_length = 8 truncation_length = 4
truncation_symbol = "…/" truncation_symbol = "…/"
truncate_to_repo = false truncate_to_repo = false
[git_branch] [git_branch]
disabled = false disabled = false
symbol = "" symbol = ""
style = "bg:#215189 fg:#DFDFD0" style = "fg:zx_white"
format = '[ $symbol $branch ]($style)' format = '[ $symbol $branch ]($style)'
[git_status] [git_status]
disabled = false disabled = false
style = "bg:#215189 fg:#DFDFD0" style = "fg:zx_white"
format = '[$all_status$ahead_behind ]($style)' format = '[ $all_status$ahead_behind ]($style)'
conflicted = ' '
ahead = ' '
behind = ' '
diverged = ' '
up_to_date = ' '
untracked = ' '
stashed = ''
modified = ' '
staged = ' '
renamed = ' '
deleted = ' '
typechanged = ''
[jobs]
disabled = false
symbol_threshold = 0
number_threshold = 1
symbol = '󰁀 '
style = 'bold fg:zx_white'
format ="[ $symbol$number ]($style)"
[time] [time]
disabled = false disabled = true
style = "bg:#2A76A9 fg:#DFDFD0" style = "fg:zx_light_blue"
format = '[ $time ]($style)' format = '[ $time ]($style)'
use_12hr = false use_12hr = false
[status] [status]
disabled = true disabled = false
symbol = "[failure](fg:red)" style = "fg:zx_white"
success_symbol = "[success](fg:green)" format = "[ $symbol ]($style)"
symbol = '[\[err\]](bold)'
success_symbol = '[\[ok\]](bold)'
[fill] [fill]
disabled = true disabled = false
symbol = ' ' symbol = ''
style = '' style = 'bold zx_white'
[shell]
disabled = false
style = "zx_green"
format = ' [\[]($style)[$indicator](fg:zx_white)[\]]($style) '
bash_indicator = "bash"