Skip to content

Instantly share code, notes, and snippets.


Pascal Poitras Dubois pascalpoitras

  • Longueuil, Quebec, Canada
View GitHub Profile
pascalpoitras /
Last active April 30, 2023 03:48
different version of newsmon made for someone on IRC
/trigger addreplace news_transform line "*;irc.libera.#*;nick_newsly+irc_privmsg,nick_CarlSagan+irc_privmsg,nick_Chunt+irc_privmsg,nick_Brainstorm+irc_privmsg,nick_Bridgestorm+irc_notice"
/trigger set news_transform conditions "${channel} =~ ^(##alerts|##news|##science|#securitynews)$"
/trigger set news_transform regex "/.*/${info:news_parse,site_and_sections,${tg_message_nocolor}}/my_site_and_sections /\|/ - /my_site_and_sections /.*/${if:${channel}==##alerts?${if:,${tags},=-,irc_notice,?[${color:red}NOTICE${color:reset}] ${split:2, ,keep_eol,${tg_message_nocolor}}:[${define:my_site,${info:alert_parse,site,${tg_message_nocolor}}}${color:${info:nick_color_name,${my_site}}}${my_site}${color:reset}] ${info:alert_parse,title,${tg_message_nocolor}} ${info:alert_parse,url,${tg_message_nocolor}}}:[${color:${info:nick_color_name,${my_site_and_sections}}}${my_site_and_sections}${color:reset}] ${info:news_parse,title,${tg_message_nocolor}} ${info:news_parse,url,${tg_message_nocolor}}}/message /.*//prefix"

WeeChat Screenshot

/bar set status name statusbak
/bar default status
/bar set status name spell
/bar set spell items spell_suggest

/bar set statusbak name status

pascalpoitras / gist:d40f3c453912d592b34db0719fe2d646
Last active December 20, 2022 16:30
centered buflist at the bottom
View gist:d40f3c453912d592b34db0719fe2d646

WeeChat Screenshot

need version 3.6 for spacer item

/bar set buflist position bottom
/bar set buflist size 1
/bar set buflist filling_top_bottom horizontal
/bar set buflist items spacer,buflist,spacer
View gist:368cc09ec1a39452c7930e432f76ec4c

I created this after the user ikwyl6 wanted a quick way to filter the buflist

/set buflist.look.display_conditions "${eval_cond:${plugins.var.buflist_conditions}} && ${buffer.hidden}==0"

/alias add search_buflist /set plugins.var.buflist_conditions $1-;/buflist refresh

/alias add search_bufname /search_buflist ${channel}=~$1



WeeChat Screenshot

Here I will show you how to create a bar very similar to the nicklist bar, but instead of showing nickname, it will show znc commands, whenever you click on a command, weechat will send a "help the_command_you_just_clicked" and insert the name of the command in the input bar, then enter any arguments required to the command and press enter.

You will need the following script


Let's create the bar

pascalpoitras /
Last active May 23, 2023 04:25
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 4.0.0-dev

When you paste multiples commands, be sure to paste them on a buffer with input_multiline set to 0, the weechat core buffer is an example of such a buffer

Enable mouse

/mouse enable