-
-
Save danguita/5b7540f02856632a8954322a0dd0de2f to your computer and use it in GitHub Desktop.
Revisions
-
pascalpoitras revised this gist
Jan 28, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -404,9 +404,9 @@ Note: I changed the conditions to display the nicklist only on buffer of type ch /trigger set hsignal_znc_commands command "/command -buffer ${buffer.full_name} * /quote znc help ${_bar_item_line};/command -buffer ${buffer.full_name} * /input delete_line;/command -buffer ${buffer.full_name} * /input insert ${_bar_item_line}\x20" /trigger add znc_create_commands_list_and_regex print "" /trigger set znc_create_commands_list_and_regex conditions "${buffer.short_name} == *status && ${tg_message_nocolor} =~ ^(Command:|\|) [a-zA-Z]+\s && ${tg_message_nocolor} !~ ^\S+ Command\s" /trigger set znc_create_commands_list_and_regex regex "/^(Command:|\|) ([a-zA-Z]+).*/${re:2}/tg_message_nocolor /.*/${tg_message_nocolor}/tg_message /.*([A-Z]\S+)/${color:${info:irc_nick_color_name,${re:1}}}${re:0}${color:reset}/tg_message" /trigger set znc_create_commands_list_and_regex command "/mute set plugins.var.python.text_item.znc_commands ${plugins.var.python.text_item.znc_commands}${tg_message}\${\n};/perlexec my $number = split(/ /, q(${trigger.trigger.hsignal_znc_commands.regex}))\; weechat::command(q(), q(/mute trigger set hsignal_znc_commands regex ${trigger.trigger.hsignal_znc_commands.regex} /^) . $number . q($/${tg_message_nocolor}/_bar_item_line))" /key bindctxt mouse @item(znc_commands):button1 hsignal:znc_commands -
pascalpoitras revised this gist
Jan 22, 2017 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,7 @@ /secure set bncpass <pass> /secure set relaypass <pass> /secure set bitlbeepass <pass> /secure set pushbulletapikey <key> ## Network @@ -136,7 +137,7 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I ## Scripts /script install buffers.pl highmon.pl buffer_autoset.py urlserver.py iset.pl perlexec.pl autosort.py grep.py text_item.py pushover.pl ### highmon.pl @@ -178,6 +179,15 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I channels (begin with & and #) will appears right below the server, private message from *status will follow and finally the rest. ### pushover.pl /set plugins.var.perl.pushover.blacklist irc.server.*,irc.*.*status /set plugins.var.perl.pushover.pb_apikey ${sec.data.pushbulletapikey} /set plugins.var.perl.pushover.short_name on /set plugins.var.perl.pushover.service pushbullet ## Conky -
pascalpoitras revised this gist
Jan 18, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -463,7 +463,6 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I /set weechat.look.highlight *pascalpoitras* /autosetbuffer add irc.bitlbee.#twitter_pascalpoitras* highlight_words freenode,snoonet,*weechat* /autosetbuffer add irc.bitlbee.#LET highlight_regex .* /autosetbuffer add irc.bitlbee.#deals highlight_regex .* /autosetbuffer add irc.freenode.##reddit-hockey highlight_regex (^GOAL: MTL.*|^Le But: MTL.*) -
pascalpoitras revised this gist
Jan 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -239,7 +239,7 @@ Note: you need conky-cli package on _Debian_, same for _Arch Linux_ I found something very similar on the [alias wiki page](https://github.com/weechat/weechat/wiki/Alias-examples) of WeeChat on GitHub. I adjust it for my own use. So when you type _/weather Montreal_, a new buffer will be created and will show the output of _curl -s http://wttr.in/Montreal_. /trigger add set_title_weather_buffer print "" /trigger set set_title_weather_buffer conditions "${buffer.full_name} == exec.exec.weather && ${tg_message_nocolor} =~ ^Weather for" /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -243,7 +243,15 @@ I found something very similar on the [alias wiki page](https://github.com/weech /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" I created this trigger to change the title of the buffer from _Executed commands_ to _Weather for City: Montreal, Canada_. /trigger add weather_shortcut modifier input_text_for_buffer /trigger set weather_shortcut conditions "${buffer[tg_modifier_data].full_name} == exec.exec.weather && ${tg_string_nocolor} !~ ^/" /trigger set weather_shortcut regex "==(.*)==/weather ${re:1}" This trigger will allow you to enter only the city name (without /weather) in the weather buffer. ## Bars -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -235,12 +235,15 @@ Note: you need conky-cli package on _Debian_, same for _Arch Linux_ /alias add weather /exec -noflush -norc -noln -buffer weather curl -s http://wttr.in/$1 I found something very similar on the [alias wiki page](https://github.com/weechat/weechat/wiki/Alias-examples) of WeeChat on GitHub. I adjust it for my own use. So when you type _/weather Montreal_, a new buffer will be created and will show the output of _curl -s http://wttr.in/Montreal_. /trigger add set_title_weather_buffer print "" /trigger set set_title_weather_buffer conditions "${buffer.full_name} == exec.exec.weather && ${tg_message_nocolor} =~ ^Weather for City" /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" The trigger will change the title from _Executed commands_ to _Weather for City: Montreal, Canada_. ## Bars -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -240,7 +240,7 @@ Note: you need conky-cli package on _Debian_, same for _Arch Linux_ /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" I found something very similar on the [alias wiki page](https://github.com/weechat/weechat/wiki/Alias-examples) of WeeChat on GitHub. I adjust it for my own use. So when you type _/weather Montreal_, a new buffer will be created and will show the output of _curl -s http://wttr.in/Montreal_. The trigger will change the title from _Executed commands_ to _Weather for City: Montreal, Canada_. ## Bars -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -240,7 +240,7 @@ Note: you need conky-cli package on _Debian_, same for _Arch Linux_ /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" I found something very similar on the [alias wiki page](https://github.com/weechat/weechat/wiki/Alias-examples) of WeeChat on GitHub. I adjust it for my own use. So when you type _/weather Montreal_, a new buffer will be created and will show the output of _curl -s http://wttr.in/Montreal. The trigger will change the title from _Executed commands_ to _Weather for City: Montreal, Canada_. ## Bars -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -230,6 +230,19 @@ It will change the title of the conky window from _Executed commands_ to _Conky Note: you need conky-cli package on _Debian_, same for _Arch Linux_ ## Weather with wttr.in /alias add weather /exec -noflush -norc -noln -buffer weather curl -s http://wttr.in/$1 /trigger add set_title_weather_buffer print "" /trigger set set_title_weather_buffer conditions "${buffer.full_name} == exec.exec.weather && ${tg_message_nocolor} =~ ^Weather for City" /trigger set set_title_weather_buffer command "/command -buffer exec.exec.weather core /buffer set title ${tg_message_nocolor}" I found something very similar on the [alias wiki page](https://github.com/weechat/weechat/wiki/Alias-examples) of WeeChat on GitHub. I adjust it for my own use. So when you type _/weather \<city>_, a new buffer will be created and will show the output of _curl -s http://wttr.in/$1_. The trigger will change the title from _Executed commands_ to _Weather for City: City, Country_. ## Bars @@ -496,7 +509,6 @@ I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still w /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc ## Filters -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -496,7 +496,7 @@ I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still w /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc /alias add weather /exec -noflush -norc -noln -buffer weather curl -s http://wttr.in/$1 ## Filters -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -496,7 +496,7 @@ I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still w /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc /alias add weather /exec -noflush -norc -noln -n curl -s http://wttr.in/$1 ## Filters -
pascalpoitras revised this gist
Jan 17, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -496,6 +496,7 @@ I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still w /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc /alias add weather /exec -noflush curl -s http://wttr.in/$1 ## Filters -
pascalpoitras revised this gist
Nov 27, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -439,6 +439,7 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I /set weechat.look.highlight *pascalpoitras* /autosetbuffer add irc.bitlbee.#twitter_pascalpoitras* highlight_words freenode,snoonet,*weechat* /autosetbuffer add irc.bitlbee.#twitter_pascalpoitras* highlight_tags nick_grawity,nick_sebhelleu,nick_ahfaeroey,nick_tomaw,nick_inaneierase,nick_nenolod,nick_aarontoponce,nick_errietta,nick_fixato /autosetbuffer add irc.bitlbee.#LET highlight_regex .* /autosetbuffer add irc.bitlbee.#deals highlight_regex .* /autosetbuffer add irc.freenode.##reddit-hockey highlight_regex (^GOAL: MTL.*|^Le But: MTL.*) -
pascalpoitras revised this gist
Nov 27, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -438,9 +438,9 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I /set weechat.look.highlight *pascalpoitras* /autosetbuffer add irc.bitlbee.#twitter_pascalpoitras* highlight_words freenode,snoonet,*weechat* /autosetbuffer add irc.bitlbee.#LET highlight_regex .* /autosetbuffer add irc.bitlbee.#deals highlight_regex .* /autosetbuffer add irc.freenode.##reddit-hockey highlight_regex (^GOAL: MTL.*|^Le But: MTL.*) -
pascalpoitras revised this gist
Nov 27, 2016 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -437,9 +437,8 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I ## Highlight /set weechat.look.highlight *pascalpoitras* /autosetbuffer add irc.BitlBee.#twitter_pascalpoitras* highlight_words freenode,snoonet,*weechat* /autosetbuffer add irc.BitlBee.#LET highlight_regex .* /autosetbuffer add irc.BitlBee.#deals highlight_regex .* /autosetbuffer add irc.freenode.##reddit-hockey highlight_regex (^GOAL: MTL.*|^Le But: MTL.*) -
pascalpoitras revised this gist
Nov 22, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -477,7 +477,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the discussion. ## Others Keyboard shortcuts -
pascalpoitras revised this gist
Nov 22, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -477,7 +477,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the conversation. ## Others Keyboard shortcuts -
pascalpoitras revised this gist
Nov 22, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -477,7 +477,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it with it name/number. I use _/znc detach_ on all channels that I have joined only for logging the conversation. ## Others Keyboard shortcuts -
pascalpoitras revised this gist
Nov 22, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -477,6 +477,9 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop I use both _/buffer hide_ and _/znc detach_ but for differents purposes. I use the latter to detach channels I have joined only for logging purpose. This is better than _/buffer hide_ since it free up memory. I use _/buffer hide_ to hide all channels and privates buffers from a server at once, for example, to take a screenshot and hide privates/secrets channels or to free up space in the buffers bar but still being able to access these channels via their names/numbers. Also, it is useful when you unhide all channels and privates from a server since it does not reattach channels detached via znc. ## Others Keyboard shortcuts -
pascalpoitras revised this gist
Nov 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  ## Enable mouse support -
pascalpoitras revised this gist
Nov 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -203,7 +203,7 @@ It will change the title of the conky window from _Executed commands_ to _Conky /trigger add conky_tag_color modifier weechat_print /trigger set conky_tag_color conditions ${tg_buffer} == exec.exec.conky /trigger set conky_tag_color regex /\t(Uptime|CPU|RAM|Swap|Networking|Up|Down):(.*)/${color:_31}${re:1}\t${color:reset}${re:2}/ /No swap/0/ ### my .conkyrc -
pascalpoitras revised this gist
Nov 21, 2016 . 1 changed file with 18 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -502,6 +502,24 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /filter add irc_smart *,!irc.undernet.* irc_smart_filter * ## Custom join color /set weechat.color.chat_prefix_join 121 /set weechat.color.chat_host 31 /set irc.color.message_join 121 The _weechat.color.chat_host_ option will also set this color for part and quit. To have a different color, for example, a host in red for parts and quits and green for joins, see [this](https://github.com/weechat/weechat/wiki/Triggers#colors-for-joinpartquitnickmodedisconnect). ## Custom part and quit /set weechat.color.chat_prefix_quit 131 /set irc.color.message_quit 131 ## The remaining IRC options @@ -544,9 +562,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /set weechat.color.chat_highlight lightred /set weechat.color.chat_highlight_bg default /set weechat.color.chat_nick_colors 25,31,37,43,49,61,67,73,79,85,97,103,109,115,121,133,139,145,151,157,163,169,175,181,187,193,199,205,211,217,223,229 /set weechat.color.chat_prefix_more 229 /set weechat.color.chat_prefix_suffix 31 /set weechat.color.chat_read_marker 31 /set weechat.color.chat_time 239 -
pascalpoitras revised this gist
Nov 20, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -468,6 +468,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /key bindctxt cursor @item(buffer_nicklist):O /window ${_window_number};/deop ${nick} /key bindctxt cursor @chat(*):s /window ${_window_number};/slap ${_chat_line_nick};/cursor stop /key bindctxt cursor @item(buffer_nicklist):s /window ${_window_number};/slap ${nick};/cursor stop /key bindctxt cursor @item(buffers):d /command -buffer ${full_name} irc /quote znc detach ${short_name};/cursor stop /key bindctxt cursor @item(buffers):h /command -buffer ${full_name} irc /allchan -current buffer hide;/command -buffer ${full_name} irc /allpv -current buffer hide;/cursor stop /key bindctxt cursor @item(buffers):H /command -buffer ${full_name} irc /allchan -current buffer unhide;/command -buffer ${full_name} irc /allpv -current buffer unhide;/cursor stop /key bindctxt cursor @chat(*):g /window ${_window_number};/customgrep ${_chat_line_nick};/cursor stop @@ -511,6 +512,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /set irc.look.buffer_switch_autojoin off /set irc.look.buffer_switch_join off /set irc.look.color_nicks_in_nicklist on /set irc.look.part_closes_buffer on ## The remaining Weechat options -
pascalpoitras revised this gist
Nov 18, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -453,7 +453,7 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I /trigger add send_to_active_grep_log_nick command send_to_active_grep_log_nick /trigger set send_to_active_grep_log_nick conditions ${tg_argv_eol1} && ${type} =~ ^(private|channel)$ /trigger set send_to_active_grep_log_nick regex /\\\$/\\\\/tg_argv1 /trigger set send_to_active_grep_log_nick command /input delete_line;/input insert /exec -sh -norc -pipe "/input insert grep -hiP '^\[\d{2}:\d{2}:\d{2}\] (<|\* )\Q${tg_argv1}\E>? ${tg_argv_eol2} " grep -hiP '^\[\d{2}:\d{2}:\d{2}\] (<|\* )\Q${tg_argv1}\E>? ${tg_argv_eol2}' ~/.znc/users/r3m/moddata/log/`date "+%Y"`/'${server}'/'${buffer.short_name}'.* | shuf -n 1 The trigger _upgrade_scripts_ will update the local script cache and then upgrade all the installed scripts at midnight. The _send_to_active_grep_log_nick_ will search in log for something a user said before. Then it will send the output to IRC. I use the _grep.py_ when searching in log for myself but I created this trigger to return a random line from a user. -
pascalpoitras revised this gist
Nov 17, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -453,7 +453,7 @@ _##news_ and _#newsbin_ are two channels dedicated to live news. On _##news_, I /trigger add send_to_active_grep_log_nick command send_to_active_grep_log_nick /trigger set send_to_active_grep_log_nick conditions ${tg_argv_eol1} && ${type} =~ ^(private|channel)$ /trigger set send_to_active_grep_log_nick regex /\\\$/\\\\/tg_argv1 /trigger set send_to_active_grep_log_nick command /input delete_line;/input insert /exec -sh -norc -pipe "/input insert grep -hiP '^\[\d{2}:\d{2}:\d{2}\] (<|\* )\Q${tg_argv1}\E>? ${tg_argv_eol2} " grep -hiP '^\[\d{2}:\d{2}:\d{2}\] (<|\* )\Q${tg_argv1}\E>? ${tg_argv_eol2}' ~/.znc/users/r3m/moddata/log/`date "+%Y"`/'${server}'/'${buffer.short_name}'.* | shuf -n 3 | tr '\n' ' ' The trigger _upgrade_scripts_ will update the local script cache and then upgrade all the installed scripts at midnight. The _send_to_active_grep_log_nick_ will search in log for something a user said before. Then it will send the output to IRC. I use the _grep.py_ when searching in log for myself but I created this trigger to return a random line from a user. -
pascalpoitras revised this gist
Nov 17, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -508,6 +508,8 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /set irc.server_default.away_check_max_nicks 25 /set irc.color.nick_prefixes "q:lightred;a:lightcyan;o:121;h:lightmagenta;v:229;*:lightblue" /set irc.network.ban_mask_default "*!*@$host" /set irc.look.buffer_switch_autojoin off /set irc.look.buffer_switch_join off /set irc.look.color_nicks_in_nicklist on -
pascalpoitras revised this gist
Nov 17, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -491,6 +491,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /alias add cq allpv /buffer close /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc ## Filters -
pascalpoitras revised this gist
Nov 17, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,6 +70,9 @@ the last line request some IRCv3 capabilities. Capabilities supported by WeeChat /connect -all Once you're connected to _bitlbee_, _WeeChat_ will send a _PRIVMSG_ to the _&bitlbee_ channel to ask _BitlBee_ to use the /oper command to identify. This is more secure because you're password will not be echoed on the screen and will not appears in logs files. This command will send a message to the _&bitlbee_ channel successfully even if you aren't yet on _&bitlbee_. _&bitlbee_ channel is not +n. ## Extensions -
pascalpoitras revised this gist
Nov 16, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -60,6 +60,12 @@ the last line request some IRCv3 capabilities. Capabilities supported by WeeChat /server add gitter znc.pascalpoitras.com/30011 -ssl /set irc.server.gitter.password r3m/gitter:${sec.data.bncpass} /server add magnet znc.pascalpoitras.com/30011 -ssl /set irc.server.magnet.password r3m/magnet:${sec.data.bncpass} /server add handmade znc.pascalpoitras.com/30011 -ssl /set irc.server.handmade.password r3m/handmade:${sec.data.bncpass} /connect -all -
pascalpoitras revised this gist
Nov 16, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,7 @@ /secure passphrase <pass> /secure set bncpass <pass> /secure set relaypass <pass> /secure set bitlbeepass <pass> ## Network @@ -34,6 +35,7 @@ the last line request some IRCv3 capabilities. Capabilities supported by WeeChat /server add bitlbee znc.pascalpoitras.com/30011 -ssl -autoconnect /set irc.server.bitlbee.password r3m/bitlbee:${sec.data.bncpass} /set irc.server.bitlbee.command /msg &bitlbee identify;/oper anything ${sec.data.bitlbeepass} /server add freenode znc.pascalpoitras.com/30011 -ssl -autoconnect /set irc.server.freenode.password r3m/freenode:${sec.data.bncpass}
NewerOlder