Skip to content

Instantly share code, notes, and snippets.

@blackpioter
Forked from pascalpoitras/config.md
Created August 19, 2014 09:49
Show Gist options
  • Save blackpioter/68dc8a63cc40ebbc4105 to your computer and use it in GitHub Desktop.
Save blackpioter/68dc8a63cc40ebbc4105 to your computer and use it in GitHub Desktop.
# Encrypted password in sec.conf
/secure passphrase <pass>
/secure set bncpass <pass>
# Default setting for all network
/set irc.server_default.nicks r3m
/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 pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.bitlbee.password r3m/bitlbee:${sec.data.bncpass}
/set irc.server.bitlbee.command "/window 5; /query *conky; /window 1"
/set logger.level.irc.bitlbee.*conky 0
/server del freenode
/server add freenode pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.freenode.password r3m/freenode:${sec.data.bncpass}
/server add snoonet pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.snoonet.password r3m/snoonet:${sec.data.bncpass}
/server add staticbox pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.staticbox.password r3m/staticbox:${sec.data.bncpass}
/server add divinitycoding pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.divinitycoding.password r3m/divinitycoding:${sec.data.bncpass}
/server add oftc pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.oftc.password r3m/oftc:${sec.data.bncpass}
/server add netchat pascalpoitras.com/30011 -ssl -autoconnect
/set irc.server.netchat.password r3m/netchat:${sec.data.bncpass}
/connect -all
# Extensions
/set weechat.plugin.autoload "*,!lua,!tcl,!ruby,!fifo,!logger,!xfer,!relay"
# Scripts
/script install buffers.pl text_item.py notify.py translate.py highmon.pl buffer_autoset.py urlserver.py iset.pl sort_buffers.pl cmd_help.py pushover.pl
# translate.py, highmon.pl buffer_autoset.py and cmd_help.py
/set plugins.var.python.translate.default "fr_en"
/set plugins.var.perl.highmon.alignment "nchannel"
/autosetbuffer add irc.bitlbee.*conky title Conky - the light-weight system monitor
/autosetbuffer add irc.bitlbee.*conky day_change 0
/autosetbuffer add irc.divinitycoding.#main filter 0
/key bind meta-OP /cmd_help
# urlserver.py
/set plugins.var.python.urlserver.http_hostname "127.0.0.1"
/set plugins.var.python.urlserver.http_port 30012
/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,irc.bitlbee.#twitter_pascalpoitras,irc.freenode.##news,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
# pushover.pl
/set plugins.var.perl.pushover.user <user>
/set plugins.var.perl.pushover.blacklist "*status"
# Layout news – Splitting screen in 5 parts
/window splith 50
/buffer #twitter_pascalpoitras
/window splith 66
/buffer ##news
/window splith 50
/buffer highmon
/window 1
/window splitv 78
/query -server bitlbee *conky
/layout store news
# Layout normal – Split screen in 2 parts
/window merge all
/window splith 16
/buffer highmon
/layout store normal
# Layout conky – Split screen in 3 parts
/window 1
/window splitv 75
/query -server bitlbee *conky
/layout store conky
# Customize the buffers bar
/set weechat.bar.buffers.size_max 12
/set buffers.color.current_fg *white
/set buffers.color.current_bg 31
/set buffers.color.hotlist_message_fg 229
/set buffers.color.hotlist_private_fg 121
/set buffers.color.hotlist_highlight_fg 163
/set buffers.color.number 253
/set buffers.color.number_char 245
/set buffers.look.hide_merged_buffers private
# 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 black
# 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,[lag],[hotlist],completion,scroll
/set weechat.bar.rootstatus.color_fg 31
/set weechat.bar.rootstatus.color_bg black
/set weechat.bar.rootstatus.separator on
/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
/bar del 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 31
/set weechat.bar.nicklist.color_bg black
/set weechat.bar.nicklist.separator off
/set weechat.bar.nicklist.conditions "${nicklist} && ${window.number} == 1 || ${window.number} == 5"
/set weechat.bar.nicklist.size 15
/set weechat.bar.nicklist.size_max 15
# Highlight
/set weechat.look.highlight_regex .*pascalpoitras\.com.*
/autosetbuffer add irc.bitlbee.#twitter_pascalpoitras highlight_regex .*weechat.*
/autosetbuffer add irc.bitlbee.#twitter_pascalpoitras highlight_words tor,freenode,snoonet
/autosetbuffer add irc.freenode.##news highlight_regex .*weechat.*
/autosetbuffer add irc.freenode.##news highlight_words tor
/autosetbuffer add irc.freenode.#reddit-hockey highlight_regex (^GOAL: MTL.*|^Le But: MTL.*)
# Triggers
/trigger add beep_highlight print "" "${tg_highlight}" "" "/exec -bg beep -f 500 -r 2" "ok"
/trigger add beep_pv print "" "${tg_msg_pv}" "" "/exec -bg beep -f 3000 -r 3" "ok"
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:*white}$0${color:reset}=="
# 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 cq allpv -exclude=*conky /buffer close
/alias fr2en /translate
/alias en2fr /translate !
/alias beepoff /trigger disable beep;/trigger disable beep_highlight;/trigger disable beep_pv;/trigger
/alias beepon /trigger enable beep;/trigger enable beep_highlight;/trigger enable beep_pv;/trigger
# Filters
/set irc.look.smart_filter on
/filter add irc_smart * irc_smart_filter *
# 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"
# 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.color_nick_offline on
/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_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.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