From c8faedb86ba2aa4bf4a644934df738c52591fa1d Mon Sep 17 00:00:00 2001 From: unexplrd Date: Tue, 11 Mar 2025 18:31:11 +0200 Subject: [PATCH] m --- modules/home/programs/shell/oh-my-posh.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/modules/home/programs/shell/oh-my-posh.nix b/modules/home/programs/shell/oh-my-posh.nix index 4b8d63c..90aa91c 100644 --- a/modules/home/programs/shell/oh-my-posh.nix +++ b/modules/home/programs/shell/oh-my-posh.nix @@ -60,9 +60,10 @@ in { ]; } { - type = "rprompt"; + type = "prompt"; + alignment = "right"; + newline = false; overflow = "hidden"; - newline = true; segments = [ { type = "session"; @@ -71,10 +72,6 @@ in { background = "transparent"; template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }} {{ end }}"; } - { - type = "connection"; - template = "{{ if eq .Type \"wifi\"}} 󰖩 {{ else if eq .Type \"ethernet\"}} 󰈁 {{ else }} 󰈂{{ end }}"; - } { style = "plain"; foreground = "white"; @@ -98,7 +95,7 @@ in { style = "plain"; foreground = "yellow"; background = "transparent"; - template = "{{ .FormattedMs }}"; + template = " {{.FormattedMs}} "; properties = { threshold = 5000; }; @@ -113,7 +110,7 @@ in { { type = "text"; style = "plain"; - foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}green{{end}}"]; + foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}cyan{{end}}"]; background = "transparent"; template = ">"; } @@ -121,14 +118,14 @@ in { } ]; transient_prompt = { - foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}green{{end}}"]; + foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}cyan{{end}}"]; background = "transparent"; template = "> "; }; secondary_prompt = { - foreground = "green"; + foreground = "cyan"; background = "transparent"; - template = ">> "; + template = "-> "; }; }; };