This commit is contained in:
2024-04-18 15:39:07 +02:00
parent d12e31373c
commit 45ac3ea0a5
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include <iostream>
#ifdef __linux__ #ifdef __linux__
#include <sys/prctl.h> #include <sys/prctl.h>

View File

@ -132,7 +132,7 @@ This should look like this:
The *class* parameter also accepts an array of strings. 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: This should look like this:
``` ```
@ -149,6 +149,13 @@ $text\\n$tooltip\\n$class*
*{icon}*: An icon from 'format-icons' according to percentage. *{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 # EXAMPLES
## Spotify: ## Spotify: