dotfiles/weechat/.weechat/trigger.conf

108 lines
3.3 KiB
Plaintext

#
# weechat -- trigger.conf
#
# WARNING: It is NOT recommended to edit this file by hand,
# especially if WeeChat is running.
#
# Use /set or similar command to change settings in WeeChat.
#
# For more info, see: https://weechat.org/doc/quickstart
#
[look]
enabled = on
monitor_strip_colors = off
[color]
flag_command = lightgreen
flag_conditions = 130
flag_post_action = lightblue
flag_regex = lightcyan
flag_return_code = lightmagenta
regex = white
replace = cyan
trigger = green
trigger_disabled = red
[trigger]
beep.arguments = ""
beep.command = "/print -beep"
beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
beep.enabled = on
beep.hook = print
beep.post_action = none
beep.regex = ""
beep.return_code = ok
chansaver.arguments = "buffer_closed;buffer_opened"
chansaver.command = "/mute /autojoin --run;/mute /save"
chansaver.conditions = ""
chansaver.enabled = on
chansaver.hook = signal
chansaver.post_action = none
chansaver.regex = ""
chansaver.return_code = ok
cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
cmd_pass.command = ""
cmd_pass.conditions = ""
cmd_pass.enabled = on
cmd_pass.hook = modifier
cmd_pass.post_action = none
cmd_pass.regex = "==^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
cmd_pass.return_code = ok
greentext.arguments = "weechat_print"
greentext.command = ""
greentext.conditions = "${tg_message_nocolor} =~ ^>[^:._]"
greentext.enabled = on
greentext.hook = modifier
greentext.post_action = none
greentext.regex = "/(.*)/${tg_prefix}\t${color:34}${tg_message}"
greentext.return_code = ok
msg_auth.arguments = "5000|irc_message_auth"
msg_auth.command = ""
msg_auth.conditions = ""
msg_auth.enabled = on
msg_auth.hook = modifier
msg_auth.post_action = none
msg_auth.regex = "==^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
msg_auth.return_code = ok
pong.arguments = ""
pong.command = "pong"
pong.conditions = "${type} == private && ${tg_message} == ping"
pong.enabled = on
pong.hook = print
pong.post_action = none
pong.regex = ""
pong.return_code = ok
resize_big.arguments = "signal_sigwinch"
resize_big.command = "/bar show nicklist"
resize_big.conditions = "${info:term_width} >= 100"
resize_big.enabled = on
resize_big.hook = signal
resize_big.post_action = none
resize_big.regex = ""
resize_big.return_code = ok
resize_small.arguments = "signal_sigwinch"
resize_small.command = "/bar hide nicklist"
resize_small.conditions = "${info:term_width} < 100"
resize_small.enabled = on
resize_small.hook = signal
resize_small.post_action = none
resize_small.regex = ""
resize_small.return_code = ok
server_pass.arguments = "5000|input_text_display;5000|history_add"
server_pass.command = ""
server_pass.conditions = ""
server_pass.enabled = on
server_pass.hook = modifier
server_pass.post_action = none
server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}"
server_pass.return_code = ok
url_color.arguments = "weechat_print"
url_color.command = ""
url_color.conditions = "${tg_notify}"
url_color.enabled = on
url_color.hook = modifier
url_color.post_action = none
url_color.regex = "==\S+://\S+==${color:blue}${re:0}${color:reset}=="
url_color.return_code = ok