Unverified Commit 807ecab1 authored by Samyak Jain's avatar Samyak Jain Committed by GitHub

Update waybar docs to deal with edge case (#635)

In waybar formatting, adding "{}" only works when adding it before the icon. It breaks when adding it after the icon. This change fixes the snippet in our README, so that if someone copies our snippet, it will be easier to make changes.
parent 43e33b8d
...@@ -439,11 +439,11 @@ Waybar css file ...@@ -439,11 +439,11 @@ Waybar css file
} }
``` ```
Alternatively, the number of notifications can be shown by adding `{}` anywhere in the `format` field in the Waybar config Alternatively, the number of notifications can be shown by adding `{0}` anywhere in the `format` field in the Waybar config
```jsonc ```jsonc
"custom/notification": { "custom/notification": {
"format": "{} {icon}", "format": "{0} {icon}",
// ... // ...
}, },
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment