Skip to content

Instantly share code, notes, and snippets.

@cgmcintyr
Last active 4 years ago
Embed
What would you like to do?
Guide to my weechat setup

Enable mouse support

/mouse enable

Encrypted password in sec.conf

/secure passphrase <pass>
/secure set freenodepass <pass>
/secure set oftcpass <pass>

Network

Default settings on server creation

/set irc.server_default.nicks cgmcintyre,cgmcintyre1,cgmcintyre2,cgmcintyre3,cgmcintyre4
/set irc.server_default.capabilities "account-notify,away-notify,cap-notify,multi-prefix,server-time,znc.in/self-message"

The last line request some IRCv3 capabilities. Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify, extended-join, multi-prefix, server-time, userhost-in-names. See IRCv3 Specifications to learn more about IRCv3 capabilities.

Network-specific Settings

/server add freenode chat.freenode.net/6697 -ssl -autoconnect
/set irc.server.freenode.sasl_username cgmcintyre
/set irc.server.freenode.sasl_password ${sec.data.freenodepass}

Plugins

Autosort.py

Automatically keep buffers grouped by server and sorted by name.

/script install autosort.py
/autosort replacements add ## #
/autosort rules add irc.server.*.&* = 0
/autosort rules add irc.server.*.#* = 1
/autosort rules add irc.server.*.\*status = 2

Channels (begin with & and #) will appears right below the server, private message from *status will follow and finally the rest.

Vimode.py

Adds vim-like keybindings and INSERT/NORMAL modes.

/script install vimode.py
/set weechat.bar.input.items [mode_indicator]+[input_prompt]+(away),[input_search], [input_paste],input_text,[vi_buffer]
/bar set vi_line_numbers conditions ${active} && ${weechat.bar.vi_cmd.hidden} == 0

Last line ensures the vi_line_numbers bar will be only visible in the active window whenever we enter an Ex command (whenever the vi_cmd bar is visible).

notify-send.py

Sends highlight and message notifications through notify-send.

See github page for installtion.

Bars

Bar Buffers

/set irc.look.server_buffer independent
/set weechat.bar.buflist.size_max 18

General Look

Prefixes

/set weechat.look.prefix_suffix "↪"
/set weechat.look.prefix_error "ERR"
/set weechat.look.prefix_network "--"
/set weechat.look.prefix_action "⚡"
/set weechat.look.prefix_suffix = "│"
/set weechat.look.prefix_align_more "…"
/set weechat.look.prefix_buffer_align_more "…"

More

/set weechat.look.bar_more_down "▼"
/set weechat.look.bar_more_left "◀"
/set weechat.look.bar_more_right "▶"
/set weechat.look.bar_more_up "▲"

Filters

/set irc.look.smart_filter on
/filter add irc_smart * irc_smart_filter *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment