diff --git a/matugen/config.lua b/matugen/config.lua new file mode 100644 index 0000000..2e325fa --- /dev/null +++ b/matugen/config.lua @@ -0,0 +1,6 @@ +return { + target = { + linux = "~/.config/matugen", + default = "~/.config/matugen", + }, +} diff --git a/matugen/files/config.toml b/matugen/files/config.toml new file mode 100644 index 0000000..27a829d --- /dev/null +++ b/matugen/files/config.toml @@ -0,0 +1,43 @@ +[config] + +[templates.ghostty] +input_path = '~/.config/matugen/templates/ghostty-theme' +output_path = '~/.config/ghostty/themes/matugen' +post_hook = 'pkill -SIGUSR2 ghostty' + +[templates.gtk3] +input_path = '~/.config/matugen/templates/gtk-colors.css' +output_path = '~/.config/gtk-3.0/colors.css' + +[templates.gtk4] +input_path = '~/.config/matugen/templates/gtk-colors.css' +output_path = '~/.config/gtk-4.0/colors.css' + +[templates.starship] +input_path = '~/.config/matugen/templates/starship-colors.toml' +output_path = '~/.config/starship.toml' + +[templates.yazi] +input_path = '~/.config/matugen/templates/yazi-theme.toml' +output_path = '~/.config/yazi/theme.toml' + +[templates.qt5ct] +input_path = '~/.config/matugen/templates/qtct-colors.conf' +output_path = '~/.config/qt5ct/colors/matugen.conf' + +[templates.rofi] +input_path = '~/.config/matugen/templates/rofi-colors.rasi' +output_path = '~/.config/rofi/colors/matugen.rasi' + +[templates.niri] +input_path = '~/.config/matugen/templates/niri-colors.kdl' +output_path = '~/.config/niri/colors.kdl' + +[templates.jjui] +input_path = '~/.config/matugen/templates/jjui-theme.toml' +output_path = '~/.config/jjui/themes/matugen.toml' + +[templates.nvim] +input_path = '~/.config/matugen/templates/neovim.lua' +output_path = '~/.config/nvim/lua/plugins/dankcolors.lua' +post_hook = '(scp -i ~/.ssh/mac-attio ~/.config/nvim/lua/plugins/dankcolors.lua thomasglopes@192.168.1.205:~/.config/nvim/lua/plugins/ >/dev/null 2>&1 &)' diff --git a/matugen/files/templates/foot-theme b/matugen/files/templates/foot-theme new file mode 100644 index 0000000..cd7a796 --- /dev/null +++ b/matugen/files/templates/foot-theme @@ -0,0 +1,23 @@ +[colors] +foreground={{colors.on_surface.default.hex}} +background={{colors.surface.default.hex}} +selection-foreground={{colors.on_secondary.default.hex}} +selection-background={{colors.secondary_fixed_dim.default.hex}} + +regular0=#4c4c4c +regular1=#ac8a8c +regular2=#8aac8b +regular3=#aca98a +regular4={{colors.primary.default.hex}} +regular5=#ac8aac +regular6=#8aacab +regular7=#e7e7e7 + +bright0={{colors.on_surface_variant.default.hex | set_lightness: 60.0}} +bright1=#c49ea0 +bright2=#9ec49f +bright3=#c4c19e +bright4=#a39ec4 +bright5=#c49ec4 +bright6=#9ec3c4 +bright7=#f0f0f0 diff --git a/matugen/files/templates/ghostty-theme b/matugen/files/templates/ghostty-theme new file mode 100644 index 0000000..9808862 --- /dev/null +++ b/matugen/files/templates/ghostty-theme @@ -0,0 +1,38 @@ +cursor-color = {{colors.on_surface.default.hex}} +cursor-text = {{colors.on_surface_variant.default.hex}} +foreground = {{colors.on_surface.default.hex}} +background = {{colors.surface.default.hex}} +selection-foreground = {{colors.on_secondary.default.hex}} +selection-background ={{colors.secondary_fixed_dim.default.hex}} + +# black +palette=8={{colors.on_surface_variant.default.hex | set_lightness: 60.0}} +palette=0=#4c4c4c + +# red +palette=1=#ac8a8c +palette=9=#c49ea0 + +# green +palette=2=#8aac8b +palette=10=#9ec49f + +# yellow +palette=3=#aca98a +palette=11=#c4c19e + +# blue +palette=4={{colors.primary.default.hex}} +palette=12=#a39ec4 + +# magenta +palette=5=#ac8aac +palette=13=#c49ec4 + +# cyan +palette=6=#8aacab +palette=14=#9ec3c4 + +# white +palette=15=#e7e7e7 +palette=7=#f0f0f0 diff --git a/matugen/files/templates/gtk-colors.css b/matugen/files/templates/gtk-colors.css new file mode 100644 index 0000000..a3676c4 --- /dev/null +++ b/matugen/files/templates/gtk-colors.css @@ -0,0 +1,22 @@ +/* +* GTK Colors +* Generated with Matugen +*/ + +@define-color accent_color {{colors.primary_fixed_dim.default.hex}}; +@define-color accent_fg_color {{colors.on_primary_fixed.default.hex}}; +@define-color accent_bg_color {{colors.primary_fixed_dim.default.hex}}; +@define-color window_bg_color {{colors.surface_dim.default.hex}}; +@define-color window_fg_color {{colors.on_surface.default.hex}}; +@define-color headerbar_bg_color {{colors.surface_dim.default.hex}}; +@define-color headerbar_fg_color {{colors.on_surface.default.hex}}; +@define-color popover_bg_color {{colors.surface_dim.default.hex}}; +@define-color popover_fg_color {{colors.on_surface.default.hex}}; +@define-color view_bg_color {{colors.surface.default.hex}}; +@define-color view_fg_color {{colors.on_surface.default.hex}}; +@define-color card_bg_color {{colors.surface.default.hex}}; +@define-color card_fg_color {{colors.on_surface.default.hex}}; +@define-color sidebar_bg_color @window_bg_color; +@define-color sidebar_fg_color @window_fg_color; +@define-color sidebar_border_color @window_bg_color; +@define-color sidebar_backdrop_color @window_bg_color; diff --git a/matugen/files/templates/hyprland-colors.conf b/matugen/files/templates/hyprland-colors.conf new file mode 100644 index 0000000..d7e6821 --- /dev/null +++ b/matugen/files/templates/hyprland-colors.conf @@ -0,0 +1,4 @@ +<* for name, value in colors *> +$image = {{image}} +${{name}} = rgba({{value.default.hex_stripped}}ff) +<* endfor *> diff --git a/matugen/files/templates/jjui-theme.toml b/matugen/files/templates/jjui-theme.toml new file mode 100644 index 0000000..87925a2 --- /dev/null +++ b/matugen/files/templates/jjui-theme.toml @@ -0,0 +1,51 @@ +"text" = { fg = "{{colors.on_surface.default.hex}}", bg = "{{colors.surface.default.hex}}" } +"dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } +"selected" = { bg = "{{colors.primary_container.default.hex}}", fg = "{{colors.on_primary_container.default.hex}}" } +"border" = { fg = "{{colors.outline.default.hex}}" } +"title" = { fg = "{{colors.primary.default.hex}}", bold = true } +"shortcut" = { fg = "{{colors.secondary.default.hex}}" } +"matched" = { fg = "{{colors.tertiary.default.hex}}", underline = true } + +"source_marker" = { bg = "{{colors.tertiary_container.default.hex}}", fg = "{{colors.on_tertiary_container.default.hex}}" } +"target_marker" = { bg = "{{colors.error_container.default.hex}}", fg = "{{colors.on_error_container.default.hex}}" } + +"revisions rebase source_marker" = { bold = true } +"revisions rebase target_marker" = { bold = true } + +"status" = { bg = "{{colors.surface_container_high.default.hex}}" } +"status title" = { fg = "{{colors.on_primary.default.hex}}", bg = "{{colors.primary.default.hex}}", bold = true } +"status shortcut" = { fg = "{{colors.secondary.default.hex}}" } +"status dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } + +"revset text" = { bold = true } +"revset completion selected" = { bg = "{{colors.primary_container.default.hex}}", fg = "{{colors.on_primary_container.default.hex}}" } +"revset completion matched" = { bold = true } +"revset completion dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } + +"revisions selected" = { bold = true } +"oplog selected" = { bold = true } + +"evolog selected" = { bg = "{{colors.secondary_container.default.hex}}", fg = "{{colors.on_secondary_container.default.hex}}", bold = true } + +"help" = { bg = "{{colors.surface_container.default.hex}}" } +"help title" = { fg = "{{colors.primary.default.hex}}", bold = true, underline = true } +"help border" = { fg = "{{colors.outline.default.hex}}" } + +"menu" = { bg = "{{colors.surface_container.default.hex}}" } +"menu title" = { fg = "{{colors.primary.default.hex}}", bold = true } +"menu shortcut" = { fg = "{{colors.secondary.default.hex}}" } +"menu dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } +"menu border" = { fg = "{{colors.outline.default.hex}}" } +"menu selected" = { bg = "{{colors.primary_container.default.hex}}", fg = "{{colors.on_primary_container.default.hex}}" } + +"confirmation" = { bg = "{{colors.surface_container.default.hex}}" } +"confirmation text" = { fg = "{{colors.on_surface.default.hex}}" } +"confirmation selected" = { bg = "{{colors.primary_container.default.hex}}", fg = "{{colors.on_primary_container.default.hex}}" } +"confirmation dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } +"confirmation border" = { fg = "{{colors.primary.default.hex}}" } + +"undo" = { bg = "{{colors.surface_container.default.hex}}" } +"undo confirmation dimmed" = { fg = "{{colors.on_surface_variant.default.hex}}" } +"undo confirmation selected" = { bg = "{{colors.primary_container.default.hex}}", fg = "{{colors.on_primary_container.default.hex}}" } + +"preview" = { fg = "{{colors.on_surface.default.hex}}" } diff --git a/matugen/files/templates/neovim-colors.lua b/matugen/files/templates/neovim-colors.lua new file mode 100644 index 0000000..b7d8483 --- /dev/null +++ b/matugen/files/templates/neovim-colors.lua @@ -0,0 +1,63 @@ +-- Material You colorscheme for Neovim generated by matugen + +local colors = { + -- Base surfaces + bg = "{{colors.surface.default.hex}}", + bg_dim = "{{colors.surface_dim.default.hex}}", + bg_bright = "{{colors.surface_bright.default.hex}}", + + -- Container surfaces (for UI elements) + bg_container_lowest = "{{colors.surface_container_lowest.default.hex}}", + bg_container_low = "{{colors.surface_container_low.default.hex}}", + bg_container = "{{colors.surface_container.default.hex}}", + bg_container_high = "{{colors.surface_container_high.default.hex}}", + bg_container_highest = "{{colors.surface_container_highest.default.hex}}", + + -- Text colors + fg = "{{colors.on_surface.default.hex}}", + fg_variant = "{{colors.on_surface_variant.default.hex}}", + + -- Primary colors + primary = "{{colors.primary.default.hex}}", + on_primary = "{{colors.on_primary.default.hex}}", + primary_container = "{{colors.primary_container.default.hex}}", + on_primary_container = "{{colors.on_primary_container.default.hex}}", + primary_fixed = "{{colors.primary_fixed.default.hex}}", + primary_fixed_dim = "{{colors.primary_fixed_dim.default.hex}}", + + -- Secondary colors + secondary = "{{colors.secondary.default.hex}}", + on_secondary = "{{colors.on_secondary.default.hex}}", + secondary_container = "{{colors.secondary_container.default.hex}}", + on_secondary_container = "{{colors.on_secondary_container.default.hex}}", + secondary_fixed = "{{colors.secondary_fixed.default.hex}}", + secondary_fixed_dim = "{{colors.secondary_fixed_dim.default.hex}}", + + -- Tertiary colors + tertiary = "{{colors.tertiary.default.hex}}", + on_tertiary = "{{colors.on_tertiary.default.hex}}", + tertiary_container = "{{colors.tertiary_container.default.hex}}", + on_tertiary_container = "{{colors.on_tertiary_container.default.hex}}", + tertiary_fixed = "{{colors.tertiary_fixed.default.hex}}", + tertiary_fixed_dim = "{{colors.tertiary_fixed_dim.default.hex}}", + + -- Error colors + error = "{{colors.error.default.hex}}", + on_error = "{{colors.on_error.default.hex}}", + error_container = "{{colors.error_container.default.hex}}", + on_error_container = "{{colors.on_error_container.default.hex}}", + + -- Other UI elements + outline = "{{colors.outline.default.hex}}", + outline_variant = "{{colors.outline_variant.default.hex}}", + shadow = "{{colors.shadow.default.hex}}", + scrim = "{{colors.scrim.default.hex}}", + + -- Inverse colors + inverse_surface = "{{colors.inverse_surface.default.hex}}", + inverse_on_surface = "{{colors.inverse_on_surface.default.hex}}", + inverse_primary = "{{colors.inverse_primary.default.hex}}", +} + +-- Return the colors table for use in other plugins +return colors diff --git a/matugen/files/templates/neovim.lua b/matugen/files/templates/neovim.lua new file mode 100644 index 0000000..7dea61b --- /dev/null +++ b/matugen/files/templates/neovim.lua @@ -0,0 +1,124 @@ +-- Matugen-generated palette for use by other plugins +_G.matugen_palette = { + color0 = "{{dank16.color0.default.hex}}", + color1 = "{{dank16.color1.default.hex}}", + color2 = "{{dank16.color2.default.hex}}", + color3 = "{{dank16.color3.default.hex}}", + color4 = "{{dank16.color4.default.hex}}", + color5 = "{{dank16.color5.default.hex}}", + color6 = "{{dank16.color6.default.hex}}", + color7 = "{{dank16.color7.default.hex}}", + color8 = "{{dank16.color8.default.hex}}", + color9 = "{{dank16.color9.default.hex}}", + color10 = "{{dank16.color10.default.hex}}", + color11 = "{{dank16.color11.default.hex}}", + color12 = "{{dank16.color12.default.hex}}", + color13 = "{{dank16.color13.default.hex}}", + color14 = "{{dank16.color14.default.hex}}", + color15 = "{{dank16.color15.default.hex}}", +} + +return { + { + "RRethy/base16-nvim", + priority = 1000, + config = function() + require("base16-colorscheme").setup({ + base00 = "{{dank16.color0.default.hex}}", + base01 = "{{dank16.color0.default.hex}}", + base02 = "{{dank16.color8.default.hex}}", + base03 = "{{dank16.color8.default.hex}}", + base04 = "{{dank16.color7.default.hex}}", + base05 = "{{dank16.color15.default.hex}}", + base06 = "{{dank16.color15.default.hex}}", + base07 = "{{dank16.color15.default.hex}}", + base08 = "{{dank16.color9.default.hex}}", + base09 = "{{dank16.color9.default.hex}}", + base0A = "{{dank16.color12.default.hex}}", + base0B = "{{dank16.color10.default.hex}}", + base0C = "{{dank16.color14.default.hex}}", + base0D = "{{dank16.color12.default.hex}}", + base0E = "{{dank16.color13.default.hex}}", + base0F = "{{dank16.color13.default.hex}}", + }) + + vim.api.nvim_set_hl(0, "Visual", { + bg = "{{dank16.color8.default.hex}}", + fg = "{{dank16.color15.default.hex}}", + bold = true, + }) + vim.api.nvim_set_hl(0, "Statusline", { + bg = "{{dank16.color12.default.hex}}", + fg = "{{dank16.color0.default.hex}}", + }) + vim.api.nvim_set_hl(0, "LineNr", { fg = "{{dank16.color8.default.hex}}" }) + vim.api.nvim_set_hl(0, "CursorLineNr", { fg = "{{dank16.color14.default.hex}}", bold = true }) + + vim.api.nvim_set_hl(0, "Statement", { + fg = "{{dank16.color13.default.hex}}", + bold = true, + }) + vim.api.nvim_set_hl(0, "Keyword", { link = "Statement" }) + vim.api.nvim_set_hl(0, "Repeat", { link = "Statement" }) + vim.api.nvim_set_hl(0, "Conditional", { link = "Statement" }) + + vim.api.nvim_set_hl(0, "Function", { + fg = "{{dank16.color12.default.hex}}", + bold = true, + }) + vim.api.nvim_set_hl(0, "Macro", { + fg = "{{dank16.color12.default.hex}}", + italic = true, + }) + vim.api.nvim_set_hl(0, "@function.macro", { link = "Macro" }) + + vim.api.nvim_set_hl(0, "Type", { + fg = "{{dank16.color14.default.hex}}", + bold = true, + italic = true, + }) + vim.api.nvim_set_hl(0, "Structure", { link = "Type" }) + + vim.api.nvim_set_hl(0, "String", { + fg = "{{dank16.color10.default.hex}}", + italic = true, + }) + + vim.api.nvim_set_hl(0, "Operator", { fg = "{{dank16.color7.default.hex}}" }) + vim.api.nvim_set_hl(0, "Delimiter", { fg = "{{dank16.color7.default.hex}}" }) + vim.api.nvim_set_hl(0, "@punctuation.bracket", { link = "Delimiter" }) + vim.api.nvim_set_hl(0, "@punctuation.delimiter", { link = "Delimiter" }) + + vim.api.nvim_set_hl(0, "Comment", { + fg = "{{dank16.color8.default.hex}}", + italic = true, + }) + + -- Transparent background + vim.api.nvim_set_hl(0, "Normal", { bg = "NONE" }) + vim.api.nvim_set_hl(0, "NormalNC", { bg = "NONE" }) + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "NONE" }) + vim.api.nvim_set_hl(0, "SignColumn", { bg = "NONE" }) + vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "NONE" }) + + -- Emit event for other plugins to react to theme changes + vim.api.nvim_exec_autocmds("User", { pattern = "MatugenReload" }) + + local current_file_path = vim.fn.stdpath("config") .. "/lua/plugins/dankcolors.lua" + if not _G._matugen_theme_watcher then + local uv = vim.uv or vim.loop + _G._matugen_theme_watcher = uv.new_fs_event() + _G._matugen_theme_watcher:start( + current_file_path, + {}, + vim.schedule_wrap(function() + local new_spec = dofile(current_file_path) + if new_spec and new_spec[1] and new_spec[1].config then + new_spec[1].config() + end + end) + ) + end + end, + }, +} diff --git a/matugen/files/templates/niri-colors.conf b/matugen/files/templates/niri-colors.conf new file mode 100644 index 0000000..531f9a8 --- /dev/null +++ b/matugen/files/templates/niri-colors.conf @@ -0,0 +1,3 @@ +<* for name, value in colors *> +@{{name}} = {{value.default.hex}} +<* endfor *> diff --git a/matugen/files/templates/niri-colors.kdl b/matugen/files/templates/niri-colors.kdl new file mode 100644 index 0000000..150e0b6 --- /dev/null +++ b/matugen/files/templates/niri-colors.kdl @@ -0,0 +1,26 @@ +layout { + focus-ring { + // Color of the ring on the active monitor. + active-color "{{ colors.primary.default.hex }}" + + // Color of the ring on inactive monitors. + inactive-color "{{ colors.outline.default.hex }}" + } + + border { + active-color "{{ colors.secondary.default.hex }}" + inactive-color "{{ colors.outline.default.hex }}" + + // Color of the border around windows that request your attention. + urgent-color "{{ colors.error.default.hex }}" + + // active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view" + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" + } + + shadow { + // You can also change the shadow color and opacity. + color "{{ colors.shadow.default.hex }}" + } + +} diff --git a/matugen/files/templates/qtct-colors.conf b/matugen/files/templates/qtct-colors.conf new file mode 100644 index 0000000..08a8d0f --- /dev/null +++ b/matugen/files/templates/qtct-colors.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}} +disabled_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}} +inactive_colors={{colors.on_background.default.hex}}, {{colors.surface.default.hex}}, #ffffff, #cacaca, #9f9f9f, #b8b8b8, {{colors.on_background.default.hex}}, #ffffff, {{colors.on_surface.default.hex}}, {{colors.background.default.hex}}, {{colors.background.default.hex}}, {{colors.shadow.default.hex}}, {{colors.primary_container.default.hex}}, {{colors.on_primary_container.default.hex}}, {{colors.secondary.default.hex}}, {{colors.primary.default.hex}}, {{colors.surface.default.hex}}, {{colors.scrim.default.hex}}, {{colors.surface.default.hex}}, {{colors.on_surface.default.hex}}, {{colors.secondary.default.hex}} diff --git a/matugen/files/templates/rofi-colors.rasi b/matugen/files/templates/rofi-colors.rasi new file mode 100644 index 0000000..af3a9a7 --- /dev/null +++ b/matugen/files/templates/rofi-colors.rasi @@ -0,0 +1,8 @@ +* { + background: {{colors.surface.default.hex}}; + background-alt: {{colors.surface_container_high.default.hex}}; + foreground: {{colors.on_surface.default.hex}}; + selected: {{colors.primary.default.hex}}; + active: {{colors.tertiary.default.hex}}; + urgent: {{colors.error.default.hex}}; +} diff --git a/matugen/files/templates/starship-colors.toml b/matugen/files/templates/starship-colors.toml new file mode 100644 index 0000000..5acefc5 --- /dev/null +++ b/matugen/files/templates/starship-colors.toml @@ -0,0 +1,166 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +format = """ +$username\ +$directory\ +$git_branch\ +$git_status\ +$fill\ +$c\ +$elixir\ +$elm\ +$golang\ +$haskell\ +$java\ +$julia\ +$nodejs\ +$nim\ +$rust\ +$scala\ +$conda\ +$python\ +$time\n \ +[󱞪](fg:tertiary) \ +""" + +palette = "colors" + +[palettes.colors] +surface_container = '{{colors.surface_container.default.hex}}' +error = '{{colors.error.default.hex}}' +tertiary = '{{colors.tertiary.default.hex}}' +secondary = '{{colors.secondary.default.hex}}' +primary = '{{colors.primary.default.hex}}' +primary_fixed = '{{colors.primary_fixed.default.hex}}' +tertiary_fixed = '{{colors.tertiary_fixed.default.hex}}' +on_surface = '{{colors.on_surface.default.hex}}' + +[directory] +format = "[](fg:surface_container)[ $path ]($style)[](fg:surface_container) " +style = "bg:surface_container fg:primary" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +Documents = "󰈙" +Downloads = " " +Music = " " +Pictures = " " + +[fill] +style = "fg:surface_container" +symbol = " " + +[git_branch] +format = "[](fg:surface_container)[ $symbol $branch ]($style)[](fg:surface_container) " +style = "bg:surface_container fg:primary_fixed" +symbol = "" + +[git_status] +disabled = false +style = "bg:surface_container fg:error" +format = '[](fg:surface_container)([$all_status$ahead_behind]($style))[](fg:surface_container) ' +up_to_date = '[ ✓ ](bg:surface_container fg:tertiary_fixed)' +untracked = '[?\($count\)](bg:surface_container fg:tertiary)' +stashed = '[\$](bg:surface_container fg:tertiary_fixed)' +modified = '[!\($count\)](bg:surface_container fg:tertiary)' +renamed = '[»\($count\)](bg:surface_container fg:tertiary_fixed)' +deleted = '[✘\($count\)](style)' +staged = '[++\($count\)](bg:surface_container fg:tertiary)' +ahead = '[⇡\(${count}\)](bg:surface_container fg:primary_fixed)' +diverged = '⇕[\[](bg:surface_container fg:tertiary_fixed)[⇡\(${ahead_count}\)](bg:surface_container fg:primary_fixed)[⇣\(${behind_count}\)](bg:surface_container fg:secondary)[\]](bg:surface_container fg:tertiary_fixed)' +behind = '[⇣\(${count}\)](bg:surface_container fg:secondary)' + +[time] +disabled = false +format = " [](fg:surface_container)[ $time 󰴈 ]($style)[](fg:surface_container)" +style = "bg:surface_container fg:secondary" +time_format = "%I:%M%P" +use_12hr = true + +[username] +disabled = false +format = "[](fg:surface_container)[ 󰧱 $user ]($style)[](fg:surface_container) " +show_always = true +style_root = "bg:surface_container fg:tertiary_fixed" +style_user = "bg:surface_container fg:tertiary_fixed" + +# Languages + +[c] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[elixir] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[elm] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[golang] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[haskell] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[java] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[julia] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[nodejs] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = "󰎙 " + +[nim] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = "󰆥 " + +[rust] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[scala] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = " " + +[python] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$version ]($style)[](fg:surface_container)" +disabled = false +symbol = ' ' + +[conda] +style = "bg:surface_container fg:primary" +format = " [](fg:surface_container)[ $symbol$environment ]($style)[](fg:surface_container)" +disabled = false +symbol = '🅒 ' diff --git a/matugen/files/templates/waybar-colors.css b/matugen/files/templates/waybar-colors.css new file mode 100644 index 0000000..96048a9 --- /dev/null +++ b/matugen/files/templates/waybar-colors.css @@ -0,0 +1,19 @@ +/*** + * ┳┳┓┏┓┏┳┓┳┳┏┓┏┓┳┓ ┓ ┏┏┓┓┏┳┓┏┓┳┓ + * ┃┃┃┣┫ ┃ ┃┃┃┓┣ ┃┃━━┃┃┃┣┫┗┫┣┫┣┫┣┫ + * ┛ ┗┛┗ ┻ ┗┛┗┛┗┛┛┗ ┗┻┛┛┗┗┛┻┛┛┗┛┗ + * + */ + + +/*-----Surface Transparent Background------*/ +@define-color surface-alpha {{colors.surface.default.rgba | set_alpha: 0.25}}; +@define-color primary-bg {{colors.primary.default.rgba | set_alpha: 0.25}}; + +/*-----All Colors--------*/ +<* for name, value in colors *> +@define-color {{name}} {{value.default.rgba}}; +<* endfor *> + + +/* @define-color background {{colors.surface.default.rgba | set_lightness: 7.5 | set_alpha: 1.0}}; */ diff --git a/matugen/files/templates/yazi-theme.toml b/matugen/files/templates/yazi-theme.toml new file mode 100644 index 0000000..c1b61a5 --- /dev/null +++ b/matugen/files/templates/yazi-theme.toml @@ -0,0 +1,165 @@ +# : Manager [[[ + +[manager] +cwd = { fg = "{{colors.on_surface.default.hex}}" } + +# Tab +tab_active = { fg = "{{colors.on_primary.default.hex}}", bg = "{{colors.primary.default.hex}}", bold = true } +tab_inactive = { fg = "{{colors.primary_fixed.default.hex}}", bg = "{{colors.on_primary_fixed.default.hex}}" } +tab_width = 1 + +# Find +find_keyword = { fg = "{{colors.error.default.hex}}", bold = true, italic = true, underline = true } +find_position = { fg = "{{colors.error.default.hex}}", bold = true, italic = true } + +# Marker +marker_copied = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}", bg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}" } +marker_cut = { fg = "{{colors.tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } +marker_marked = { fg = "{{colors.error.default.hex}}", bg = "{{colors.error.default.hex}}" } +marker_selected = { fg = "{{colors.tertiary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" } + +# Count +count_copied = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } +count_cut = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } +count_selected = { fg = "{{colors.on_primary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" } + +# Border +border_symbol = "│" +border_style = { fg = "{{colors.surface_tint.default.hex}}" } + +# : ]]] + + +# : Status [[[ + +[status] +separator_open = "🭁" +separator_close = "🭠" +separator_style = { bg = "{{colors.on_primary.default.hex}}", fg = "#F4A261" } + +[mode] +# Mode +normal_main = { bg = "{{colors.primary.default.hex}}", fg = "{{colors.on_primary.default.hex}}", bold = true } +normal_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + +# Select mode +select_main = { bg = "{{colors.secondary.default.hex}}", fg = "{{colors.on_secondary.default.hex}}", bold = true } +select_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + +# Unset mode +unset_main = { bg = "{{colors.tertiary.default.hex}}", fg = "{{colors.on_tertiary.default.hex}}", bold = true } +unset_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + +# Progress +progress_label = { bold = true } +progress_normal = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" } +progress_error = { fg = "{{colors.error.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" } + +# Permissions +permissions_t = { fg = "{{colors.secondary.default.hex | auto_lightness: 30.0}}" } +permissions_w = { fg = "{{colors.tertiary.default.hex | auto_lightness: 30.0}}" } +permissions_x = { fg = "{{colors.error.default.hex | auto_lightness: 30.0}}" } +permissions_r = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 30.0}}" } +permissions_s = { fg = "{{colors.primary_fixed.default.hex | auto_lightness: 30.0}}" } + +# : ]]] + + +# : Select [[[ + +[select] +border = { fg = "{{colors.primary.default.hex}}" } +active = { fg = "{{colors.tertiary.default.hex}}", bold = true } +inactive = {} + +# : ]]] + + +# : Input [[[ + +[input] +border = { fg = "{{colors.primary.default.hex}}" } +value = { fg = "{{colors.on_surface.default.hex}}" } + +# : ]]] + + +# : Completion [[[ + +[completion] +border = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.on_primary.default.hex}}" } + +# : ]]] + + +# : Tasks [[[ + +[tasks] +border = { fg = "{{colors.primary.default.hex}}" } +title = {} +hovered = { fg = "{{colors.tertiary_fixed.default.hex}}", underline = true } + +# : ]]] + + +# : Which [[[ + +[which] +cols = 3 +mask = { bg = "{{colors.surface_bright.default.hex}}" } +cand = { fg = "{{colors.primary.default.hex}}" } +rest = { fg = "{{colors.on_primary.default.hex}}" } +desc = { fg = "{{colors.on_surface.default.hex}}" } +separator = " ▶ " +separator_style = { fg = "{{colors.on_surface.default.hex}}" } + +# : ]]] + + +# : Help [[[ + +[help] +on = { fg = "{{colors.on_surface.default.hex}}" } +run = { fg = "{{colors.on_surface.default.hex}}" } +footer = { fg = "{{colors.on_secondary.default.hex}}", bg = "{{colors.secondary.default.hex}}" } + +# : ]]] + + +# : Notify [[[ + +[notify] +title_info = { fg = "{{colors.tertiary.default.hex}}" } +title_warn = { fg = "{{colors.primary.default.hex}}" } +title_error = { fg = "{{colors.error.default.hex}}" } + +# : ]]] + + +# : File-specific styles [[[ + +[filetype] + +rules = [ + # Images + { mime = "image/*", fg = "#94e2d5" }, + + # Media + { mime = "{audio,video}/*", fg = "#f9e2af" }, + + # Archives + { mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f5c2e7" }, + + # Documents + { mime = "application/{pdf,doc,rtf}", fg = "#a6e3a1" }, + + # Special files + { name = "*", is = "orphan", bg = "{{colors.error_container.default.hex}}" }, + { name = "*", is = "exec", fg = "{{colors.on_error_container.default.hex}}" }, + + # Fallback + { name = "*", fg = "{{colors.on_surface.default.hex}}" }, + { name = "*/", fg = "{{colors.surface_tint.default.hex}}" }, +] + +# : ]]]