2020-05-30 12:07:38 +02:00
waybar-wlr-taskbar(5)
# NAME
2023-07-30 09:55:11 +02:00
waybar - wlr taskbar module
2020-05-30 12:07:38 +02:00
# DESCRIPTION
The *taskbar* module displays the currently open applications. This module requires
a compositor that implements the foreign-toplevel-manager interface.
# CONFIGURATION
Addressed by *wlr/taskbar*
*all-outputs*: ++
typeof: bool ++
default: false ++
If set to false applications on the waybar's current output will be shown. Otherwise all applications are shown.
*format*: ++
typeof: string ++
default: {icon} ++
The format, how information should be displayed.
*icon-theme*: ++
2020-07-07 11:22:08 +02:00
typeof: array|string ++
2020-07-05 13:07:12 +02:00
The names of the icon-themes that should be used to find an icon. The list will be traversed from left to right. If omitted, the system default will be used.
2020-05-30 12:07:38 +02:00
*icon-size*: ++
typeof: integer ++
default: 16 ++
The size of the icon.
2020-08-11 01:23:16 +02:00
*markup*: ++
typeof: bool ++
default: false ++
If set to true, pango markup will be accepted in format and tooltip-format.
2020-05-30 12:07:38 +02:00
*tooltip*: ++
typeof: bool ++
default: true ++
If set to false no tooltip will be shown.
*tooltip-format*: ++
typeof: string ++
default: {title} ++
The format, how information in the tooltip should be displayed.
*active-first*: ++
typeof: bool ++
default: false ++
If set to true, always reorder the tasks in the taskbar so that the currently active one is first. Otherwise don't reorder.
2023-01-10 18:32:10 +01:00
*sort-by-app-id*: ++
typeof: bool ++
default: false ++
If set to true, group tasks by their app_id. Cannot be used with 'active-first'.
2020-05-30 12:07:38 +02:00
*on-click*: ++
typeof: string ++
The action which should be triggered when clicking on the application button with the left mouse button.
*on-click-middle*: ++
typeof: string ++
The action which should be triggered when clicking on the application button with the middle mouse button.
*on-click-right*: ++
typeof: string ++
The action which should be triggered when clicking on the application button with the right mouse button.
*on-update*: ++
typeof: string ++
Command to execute when the module is updated.
2021-04-18 20:34:29 +02:00
*ignore-list*: ++
typeof: array ++
2021-10-20 00:23:00 +02:00
List of app_id/titles to be invisible.
2021-04-18 20:34:29 +02:00
2021-08-22 19:18:03 +02:00
*app_ids-mapping*: ++
typeof: object ++
2021-08-22 19:43:37 +02:00
Dictionary of app_id to be replaced with
2021-08-22 19:18:03 +02:00
2023-07-02 12:23:36 +02:00
*rewrite*: ++
typeof: object ++
Rules to rewrite the module format output. See *rewrite rules*.
2020-05-30 12:07:38 +02:00
# FORMAT REPLACEMENTS
*{icon}*: The icon of the application.
2023-07-12 16:31:58 +02:00
*{name}*: The application name as in desktop file if appropriate desktop fils found, otherwise same as {app_id}
2021-08-22 19:18:03 +02:00
2020-05-30 12:07:38 +02:00
*{title}*: The title of the application.
*{app_id}*: The app_id (== application name) of the application.
*{state}*: The state (minimized, maximized, active, fullscreen) of the application.
*{short_state}*: The state (minimize == m, maximized == M, active == A, fullscreen == F) represented as one character of the application.
# CLICK ACTIONS
*activate*: Bring the application into foreground.
2022-01-11 21:28:17 +01:00
2020-11-22 13:06:46 +01:00
*minimize*: Toggle application's minimized state.
2022-01-11 21:28:17 +01:00
2020-11-22 13:06:46 +01:00
*minimize-raise*: Bring the application into foreground or toggle its minimized state.
2022-01-11 21:28:17 +01:00
2020-11-22 13:06:46 +01:00
*maximize*: Toggle application's maximized state.
2022-01-11 21:28:17 +01:00
2020-11-22 13:06:46 +01:00
*fullscreen*: Toggle application's fullscreen state.
2022-01-11 21:28:17 +01:00
2020-05-30 12:07:38 +02:00
*close*: Close the application.
2023-07-02 12:23:36 +02:00
# REWRITE RULES
*rewrite* is an object where keys are regular expressions and values are
rewrite rules if the expression matches. Rules may contain references to
captures of the expression.
Regular expression and replacement follow ECMA-script rules.
If no expression matches, the format output is left unchanged.
Invalid expressions (e.g., mismatched parentheses) are skipped.
2020-05-30 12:07:38 +02:00
# EXAMPLES
```
"wlr/taskbar": {
2020-06-25 08:05:06 +02:00
"format": "{icon}",
"icon-size": 14,
"icon-theme": "Numix-Circle",
2020-05-30 12:07:38 +02:00
"tooltip-format": "{title}",
"on-click": "activate",
2021-04-18 20:34:29 +02:00
"on-click-middle": "close",
"ignore-list": [
"Alacritty"
2021-08-22 19:18:03 +02:00
],
"app_ids-mapping": {
"firefoxdeveloperedition": "firefox-developer-edition"
2023-07-02 12:23:36 +02:00
},
"rewrite": {
2023-07-02 12:50:18 +02:00
"Firefox Web Browser": "Firefox",
"Foot Server": "Terminal"
}
2020-05-30 12:07:38 +02:00
}
```
# Style
- *#taskbar*
- *#taskbar button*
- *#taskbar button.maximized*
- *#taskbar button.minimized*
- *#taskbar button.active*
- *#taskbar button.fullscreen*