mirror of https://tildegit.org/ben/dotfiles
148 lines
5.2 KiB
Plaintext
148 lines
5.2 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]
|
|
autojoin.arguments = "*,irc_in_join"
|
|
autojoin.command = "/autojoinem add ${server} ${channel};/mute save"
|
|
autojoin.conditions = ""
|
|
autojoin.enabled = on
|
|
autojoin.hook = signal
|
|
autojoin.post_action = none
|
|
autojoin.regex = ""
|
|
autojoin.return_code = ok
|
|
autojoinem_on_quit.arguments = "quit"
|
|
autojoinem_on_quit.command = "/allchan /autojoinem add"
|
|
autojoinem_on_quit.conditions = ""
|
|
autojoinem_on_quit.enabled = on
|
|
autojoinem_on_quit.hook = signal
|
|
autojoinem_on_quit.post_action = none
|
|
autojoinem_on_quit.regex = ""
|
|
autojoinem_on_quit.return_code = ok
|
|
autopart.arguments = "*,irc_in_part"
|
|
autopart.command = "/autojoinem del ${server} ${channel};/mute save"
|
|
autopart.conditions = ""
|
|
autopart.enabled = on
|
|
autopart.hook = signal
|
|
autopart.post_action = none
|
|
autopart.regex = ""
|
|
autopart.return_code = ok
|
|
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) +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
|
|
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
|