2019-08-24 14:39:46 +00:00
waybar-backlight(5)
# NAME
waybar - backlight module
# DESCRIPTION
The *backlight* module displays the current backlight level.
2019-08-24 20:46:56 +00:00
# CONFIGURATION
2019-08-24 14:39:46 +00:00
2020-04-12 16:41:44 +00:00
*interval*: ++
2019-08-24 14:39:46 +00:00
typeof: integer ++
default: 2 ++
The interval in which information gets polled.
2020-04-12 16:41:44 +00:00
*format*: ++
2019-08-24 14:39:46 +00:00
typeof: string ++
default: {percent}% ++
The format, how information should be displayed. On {} data gets inserted.
2020-04-12 16:41:44 +00:00
*max-length*: ++
2019-08-24 14:39:46 +00:00
typeof: integer ++
The maximum length in characters the module should display.
2021-02-01 16:34:51 +00:00
*min-length*: ++
2023-07-30 15:33:02 +00:00
typeof: integer ++
2023-10-21 15:45:25 +00:00
The minimum length in characters the module should accept.
2021-02-01 16:34:51 +00:00
*align*: ++
2023-07-30 15:33:02 +00:00
typeof: float ++
2024-03-06 15:10:09 +00:00
The alignment of the label within the module, where 0 is left-aligned and 1 is right-aligned. If the module is rotated, it will follow the flow of the text.
*justify*: ++
typeof: string ++
The alignment of the text within the module's label, allowing options 'left', 'right', or 'center' to define the positioning.
2019-08-24 14:39:46 +00:00
2020-04-12 16:41:44 +00:00
*rotate*: ++
2019-08-24 14:39:46 +00:00
typeof: integer ++
Positive value to rotate the text label.
2020-04-12 16:41:44 +00:00
*states*: ++
2022-11-07 07:30:01 +00:00
typeof: object ++
A number of backlight states which get activated on certain brightness levels. See *waybar-states(5)*.
2019-08-24 14:39:46 +00:00
2020-04-12 16:41:44 +00:00
*on-click*: ++
2019-08-24 14:39:46 +00:00
typeof: string ++
Command to execute when the module is clicked.
2019-12-17 10:58:30 +00:00
2019-12-29 04:19:11 +00:00
*on-click-middle*: ++
typeof: string ++
2023-10-21 15:45:25 +00:00
Command to execute when middle-clicked on the module using mouse scroll wheel.
2019-12-29 04:19:11 +00:00
2020-04-12 16:35:41 +00:00
*on-click-right*: ++
2019-08-24 14:39:46 +00:00
typeof: string ++
2023-10-21 15:45:25 +00:00
Command to execute when the module is right-clicked.
2019-08-24 14:39:46 +00:00
2020-04-12 16:35:41 +00:00
*on-update*: ++
typeof: string ++
Command to execute when the module is updated.
2020-04-12 16:41:44 +00:00
*on-scroll-up*: ++
2019-08-24 14:39:46 +00:00
typeof: string ++
2023-02-01 13:40:36 +00:00
Command to execute when performing a scroll up on the module. This replaces the default behaviour of brightness control.
2019-08-24 14:39:46 +00:00
2020-04-12 16:41:44 +00:00
*on-scroll-down*: ++
2019-08-24 14:39:46 +00:00
typeof: string
2023-02-01 13:40:36 +00:00
Command to execute when performing a scroll down on the module. This replaces the default behaviour of brightness control.
2019-08-24 14:39:46 +00:00
2020-04-12 16:41:44 +00:00
*smooth-scrolling-threshold*: ++
2019-08-24 14:39:46 +00:00
typeof: double
Threshold to be used when scrolling.
2023-02-01 13:40:36 +00:00
*reverse-scrolling*: ++
typeof: bool ++
Option to reverse the scroll direction.
*scroll-step*: ++
typeof: float ++
default: 1.0 ++
2023-10-21 15:45:25 +00:00
The speed at which to change the brightness when scrolling.
2023-02-01 13:40:36 +00:00
2019-08-24 20:46:56 +00:00
# EXAMPLE:
2019-08-24 14:39:46 +00:00
```
"backlight": {
2023-07-30 15:33:02 +00:00
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
2019-08-24 14:39:46 +00:00
}
```
2019-08-24 20:46:56 +00:00
# STYLE
2019-08-24 14:39:46 +00:00
2019-08-24 16:44:29 +00:00
- *#backlight*