diff --git a/oh-my-posh/basic-nerd.toml b/oh-my-posh/basic-nerd.toml index fce963f..6ca1a33 100644 --- a/oh-my-posh/basic-nerd.toml +++ b/oh-my-posh/basic-nerd.toml @@ -1,47 +1,52 @@ -"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" +console_title_template = '{{.PWD}}' +version = 3 final_space = true -version = 2 -console_title_template = "{{.PWD}}" - -[[blocks]] -type = "prompt" -alignment = "left" -newline = true - - [[blocks.segments]] - type = "root" - style = "plain" - template = "(󱐋) " - - [[blocks.segments]] - type = "session" - style = "plain" - template = "{{ if .SSHSession }}() {{ end }}" - - [[blocks.segments]] - type = "path" - style = "plain" - foreground = "white" - - [blocks.segments.properties] - style = "powerlevel" - - [[blocks.segments]] - type = "text" - foreground = "white" - style = "plain" - template = "❯" - -[transient_prompt] - foreground_templates = [ - "{{if gt .Code 0}}red{{end}}", - "{{if eq .Code 0}}white{{end}}", - ] - background = 'transparent' - template = '❯ ' - [secondary_prompt] + template = ' ❯❯ ' foreground = 'white' background = 'transparent' - template = ' ❯❯ ' + +[transient_prompt] + template = '❯ ' + background = 'transparent' + foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}white{{end}}'] + +[[blocks]] + type = 'prompt' + alignment = 'left' + newline = true + + [[blocks.segments]] + template = '(󱐋) ' + type = 'root' + style = 'plain' + + [blocks.segments.properties] + cache_duration = 'none' + + [[blocks.segments]] + template = '{{ if .SSHSession }}() {{ end }}' + type = 'session' + style = 'plain' + + [blocks.segments.properties] + cache_duration = 'none' + + [[blocks.segments]] + foreground = 'white' + type = 'path' + style = 'plain' + + [blocks.segments.properties] + cache_duration = 'none' + style = 'powerlevel' + + [[blocks.segments]] + template = '❯' + foreground = 'white' + type = 'text' + style = 'plain' + + [blocks.segments.properties] + cache_duration = 'none' diff --git a/sway/config b/sway/config index 5840002..f7cbbfd 100755 --- a/sway/config +++ b/sway/config @@ -23,7 +23,7 @@ set $filemanager nemo # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. #set $menu dmenu_path | wmenu | xargs swaymsg exec -- -set $dmenu dmenu +set $dmenu dmenu -i set $menu j4-dmenu-desktop --no-generic --dmenu=$dmenu set $background ~/.wallpaper ### Output configuration