mirror of
https://github.com/Alexays/Waybar.git
synced 2026-02-04 12:15:34 +00:00
fix(sway/workspaces): window-rewrite: do not check for window-format
Remove check for unused window-format option. Fixes #3797.
This commit is contained in:
@ -179,7 +179,6 @@ n.b.: the list of outputs can be obtained from command line using *swaymsg -t ge
|
||||
"format": "<span size='larger'>{name}</span> {windows}",
|
||||
"format-window-separator": " | ",
|
||||
"window-rewrite-default": "{name}",
|
||||
"window-format": "<span color='#e0e0e0'>{name}</span>",
|
||||
"window-rewrite": {
|
||||
"class<firefox>": "",
|
||||
"class<kitty>": "k",
|
||||
|
||||
@ -331,7 +331,7 @@ auto Workspaces::update() -> void {
|
||||
}
|
||||
std::string output = (*it)["name"].asString();
|
||||
std::string windows = "";
|
||||
if (config_["window-format"].isString()) {
|
||||
if (config_["window-rewrite"].isObject()) {
|
||||
updateWindows((*it), windows);
|
||||
}
|
||||
if (config_["format"].isString()) {
|
||||
|
||||
Reference in New Issue
Block a user