mirror of https://tildegit.org/ben/dotfiles
140 lines
4.9 KiB
Plaintext
140 lines
4.9 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
|
|
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
|
|
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
|