Skip to content

Instantly share code, notes, and snippets.

@ecool
Forked from pascalpoitras/config.md
Last active November 3, 2022 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ecool/30c19d8df23a783bcfb1 to your computer and use it in GitHub Desktop.
Save ecool/30c19d8df23a783bcfb1 to your computer and use it in GitHub Desktop.
My always up-to-date WeeChat configuration (weechat-dev)
# Encrypted password in sec.conf
/secure passphrase <pass>
/secure set zncpass <pass>
# Default setting for all network
/set irc.server_default.nicks ecool
/set irc.server_default.ssl_verify off
/set irc.server_default.capabilities "znc.in/server-time-iso"
# specific setting for all network
/server add BitlBee znc.ecool.ws/40504 -ssl -autoconnect
/set irc.server.BitlBee.password ecool/bitlbee:${sec.data.zncpass}
/set irc.server.BitlBee.command "/exec -norc -buffer conky true"
/server del freenode
/server add freenode znc.ecool.ws/40504 -ssl -autoconnect
/set irc.server.freenode.password ecool/freenode:${sec.data.zncpass}
/server add OFTC znc.ecool.ws/40504 -ssl -autoconnect
/set irc.server.OFTC.password ecool/oftc:${sec.data.zncpass}
/server add SystemNet znc.ecool.ws/40504 -ssl -autoconnect
/set irc.server.SystemNet.password ecool/systemnet:${sec.data.zncpass}
/connect -all
# Extensions
/set weechat.plugin.autoload "*,!lua,!tcl,!ruby,!fifo,!logger,!relay"
## aspell
/set aspell.check.default_dict en
/set aspell.check.suggestions 3
/set aspell.color.suggestions *green
/aspell enable
## xfer
/set xfer.network.port_range 10051-10070
# Scripts
/script install buffers.pl text_item.py notify.py highmon.pl buffer_autoset.py urlserver.py iset.pl cmd_help.py pushover.pl perlexec.pl autosort.py colorize_nicks.py
## highmon.pl buffer_autoset.py cmd_help.py
/set plugins.var.perl.highmon.alignment "nchannel"
/autosetbuffer add irc.BitlBee.&facebook title Facebook
/key bind meta-OP /cmd_help
/sort_arza
## urlserver.py
/set plugins.var.python.urlserver.http_hostname "127.0.0.1"
/set plugins.var.python.urlserver.http_port 30013
/set plugins.var.python.urlserver.http_allowed_ips "^127.0.0.1$"
/set plugins.var.python.urlserver.http_url_prefix xox
/set plugins.var.python.urlserver.msg_ignore_buffers core.weechat,python.grep,perl.highmon
## iset.pl
/set iset.color.bg_selected 31
/set iset.color.option_selected *white
/set iset.color.type_selected *229
/set iset.color.value_selected *121
/set iset.color.type 229
/set iset.color.value 121
# Layouts
## create default layout
# Customize the buffers bar
## unmerge servers buffers from core and indent
/set irc.look.server_buffer independent
/set buffers.look.indenting on
## main color scheme
/set buffers.color.current_fg 31
/set buffers.color.current_bg white
/set buffers.color.hotlist_message_fg 229
/set buffers.color.hotlist_private_fg 121
/set buffers.color.hotlist_highlight_fg 163
## whitelist color scheme
/set buffers.look.whitelist_buffers "server.OFTC,server.freenode,server.SystemNet,server.BitlBee"
/set buffers.color.whitelist_default_bg 31
/set buffers.color.whitelist_highlight_bg 31
/set buffers.color.whitelist_low_bg 31
/set buffers.color.whitelist_message_bg 31
/set buffers.color.whitelist_private_bg 31
/set buffers.color.whitelist_highlight_fg 198
/set buffers.color.whitelist_message_fg 221
/set buffers.color.whitelist_private_fg 83
## and the rest of the options
/set weechat.bar.buffers.size_max 18
/set buffers.color.number 239
/set buffers.color.number_char 245
# Create and customize activetitle bar
/bar add activetitle window top 1 0 buffer_title
/set weechat.bar.activetitle.priority 500
/set weechat.bar.activetitle.conditions "${active}"
/set weechat.bar.activetitle.color_fg *white
/set weechat.bar.activetitle.color_bg 31
# Customize the title bar
/set weechat.bar.title.conditions "${inactive}"
/set weechat.bar.title.color_fg *31
/set weechat.bar.title.color_bg 233
# Create and customize the rootstatus bar
/bar add rootstatus root bottom 1 0 [time],[buffer_count],[buffer_plugin],buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+buffer_filter,[bitlbee_typing_notice],[lag],[aspell_suggest],[hotlist],completion,scroll
/set weechat.bar.rootstatus.color_fg 31
/set weechat.bar.rootstatus.color_bg black
/set weechat.bar.rootstatus.separator on
/set weechat.bar.rootstatus.priority 500
/bar del status
/bar set rootstatus name status
# Create and customize the rootinput bar
/bar add rootinput root bottom 1 0 [buffer_name]+[input_prompt]+(away),[input_search],[input_paste],input_text
/set weechat.bar.rootinput.color_bg black
/set weechat.bar.rootinput.priority 1000
/bar del input
/bar set rootinput name input
# Create and customize the roottranslation bar
/bar add roottranslation root top 1 0 [translation_desc],[translation_text]
/set weechat.bar.roottranslation.color_fg 31
/set weechat.bar.roottranslation.color_bg black
/set weechat.bar.roottranslation.separator on
/set plugins.var.python.text_item.translation_desc all ${121}Translation
/set plugins.var.python.text_item.translation_text all Press 't' in cursor mode to translate the text under the cursor and make it appears here. Then, the text will dissapears 10 seconds later. To enter cursor mode : middle-mouse button
/key bindctxt cursor @chat:t /input delete_line;/input insert /translate en_fr\x20;hsignal:chat_quote_message;/input return;/wait 1 /input move_beginning_of_line;/wait 1 /input insert /set plugins.var.python.text_item.translation_text all\x20;/wait 1 /input return;/cursor stop;/wait 10 /set plugins.var.python.text_item.translation_text all Press 't' in cursor mode to translate the text under the cursor and make it appears here. Then, the text will dissapears 10 seconds later. To enter cursor mode : middle-mouse button
# Customize the nicklist bar
/set weechat.bar.nicklist.color_fg 229
/set weechat.bar.nicklist.separator off
/set weechat.bar.nicklist.conditions "${nicklist} && ${window.number} == 1 || ${window.number} == 5"
/set weechat.bar.nicklist.size 12
/set weechat.bar.nicklist.size_max 12
# Create and customize the nicklistfb bar
/bar add nicklistfb window left 12 0 buffer_nicklist
/set weechat.bar.nicklistfb.color_fg 229
/set weechat.bar.nicklistfb.separator off
/set weechat.bar.nicklistfb.size 12
/set weechat.bar.nicklistfb.size_max 12
/set weechat.bar.nicklistfb.conditions "${channel} == &facebook"
# Highlight
## TODO: add highlight as I figure out what I want to highlight
# Others Keyboard shortcuts
/key bind meta-meta2-A /bar scroll nicklist * -100%
/key bind meta-meta2-B /bar scroll nicklist * +100%
/key bind meta2-A /input history_global_previous
/key bind meta2-B /input history_global_next
# Alias
/alias add cq allpv /buffer close
/alias add beepoff /trigger disable beep;/trigger disable beep_highlight;/trigger disable beep_pv;/trigger disable beep_notify_join;/trigger disable beep_notify_quit;/trigger
/alias add beepon /trigger enable beep;/trigger enable beep_highlight;/trigger enable beep_pv;/trigger enable beep_notify_join;/trigger enable beep_notify_quit;/trigger
/alias add slap /me slaps $1 around a bit with a large trout
/alias add silence_pm /trigger toggle quakenet_undernet_pm;/allserv quote silence -*
# Filters
/set irc.look.smart_filter on
/filter add irc_smart * irc_smart_filter *
/filter add fb irc.BitlBee.&facebook irc_join,* *
# The remaining IRC options
/set irc.server_default.away_check 5
/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"
# Buffers notify level
/allserv set weechat.notify.irc.$server.*status none
# The remaining Weechat options
/set weechat.look.bar_more_down "▼"
/set weechat.look.bar_more_left "◀"
/set weechat.look.bar_more_right "▶"
/set weechat.look.bar_more_up "▲"
/set weechat.look.buffer_time_format "${253}%H${245}%M"
/set weechat.look.color_inactive_message off
/set weechat.look.color_inactive_prefix off
/set weechat.look.color_inactive_prefix_buffer off
/set weechat.look.color_inactive_window off
/set weechat.look.day_change_message_1date ▬▬▶ %a, %d %b %Y ◀▬▬
/set weechat.look.day_change_message_2dates ▬▬▶ %%a, %%d %%b %%Y (%a, %d %b %Y) ◀▬▬
/set weechat.look.hotlist_count_max 0
/set weechat.look.hotlist_names_count 10
/set weechat.look.item_buffer_filter "•"
/set weechat.look.prefix_align_min 10
/set weechat.look.prefix_align_max 10
/set weechat.look.prefix_join "▬▬▶"
/set weechat.look.prefix_quit "◀▬▬"
/set weechat.look.prefix_action "⚡"
/set weechat.look.prefix_error "⚠ "
/set weechat.look.prefix_network "ℹ "
/set weechat.look.prefix_same_nick "⤷"
/set weechat.look.prefix_suffix "│"
/set weechat.look.read_marker_string "─"
/set weechat.look.separator_horizontal "="
/set weechat.color.bar_more 229
/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_join 121
/set weechat.color.chat_prefix_more 229
/set weechat.color.chat_prefix_quit 163
/set weechat.color.chat_prefix_suffix 31
/set weechat.color.chat_read_marker 31
/set weechat.color.chat_time 239
/set weechat.color.chat_delimiters 31
/set weechat.color.separator 31
/set weechat.color.status_data_highlight 163
/set weechat.color.status_data_msg 229
/set weechat.color.status_data_private 121
/set weechat.color.status_more 229
/set weechat.color.status_name 121
/set weechat.color.status_name_ssl 121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment