Files
Waybar/man/waybar-ext-workspaces.5.scd
T

96 lines
2.2 KiB
Scdoc
Raw Normal View History

2020-08-08 00:09:35 +03:00
waybar-wlr-workspaces(5)
# NAME
waybar - wlr workspaces module
# DESCRIPTION
2020-08-11 00:28:56 +03:00
The *workspaces* module displays the currently used workspaces in wayland compositor.
2020-08-08 00:09:35 +03:00
# CONFIGURATION
Addressed by *ext/workspaces*
2020-08-08 00:09:35 +03:00
*format*: ++
typeof: string ++
default: {name} ++
The format, how information should be displayed.
*format-icons*: ++
typeof: array ++
Based on the workspace name and state, the corresponding icon gets selected. See *icons*.
*sort-by-name*: ++
typeof: bool ++
default: true ++
2025-04-11 08:00:35 +02:00
Should workspaces be sorted by name. Workspace names will be sorted numerically when all names are numbers.
2020-08-08 00:09:35 +03:00
*sort-by-coordinates*: ++
typeof: bool ++
2025-04-11 08:00:35 +02:00
default: false ++
Should workspaces be sorted by coordinates. ++
Note that if both *sort-by-name* and *sort-by-coordinates* are true sort-by name will be first. If both are false - sort by id will be performed.
2020-08-08 00:09:35 +03:00
2025-04-11 08:00:35 +02:00
*sort-by-id*: ++
2022-10-18 12:25:22 +02:00
typeof: bool ++
default: false ++
2025-04-11 08:00:35 +02:00
Should workspaces be sorted by ID. Workspace ID will be sorted numerically when all ID are numbers. Takes precedence over any other sort-by option.
2022-10-18 12:25:22 +02:00
2021-11-23 03:10:44 +03:00
*all-outputs*: ++
typeof: bool ++
default: false ++
If set to false workspaces group will be shown only in assigned output. Otherwise, all workspace groups are shown.
2021-11-23 03:10:44 +03:00
*active-only*: ++
typeof: bool ++
default: false ++
If set to true only active or urgent workspaces will be shown.
2020-08-08 00:09:35 +03:00
# FORMAT REPLACEMENTS
2025-04-11 08:00:35 +02:00
*{name}*: Name of workspace assigned by compositor.
*{id}*: ID of workspace assigned by compositor.
2020-08-08 00:09:35 +03:00
*{icon}*: Icon, as defined in *format-icons*.
# CLICK ACTIONS
*activate*: Switch to workspace.
2022-01-11 17:28:17 -03:00
*close*: Close the workspace.
2020-08-08 00:09:35 +03:00
# ICONS
In addition to workspace name matching, the following *format-icons* can be set.
2020-08-08 00:09:35 +03:00
2020-08-11 00:28:56 +03:00
- *default*: Will be shown, when no string match is found.
2023-07-01 02:13:36 +03:00
- *active*: Will be shown, when workspace is active
2020-08-08 00:09:35 +03:00
# EXAMPLES
```
"ext/workspaces": {
2020-08-08 00:09:35 +03:00
"format": "{name}: {icon}",
2025-04-11 08:00:35 +02:00
"on-click": "activate",
2020-08-08 00:09:35 +03:00
"format-icons": {
2025-04-11 08:00:35 +02:00
"Workspace 1": "",
"Workspace 2": "",
"Workspace 3": "",
"Workspace 4": "",
2023-07-01 02:13:36 +03:00
"active": "",
2020-08-08 00:09:35 +03:00
"default": ""
2022-10-18 12:25:22 +02:00
},
2025-04-11 08:00:35 +02:00
"sort-by-id": true
2020-08-08 00:09:35 +03:00
}
```
# Style
2020-08-11 00:28:56 +03:00
- *#workspaces*
2020-08-08 00:09:35 +03:00
- *#workspaces button*
- *#workspaces button.active*
- *#workspaces button.urgent*
- *#workspaces button.hidden*