bar_items: Make the busy sign configurable.

This commit is contained in:
Damir Jelić 2018-11-14 20:07:39 +01:00
parent d93184f2ed
commit c1037620fa
2 changed files with 15 additions and 1 deletions

View file

@ -113,7 +113,9 @@ def matrix_bar_item_buffer_modes(data, item, window, buffer, extra_info):
modes.append("")
if room_buffer.backlog_pending or server.busy:
modes.append("")
modes.append(
G.CONFIG.look.busy_sign
)
return "".join(modes)

View file

@ -452,6 +452,18 @@ class MatrixConfig(WeechatConfig):
"rooms (note: content is evaluated, see /help eval)"),
eval_cast,
),
Option(
"busy_sign",
"string",
"",
0,
0,
"",
("A sign that is used to signal that the client is busy e.g. "
"when the room backlog is fetching"
" (note: content is evaluated, see /help eval)"),
eval_cast,
),
Option(
"pygments_style",
"string",