dotfiles/weechat/.weechat/trigger.conf

164 lines
6.4 KiB
Plaintext

#
# weechat -- trigger.conf
#
# WARNING: It is NOT recommended to edit this file by hand,
# especially if WeeChat is running.
#
# Use commands like /set or /fset 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
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) +(-server +[^ ]+ +)?nickserv +(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+|setpass +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
cmd_pass.return_code = ok
cmd_pass_register.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
cmd_pass_register.command = ""
cmd_pass_register.conditions = ""
cmd_pass_register.enabled = on
cmd_pass_register.hook = modifier
cmd_pass_register.post_action = none
cmd_pass_register.regex = "==^(/(msg|m|quote) +(-server +[^ ]+ +)?nickserv +register +)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}"
cmd_pass_register.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
input_backtick.arguments = "500|input_text_display"
input_backtick.command = ""
input_backtick.conditions = ""
input_backtick.enabled = on
input_backtick.hook = modifier
input_backtick.post_action = none
input_backtick.regex = "/(^| )(`[^`]+)($|(`)($|[,.?!:; ]))/${re:1}${color:,darkgray}${re:2}${re:4}${color:,default}${re:5}/"
input_backtick.return_code = ok
input_command_color.arguments = "500|input_text_display"
input_command_color.command = ""
input_command_color.conditions = "${tg_string} =~ ^/($|[^/])"
input_command_color.enabled = on
input_command_color.hook = modifier
input_command_color.post_action = none
input_command_color.regex = "#/(.+)#${color:39}/${color:74}${re:1}#"
input_command_color.return_code = ok
ircd_notice_con.arguments = "weechat_print"
ircd_notice_con.command = ""
ircd_notice_con.conditions = "${tg_tags} =~ irc_notice"
ircd_notice_con.enabled = on
ircd_notice_con.hook = modifier
ircd_notice_con.post_action = none
ircd_notice_con.regex = "/(CONNECT:)(.*: )([^ !]+)(!.*)/${color:02}${re:1}${color:reset}${re:2}${color:14}${re:3}${color:reset}${re:4}/"
ircd_notice_con.return_code = ok
ircd_notice_con_main.arguments = "weechat_print"
ircd_notice_con_main.command = ""
ircd_notice_con_main.conditions = "${tg_tags} =~ irc_notice"
ircd_notice_con_main.enabled = on
ircd_notice_con_main.hook = modifier
ircd_notice_con_main.post_action = none
ircd_notice_con_main.regex = "/(CONNECT:)(.*class )(main)(.*)/${re:1}${re:2}${color:01}${re:3}${color:reset}${re:4}/"
ircd_notice_con_main.return_code = ok
ircd_notice_quit.arguments = "weechat_print"
ircd_notice_quit.command = ""
ircd_notice_quit.conditions = "${tg_tags} =~ irc_notice"
ircd_notice_quit.enabled = on
ircd_notice_quit.hook = modifier
ircd_notice_quit.post_action = none
ircd_notice_quit.regex = "/(QUIT:)(.*: )([^ !]+)(!.*)/${color:03}${re:1}${color:reset}${re:2}${color:06}${re:3}${color:reset}${re:4}/"
ircd_notice_quit.return_code = ok
ircd_notice_xline.arguments = "weechat_print"
ircd_notice_xline.command = ""
ircd_notice_xline.conditions = "${tg_tags} =~ irc_notice"
ircd_notice_xline.enabled = on
ircd_notice_xline.hook = modifier
ircd_notice_xline.post_action = none
ircd_notice_xline.regex = "/(XLINE:)(.*)/${color:01}${re:1}${color:reset}${re:2}/"
ircd_notice_xline.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
preview_nick_colors.arguments = "2000|input_text_display"
preview_nick_colors.command = ""
preview_nick_colors.conditions = "${tg_string} =~ ^/set\s+weechat\.color\.chat_nick_colors\s+"
preview_nick_colors.enabled = on
preview_nick_colors.hook = modifier
preview_nick_colors.post_action = none
preview_nick_colors.regex = "/^\S+\s+\S+(.+)$/${re:1}/tg_string_nocolor /([^",]+)/${color:${re:1}}${re:1}${color:default}/tg_string_nocolor /^(\S+\s+\S+).*$/${re:1}${tg_string_nocolor}/tg_string"
preview_nick_colors.return_code = ok
print_backtick.arguments = "weechat_print"
print_backtick.command = ""
print_backtick.conditions = ""
print_backtick.enabled = on
print_backtick.hook = modifier
print_backtick.post_action = none
print_backtick.regex = "/(^|\t|\d| )(`[^`]+`)([,.?!:; ]|$)/${re:1}${color:,darkgray}${re:2}${color:,default}${re:3}/"
print_backtick.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