Skip to content

Commit

Permalink
Merge pull request InioX#9 from Heus-Sueh/new-themes
Browse files Browse the repository at this point in the history
Update hyprland-colors.conf and starship.toml
  • Loading branch information
InioX authored Oct 26, 2024
2 parents 0068655 + 52615be commit 7cf1113
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 21 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#### List of all templates
- [Hyprland](#hyprland)
- [Hyprlock](#hyprlock)
- [Waybar](#waybar)
- [Kitty](#kitty)
- [GTK (3.0, 4.0)](#gtk)
Expand All @@ -44,15 +45,43 @@ input_path = 'path/to/template'
output_path = '~/.config/hypr/colors.conf'
```

Then, add this line to the top of your `~/.config/hypr/config.conf` file
Then, add this line to the top of your `~/.config/hypr/hyprland.conf` file
```
source = ~/.config/hypr/colors.conf
source = colors.conf
```

The theme will now be applied after you reload hyprland.
> [!NOTE]
> To reload hyprland you can either quit the current session and enter it again, or you can run `hyprctl reload` which instantly reloads your config.
### Hyprlock
Hyprlock uses the same color format as Hyprland so we can use `hyprland-colors.css`, if you didn't make the template above, Copy the [hyprland-colors.conf]() template and add it to the matugen config.
```toml
[config]
# ...

[templates.hyprland]
input_path = 'path/to/template'
output_path = '~/.config/hypr/colors.conf'
```

Then, add this line to the top of your `~/.config/hypr/hyprlock.conf` file
```
source = colors.conf
```

Configuration Example (`hyprlock.conf`):
```
source = colors.conf
background {
path = $image # This variable contains the image you selected with matugen
}
label {
color = $primary
}
```

### Waybar
Copy the [colors.css](https://github.com/InioX/matugen-themes/blob/main/templates/colors.css) template and add it to the matugen config.
```toml
Expand Down
12 changes: 4 additions & 8 deletions templates/hyprland-colors.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
general {
col.active_border = {{colors.primary_fixed.default.rgba}}
col.inactive_border = {{colors.secondary_fixed_dim.default.rgba}}
}

misc {
background_color = {{colors.surface.default.rgba}}
}
<* for name, value in colors *>
$image = {{image}}
${{name}} = rgba({{value.default.hex_stripped}}ff)
<* endfor *>
50 changes: 39 additions & 11 deletions templates/starship-colors.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
format="""$directory$git_branch
$character"""
add_newline = true
format = '''
$directory$git_branch$rust$python
$character'''

palette = 'colors'

[palettes.colors]
mustard = '#af8700' # example
color1 = '{{colors.primary_fixed_dim.default.hex}}'
color2 = '{{colors.on_primary.default.hex}}'
color3 = '{{colors.on_surface_variant.default.hex}}'
color4 = '{{colors.surface_container.default.hex}}'
color5 = '{{colors.on_primary.default.hex}}'
color6 = '{{colors.surface_dim.default.hex}}'
color7 = '{{colors.surface.default.hex}}'
color8 = '{{colors.primary.default.hex}}'
color9 = '{{colors.tertiary.default.hex}}'

# Prompt symbols
# [character]
# success_symbol = "({{colors.tertiary.default.hex}} bold)"
# error_symbol = "(@{error})"
# vicmd_symbol = "(#f9e2af)"
[character]
success_symbol = "[๐Ÿžˆ](color9 bold)"
error_symbol = "[๐Ÿžˆ](@{error})"
vicmd_symbol = "[๐Ÿžˆ](#f9e2af)"

[directory]
format = """
[๎‚ถ]($style)[$path](fg:{{colors.on_primary.default.hex}} bg:{{colors.primary.default.hex}})[๎‚ด ](fg:{{colors.primary.default.hex}})"""
format = "[๎‚ถ](fg:color1 bg:color4)[๓ฐ‰‹](bg:color1 fg:color2)[๎‚ด ](fg:color1 bg:color4)[$path ](fg:color3 bg:color4)[๎‚ด ](fg:color4)"

style = "fg:{{colors.primary.default.hex}}"
[directory.substitutions]
"Documents" = "๓ฐˆ™ "
"Downloads" = "๏€™ "
"Music" = "๏€ "
"Pictures" = "๏€พ "

[git_branch]
style = "fg:{{colors.primary.default.hex}}"
format = "[๎‚ถ](fg:color8 bg:color4)[๏‡“ ](bg:color8 fg:color5)[๎‚ด](fg:color8 bg:color4)[(bg:color8 fg:color5) $branch](fg:color3 bg:color4)[๎‚ด](fg:color4) "

[time]
format = "[๎‚ถ](fg:color8 bg:color4)[๏บ ](bg:color8 fg:color5)[๎‚ด](fg:color8 bg:color4)[(bg:color8 fg:color5) $time](fg:color3 bg:color4)[๎‚ด](fg:color4) "
disabled = false
time_format = "%R" # Hour:Minute Format

[python]
format = "[๎‚ถ](fg:color8 bg:color4)[${symbol}${version}](bg:color8 fg:color5)[๎‚ด](fg:color8 bg:color4)[(bg:color8 fg:color5)( ${virtualenv})](fg:color3 bg:color4)[๎‚ด](fg:color4) "
symbol = '๐Ÿ'
# pyenv_version_name = true
pyenv_prefix = 'venv'

0 comments on commit 7cf1113

Please sign in to comment.