From a9299f3c484be8dbd2f4025629d8f6135453f03d Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 17 Jun 2024 19:18:42 +0300 Subject: Splitted tokyocat to a normal and laptop version, so battery won't be shown if you are not using a laptop --- .config/ohmyposh/tokyocat.omp.yml | 54 +++++++++------------------------------ 1 file changed, 12 insertions(+), 42 deletions(-) (limited to '.config/ohmyposh/tokyocat.omp.yml') diff --git a/.config/ohmyposh/tokyocat.omp.yml b/.config/ohmyposh/tokyocat.omp.yml index 108b740..8c1d552 100644 --- a/.config/ohmyposh/tokyocat.omp.yml +++ b/.config/ohmyposh/tokyocat.omp.yml @@ -7,48 +7,6 @@ final_space: true console_title_template: "Tumbleweed" blocks: - - type: prompt - alignment: left - newline: true - segments: - - type: battery - style: diamond - trailing_diamond:  - foreground: "transparent" - background: "p:red" - background_templates: - # The higher it is (earlier in the list), the higher the priority - # So if <50 and <20, it will be green and if >20 and >80, it will be dark blue - - '{{ if .Error }}p:yellow{{ end }}' - - '{{ if and (eq "Discharging" .State.String) (gt .Percentage 50) }}p:green{{end}}' - - '{{ if and (eq "Discharging" .State.String) (gt .Percentage 20) }}p:yellow{{end}}' - - '{{ if and (eq "Charging" .State.String) (le .Percentage 20) }}p:dark_blue{{end}}' - - '{{ if and (eq "Charging" .State.String) (le .Percentage 80) }}p:light_blue{{end}}' - templates: - - '{{ if .Error }} 󰂑 {{ .Error }} {{ end }}' - - '{{ if and (not .Error) (eq .Percentage 100) }} 󰁹 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 90) (ne .Percentage 100)) }} 󰂂 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 80) (lt .Percentage 90)) }} 󰂁 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 70) (lt .Percentage 80)) }} 󰂀 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 60) (lt .Percentage 70)) }} 󰁿 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 50) (lt .Percentage 60)) }} 󰁾 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 40) (lt .Percentage 50)) }} 󰁽 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 30) (lt .Percentage 40)) }} 󰁼 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 20) (lt .Percentage 30)) }} 󰁻 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 10) (lt .Percentage 20)) }} 󰁺 {{ .Percentage }} {{ end }}' - - '{{ if and (not .Error) (and (ge .Percentage 0) (lt .Percentage 10) }} 󰂎{{ .Percentage }} {{ end }}' - - - type: status - style: diamond - foreground: "p:white" - background: "p:cyan" - background_templates: - - "{{ if .Error }}p:red2{{ end }}" - trailing_diamond:  - template: "  " - properties: - always_enabled: false - - type: prompt alignment: left newline: true @@ -74,6 +32,17 @@ blocks: branch_icon: " " commit_icon: "@" + - type: status + style: diamond + foreground: "p:white" + background: "p:cyan" + background_templates: + - "{{ if .Error }}p:red2{{ end }}" + trailing_diamond:  + template: "  " + properties: + always_enabled: false + - type: rprompt overflow: hidden segments: @@ -100,6 +69,7 @@ blocks: - "{{ if eq .Code 0 }}p:magenta{{end}}" template: "❯" + transient_prompt: background: transparent foreground: p:magenta -- cgit v1.3.1