mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 06:32:30 +02:00
docs
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/prctl.h>
|
||||
|
@ -132,7 +132,7 @@ This should look like this:
|
||||
|
||||
The *class* parameter also accepts an array of strings.
|
||||
|
||||
If nothing or an invalid option is specified, Waybar expects i3blocks style output. Values are *newline* separated.
|
||||
If nothing is specified, Waybar expects i3blocks style output. Values are *newline* separated.
|
||||
This should look like this:
|
||||
|
||||
```
|
||||
@ -149,6 +149,13 @@ $text\\n$tooltip\\n$class*
|
||||
|
||||
*{icon}*: An icon from 'format-icons' according to percentage.
|
||||
|
||||
All fields present in the returned json can be used in the *format* field.
|
||||
In the following example, *$myvalue* can be accessed via the *{myfield}*
|
||||
placeholder.
|
||||
```
|
||||
{"text": "$text", ..., "myfield": "$myvalue" }
|
||||
```
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
## Spotify:
|
||||
|
Reference in New Issue
Block a user