about summary refs log tree commit diff
path: root/weechat/.weechat/trigger.conf
blob: 8409a21f7faa0d6e35d23b5ef3542c119f7232f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#
# 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