bar_items: Make the busy sign configurable.
This commit is contained in:
parent
d93184f2ed
commit
c1037620fa
2 changed files with 15 additions and 1 deletions
|
@ -113,7 +113,9 @@ def matrix_bar_item_buffer_modes(data, item, window, buffer, extra_info):
|
||||||
modes.append("❌")
|
modes.append("❌")
|
||||||
|
|
||||||
if room_buffer.backlog_pending or server.busy:
|
if room_buffer.backlog_pending or server.busy:
|
||||||
modes.append("⏳")
|
modes.append(
|
||||||
|
G.CONFIG.look.busy_sign
|
||||||
|
)
|
||||||
|
|
||||||
return "".join(modes)
|
return "".join(modes)
|
||||||
|
|
||||||
|
|
|
@ -452,6 +452,18 @@ class MatrixConfig(WeechatConfig):
|
||||||
"rooms (note: content is evaluated, see /help eval)"),
|
"rooms (note: content is evaluated, see /help eval)"),
|
||||||
eval_cast,
|
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(
|
Option(
|
||||||
"pygments_style",
|
"pygments_style",
|
||||||
"string",
|
"string",
|
||||||
|
|
Loading…
Add table
Reference in a new issue