Made things pretty

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-03-04 14:05:47 +00:00
parent d0b7ffb63b
commit 03ec3eea98
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
5 changed files with 81 additions and 14 deletions

View File

@ -0,0 +1,4 @@
long_uptime = true
long_shell = true
physical_cores = true
show = [ "Host", "Machine", "OperatingSystem", "Terminal", "Shell", "Uptime" ]

43
home/.macchina/theme.toml Normal file
View File

@ -0,0 +1,43 @@
hide_ascii = true
spacing = 1
padding = 0
separator = ""
key_color = "Cyan"
separator_color = "LightMagenta"
[bar]
glyph = "⭘"
symbol_open = ""
symbol_close = ""
visible = true
[box]
title = " Info "
visible = true
[box.inner_margin]
x = 1
y = 0
[randomize]
key_color = false
separator_color = false
[keys]
host = "Host"
kernel = "Kernel"
battery = "Battery"
os = "OS"
distro = "Distro"
terminal = "Terminal"
shell = "Shell"
packages = "Packages"
uptime = "Uptime"
memory = "Memory"
machine = "Machine"
local_ip = "IP"
backlight = "Brightness"
resolution = "Resolution"
cpu_load = "CPU Load"
cpu = "CPU"

View File

@ -14,32 +14,46 @@ format = """\
$terraform\
$package\
$custom\
$time\
$line_break\
$jobs\
$time\
$character\
"""
command_timeout = 1000
add_newline = true
[character]
success_symbol = "[✨](yellow)"
error_symbol = "[✗](red)"
[directory]
format = "┏  [$path]($style)[$read_only]($read_only_style) "
[aws]
symbol = " "
format = "[$symbol$profile]($style) "
[character]
success_symbol = "┗ [✨](yellow)"
error_symbol = "┗ [✗](red)"
[git_branch]
format = "⎮ [$symbol$branch]($style) "
symbol = "🌱 "
[git_commit]
only_detached = true
[git_status]
format = '\($all_status$ahead_behind\) '
up_to_date = "[✓](green)"
modified = "[!](bold fg:208)"
untracked = "[?](bold fg:75)"
staged = '[++\($count\)](green)'
[aws]
symbol = " "
format = "⎮ [$symbol$profile]($style) "
[golang]
symbol = " "
format = "[$symbol$version]($style) "
format = "⎮ [$symbol$version](fg:45) "
[kubernetes]
format = '[$symbol$context \($namespace\)]($style) '
format = '[$symbol$context (\($namespace\))]($style) '
symbol = "ﴱ "
style = "bold blue"
disabled = false
@ -47,7 +61,7 @@ disabled = false
"gs-(?P<cluster>.+)" = "$cluster [MC]"
[terraform]
format = "[$symbol$version]($style) "
format = "[$symbol$version]($style) "
[nodejs]
symbol = " "
@ -60,7 +74,7 @@ map_symbol = true
disabled = false
[helm]
format = "[$symbol$version]($style) "
format = "[$symbol$version]($style) "
symbol = " "
[cmd_duration]
@ -68,4 +82,8 @@ format = " took [$duration]($style) "
[package]
symbol = "📦"
format = "[$symbol$version]($style) "
format = "⎮ [$symbol$version]($style) "
[jobs]
number_threshold = 1
format = "┣ [$symbol $number background jobs\n]($style)"

View File

@ -29,3 +29,5 @@ done
rm -f ~/.zcompdump; compinit
eval "$(starship init zsh)"
macchina --config ~/.macchina/config.toml --theme ~/.macchina/theme

View File

@ -29,9 +29,9 @@ BREW_TOOLS=(
git-delta go helm homebrew/cask-fonts/font-open-dyslexic-nerd-font htop jq kind krew
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
tabby vale lastpass-cli jless
tabby vale lastpass-cli jless macchina
)
CARGO_TOOLS=( macchina bottom )
CARGO_TOOLS=( bottom )
NODE_TOOLS=( git-split-diffs )
KREW_TOOLS=( gs outdated tree stern )