mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
a3904ff039
Fix the following whitespace formatting issues: - Indentation in scdoc source files should be done with tabs. - Lines where there (clearly) should be a line break, need to have '++' at the end, but several were missing them. - The scdoc manual (clearly) states that lines should be hard wrapped at 80 columns, but when line(s) are indented, that causes rendering issues. So lines where a line break was not clearly intended or clearly not intended, have been put onto 1 line to circumvent the rendering issue. Link: https://lists.sr.ht/~sircmpwn/public-inbox/%3C8251560.T7Z3S40VBb%40bagend%3E
90 lines
1.8 KiB
Markdown
90 lines
1.8 KiB
Markdown
waybar-image(5)
|
|
|
|
# NAME
|
|
|
|
waybar - image module
|
|
|
|
# DESCRIPTION
|
|
|
|
The *image* module displays an image from a path.
|
|
|
|
# CONFIGURATION
|
|
|
|
*path*: ++
|
|
typeof: string ++
|
|
The path to the image.
|
|
|
|
*exec*: ++
|
|
typeof: string ++
|
|
The path to the script, which should return image path file. ++
|
|
It will only execute if the path is not set
|
|
|
|
*size*: ++
|
|
typeof: integer ++
|
|
The width/height to render the image.
|
|
|
|
*interval*: ++
|
|
typeof: integer ++
|
|
The interval (in seconds) to re-render the image. ++
|
|
This is useful if the contents of *path* changes. ++
|
|
If no *interval* is defined, the image will only be rendered once.
|
|
|
|
*signal*: ++
|
|
typeof: integer ++
|
|
The signal number used to update the module. ++
|
|
This can be used instead of *interval* if the file changes irregularly. ++
|
|
The number is valid between 1 and N, where *SIGRTMIN+N* = *SIGRTMAX*.
|
|
|
|
*on-click*: ++
|
|
typeof: string ++
|
|
Command to execute when clicked on the module.
|
|
|
|
*on-click-middle*: ++
|
|
typeof: string ++
|
|
Command to execute when middle-clicked on the module using mousewheel.
|
|
|
|
*on-update*: ++
|
|
typeof: string ++
|
|
Command to execute when the module is updated.
|
|
|
|
*on-scroll-up*: ++
|
|
typeof: string ++
|
|
Command to execute when scrolling up on the module.
|
|
|
|
*on-scroll-down*: ++
|
|
typeof: string ++
|
|
Command to execute when scrolling down on the module.
|
|
|
|
*smooth-scrolling-threshold*: ++
|
|
typeof: double ++
|
|
Threshold to be used when scrolling.
|
|
|
|
*tooltip*: ++
|
|
typeof: bool ++
|
|
default: true ++
|
|
Option to enable tooltip on hover.
|
|
|
|
# SCRIPT OUTPUT
|
|
|
|
Similar to the *custom* module, output values of the script is *newline* separated.
|
|
The following is the output format:
|
|
|
|
```
|
|
$path\\n$tooltip
|
|
```
|
|
|
|
# EXAMPLES
|
|
|
|
```
|
|
"image#album-art": {
|
|
"path": "/tmp/mpd_art",
|
|
"size": 32,
|
|
"interval": 5,
|
|
"on-click": "mpc toggle"
|
|
}
|
|
```
|
|
|
|
# STYLE
|
|
|
|
- *#image*
|