Skip to content

Commit

Permalink
merge pull request #2 from uncenter/pr-c330cebe
Browse files Browse the repository at this point in the history
refactor: move themes to `themes/` and improve usage docs
  • Loading branch information
fathulfahmy authored Jul 1, 2024
2 parents f8102a1 + 273e632 commit e9de37f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 19 deletions.
27 changes: 10 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,37 @@
</p>

<p align="center">
<img src="/assets/collections.webp"/>
<img src="assets/collections.webp"/>
</p>

## Previews

<details>
<summary>🌻 Latte</summary>
<img src="/assets/lattebar.webp"/>
<img src="assets/lattebar.webp"/>
</details>
<details>
<summary>πŸͺ΄ FrappΓ©</summary>
<img src="/assets/frappebar.webp"/>
<img src="assets/frappebar.webp"/>
</details>
<details>
<summary>🌺 Macchiato</summary>
<img src="/assets/macchiatobar.webp"/>
<img src="assets/macchiatobar.webp"/>
</details>
<details>
<summary>🌿 Mocha</summary>
<img src="/assets/mochabar.webp"/>
<img src="assets/mochabar.webp"/>
</details>

## Usage

Here is an example
1. Copy the contents of your flavor of choice from [`themes/`](./themes/) to your [GlazeWM configuration file](https://github.com/glzr-io/glazewm#configuration), located at `C:\Users\<YOUR_USER>\.glaze-wm\config.yaml`.
2. Then use the Catppuccin color variables in your configuration with `*<color>` (e.g. `*crust` or `*mauve`).

1. copy `mocha.yaml` to `C:\Users\yourusername\.glaze-wm\config.yaml`
2. replace hex color code in `bar:` with variables
> [!TIP]
> See [our example configuration](example.yaml) for more details on how this works!
```
background: *crust
foreground: *mauve
```
3. save `config.yaml` and reload GlazeWM `shift+alt+r`

[See example config.yaml](example-config.yaml)

<!-- this section is optional -->
3. Save your configuration file and reload GlazeWM with <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>r</kbd>.

## πŸ™‹ FAQ

Expand Down
Empty file removed assets/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion templates/example.tera
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ whiskers:
filename: "example.yaml"
---
# mocha.yaml
{{ read_file(path="../mocha.yaml") }}
{{ read_file(path="../themes/mocha.yaml") }}
bar:
height: "30px"
position: "top"
Expand Down
2 changes: 1 addition & 1 deletion templates/glazewm.tera
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ whiskers:
version: "2.3.0"
matrix:
- flavor
filename: "{{ flavor.identifier }}.yaml"
filename: "themes/{{ flavor.identifier }}.yaml"
---

{%- for _, color in flavor.colors %}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e9de37f

Please sign in to comment.