Skip to content

Commit

Permalink
docs: add "usage with komorebi" section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Feb 29, 2024
1 parent a4e7ce6 commit 5ac217d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
packages/desktop/installer.wxs
README.md
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,52 @@ window_rules:
match_process_name: '/Zebar/'
```
## ➡️ Usage with Komorebi
Modify the `float_rules` in the Komorebi config options (at `%userprofile%/komorebi.json`).

```json
{
"float_rules": [
{
"kind": "Exe",
"id": "Zebar.exe",
"matching_strategy": "Equals"
}
]
}
```

And in the Zebar config (if using the default generated one), replace the GlazeWM element with the following:

```yaml
template/workspaces:
styles: |
display: flex;
align-items: center;
.workspace {
background: rgba(255, 255, 255, 0.05);
margin-right: 4px;
width: 30px;
height: 30px;
color: #ffffffe6;
border: none;
border-radius: 2px;
&.active {
background: rgba(255, 255, 255, 0.1);
}
}
providers: ['glazewm']
template: |
@for (workspace of komorebi.currentWorkspaces) {
<button class="workspace {{ workspace === komorebi.focusedWorkspace && 'active' }}">
{{ workspace.name }}
</button>
}
```

## 🌟 Intro to Zebar

There's 3 big differences that set Zebar apart from other similar projects:
Expand Down

0 comments on commit 5ac217d

Please sign in to comment.