diff --git a/.chezmoitemplates/starship_rose_pine_toml.tmpl b/.chezmoitemplates/starship_rose_pine_toml.tmpl new file mode 100644 index 0000000..1e283df --- /dev/null +++ b/.chezmoitemplates/starship_rose_pine_toml.tmpl @@ -0,0 +1,146 @@ +format = """ +$username \ +$directory \ +$git_branch \ +$git_status \ +$fill \ +$c \ +$elixir \ +$elm \ +$golang \ +$haskell \ +$java \ +$julia \ +$nodejs \ +$nim \ +$rust \ +$scala \ +$python\n \ +$time\n \ +[󱞪](fg:iris) +""" + +palette = "rose-pine" + +[palettes.rose-pine] +overlay = '#26233a' +love = '#eb6f92' +gold = '#f6c177' +rose = '#ebbcba' +pine = '#31748f' +foam = '#9ccfd8' +iris = '#c4a7e7' + +[directory] +format = "[](fg:overlay)[ $path ]($style)[](fg:overlay)" +style = "bg:overlay fg:pine" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +Documents = "󰈙" +Downloads = " " +Music = " " +Pictures = " " + +[fill] +style = "fg:overlay" +symbol = " " + +[git_branch] +format = "[](fg:overlay)[ $symbol $branch ]($style)[](fg:overlay)" +style = "bg:overlay fg:foam" +symbol = "" + +[git_status] +style = "bg:overlay fg:love" +format = '[](fg:overlay)[$all_status$ahead_behind]($style)[](fg:overlay)' +disabled = true + +[time] +disabled = false +format = "[](fg:overlay)[ $time 󰴈 ]($style)[](fg:overlay)" +style = "bg:overlay fg:rose" +time_format = "%I:%M%P" +use_12hr = true + +[username] +disabled = false +format = "[](fg:overlay)[ 󰧱 $user ]($style)[](fg:overlay)" +show_always = true +style_root = "bg:overlay fg:iris" +style_user = "bg:overlay fg:iris" + +# Languages + +[c] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[elixir] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[elm] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[golang] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[haskell] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[java] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[julia] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[nodejs] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = "󰎙 " + +[nim] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = "󰆥 " + +[rust] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = "" + +[scala] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = " " + +[python] +style = "bg:overlay fg:pine" +format = "[](fg:overlay)[$symbol$version]($style)[](fg:overlay) " +disabled = false +symbol = ' ' diff --git a/.chezmoitemplates/starship_toml.tmpl b/.chezmoitemplates/starship_toml.tmpl new file mode 100644 index 0000000..8a48e85 --- /dev/null +++ b/.chezmoitemplates/starship_toml.tmpl @@ -0,0 +1,188 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +[character] +success_symbol = "[[]({{ .drapeau.colors.base0F }}) ]({{ .drapeau.colors.base0B }})" +error_symbol = "[]({{ .drapeau.colors.base08 }})" +vimcmd_symbol = "[]({{ .drapeau.colors.base0B }})" +vimcmd_replace_one_symbol = "[]({{ .drapeau.colors.base0B }})" +vimcmd_replace_symbol = "[]({{ .drapeau.colors.base0B }})" +vimcmd_visual_symbol = "[]({{ .drapeau.colors.base09 }})" + +[aws] +symbol = " " + +[buf] +symbol = " " + +[c] +symbol = " " + +[conda] +symbol = " " + +[crystal] +symbol = " " + +[dart] +symbol = " " + +[directory] +read_only = " 󰌾" + +[docker_context] +symbol = " " + +[elixir] +symbol = " " + +[elm] +symbol = " " + +[fennel] +symbol = " " + +[fossil_branch] +symbol = " " + +[git_branch] +symbol = " " + +[golang] +symbol = " " + +[guix_shell] +symbol = " " + +[haskell] +symbol = " " + +[haxe] +symbol = " " + +[hg_branch] +symbol = " " + +[hostname] +ssh_symbol = " " +style = 'bold {{ .drapeau.colors.base07 }}' + +[java] +symbol = " " + +[julia] +symbol = " " + +[kotlin] +symbol = " " + +[lua] +symbol = " " + +[memory_usage] +symbol = "󰍛 " + +[meson] +symbol = "󰔷 " + +[nim] +symbol = "󰆥 " + +[nix_shell] +symbol = " " + +[nodejs] +symbol = " " + +[ocaml] +symbol = " " + +[os.symbols] +Alpaquita = " " +Alpine = " " +Amazon = " " +Android = " " +Arch = " " +Artix = " " +CentOS = " " +Debian = " " +DragonFly = " " +Emscripten = " " +EndeavourOS = " " +Fedora = " " +FreeBSD = " " +Garuda = "󰛓 " +Gentoo = " " +HardenedBSD = "󰞌 " +Illumos = "󰈸 " +Linux = " " +Mabox = " " +Macos = " " +Manjaro = " " +Mariner = " " +MidnightBSD = " " +Mint = " " +NetBSD = " " +NixOS = " " +OpenBSD = "󰈺 " +openSUSE = " " +OracleLinux = "󰌷 " +Pop = " " +Raspbian = " " +Redhat = " " +RedHatEnterprise = " " +Redox = "󰀘 " +Solus = "󰠳 " +SUSE = " " +Ubuntu = " " +Unknown = " " +Windows = "󰍲 " + +[package] +symbol = "󰏗 " + +[perl] +symbol = " " + +[php] +symbol = " " + +[pijul_channel] +symbol = " " + +[python] +symbol = " " + +[rlang] +symbol = "󰟔 " + +[ruby] +symbol = " " + +[rust] +symbol = " " + +[scala] +symbol = " " + +[status] +disabled = false +style = '{{ .drapeau.colors.base08 }}' +symbol = '✗' +not_executable_symbol = '' +not_found_symbol = '' +sigint_symbol = '󱠰' +signal_symbol = '󱐋' + +[sudo] +disabled = false +style = '{{ .drapeau.colors.base0D }}' +symbol = '󰌋 ' + +[swift] +symbol = " " + +[username] +format = '[$user]($style) on ' + +[zig] +symbol = " " diff --git a/dot_config/starship.toml.tmpl b/dot_config/starship.toml.tmpl index 8a48e85..6a552e5 100644 --- a/dot_config/starship.toml.tmpl +++ b/dot_config/starship.toml.tmpl @@ -1,188 +1,5 @@ -"$schema" = 'https://starship.rs/config-schema.json' - -[character] -success_symbol = "[[]({{ .drapeau.colors.base0F }}) ]({{ .drapeau.colors.base0B }})" -error_symbol = "[]({{ .drapeau.colors.base08 }})" -vimcmd_symbol = "[]({{ .drapeau.colors.base0B }})" -vimcmd_replace_one_symbol = "[]({{ .drapeau.colors.base0B }})" -vimcmd_replace_symbol = "[]({{ .drapeau.colors.base0B }})" -vimcmd_visual_symbol = "[]({{ .drapeau.colors.base09 }})" - -[aws] -symbol = " " - -[buf] -symbol = " " - -[c] -symbol = " " - -[conda] -symbol = " " - -[crystal] -symbol = " " - -[dart] -symbol = " " - -[directory] -read_only = " 󰌾" - -[docker_context] -symbol = " " - -[elixir] -symbol = " " - -[elm] -symbol = " " - -[fennel] -symbol = " " - -[fossil_branch] -symbol = " " - -[git_branch] -symbol = " " - -[golang] -symbol = " " - -[guix_shell] -symbol = " " - -[haskell] -symbol = " " - -[haxe] -symbol = " " - -[hg_branch] -symbol = " " - -[hostname] -ssh_symbol = " " -style = 'bold {{ .drapeau.colors.base07 }}' - -[java] -symbol = " " - -[julia] -symbol = " " - -[kotlin] -symbol = " " - -[lua] -symbol = " " - -[memory_usage] -symbol = "󰍛 " - -[meson] -symbol = "󰔷 " - -[nim] -symbol = "󰆥 " - -[nix_shell] -symbol = " " - -[nodejs] -symbol = " " - -[ocaml] -symbol = " " - -[os.symbols] -Alpaquita = " " -Alpine = " " -Amazon = " " -Android = " " -Arch = " " -Artix = " " -CentOS = " " -Debian = " " -DragonFly = " " -Emscripten = " " -EndeavourOS = " " -Fedora = " " -FreeBSD = " " -Garuda = "󰛓 " -Gentoo = " " -HardenedBSD = "󰞌 " -Illumos = "󰈸 " -Linux = " " -Mabox = " " -Macos = " " -Manjaro = " " -Mariner = " " -MidnightBSD = " " -Mint = " " -NetBSD = " " -NixOS = " " -OpenBSD = "󰈺 " -openSUSE = " " -OracleLinux = "󰌷 " -Pop = " " -Raspbian = " " -Redhat = " " -RedHatEnterprise = " " -Redox = "󰀘 " -Solus = "󰠳 " -SUSE = " " -Ubuntu = " " -Unknown = " " -Windows = "󰍲 " - -[package] -symbol = "󰏗 " - -[perl] -symbol = " " - -[php] -symbol = " " - -[pijul_channel] -symbol = " " - -[python] -symbol = " " - -[rlang] -symbol = "󰟔 " - -[ruby] -symbol = " " - -[rust] -symbol = " " - -[scala] -symbol = " " - -[status] -disabled = false -style = '{{ .drapeau.colors.base08 }}' -symbol = '✗' -not_executable_symbol = '' -not_found_symbol = '' -sigint_symbol = '󱠰' -signal_symbol = '󱐋' - -[sudo] -disabled = false -style = '{{ .drapeau.colors.base0D }}' -symbol = '󰌋 ' - -[swift] -symbol = " " - -[username] -format = '[$user]($style) on ' - -[zig] -symbol = " " +{{- if eq .data.drapeau.colorscheme "rose-pine" -}} +{{- template "starship_rose_pine_toml.tmpl" . -}} +{{- else -}} +{{- template "starship_toml.tmpl" . -}} +{{- end -}}