Weechat configuration: Difference between revisions

From wikinotes
Line 58: Line 58:
= Keybindings =
= Keybindings =
<blockquote>
<blockquote>
Try a keybinding (unbound on exit)
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
/key bind ctrl-T /fzf  # bind '/fzf' to 'ctrl-t'
/key bind ctrl-T /fzf  # bind '/fzf' to 'ctrl-t'
</syntaxhighlight>
Configure a keybinding
<syntaxhighlight lang="bash">
# ~/.weechat/weechat.conf
[key]
ctrl-T = "/fzf"
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Keybindings -->
</blockquote><!-- Keybindings -->

Revision as of 15:35, 9 July 2022

Locations

~/.weechat/irc.conf server configuration

Dynamic Configuration

weechat can be configured dynamically (from the IRC prompt), or within configuration files.

/script install iset.pl            # install interactive-set
/iset                              # enable interactive-set

/set filename.section.directive    # interactively set configuration option
/save                              # save all changes to configuration

SSL setup

# configure SSL
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"      # archlinux
/set weechat.network.gnutls_ca_file "/usr/local/share/certs/ca-root-nss.crt"  # freebsd

/set irc.look.temporary_servers on    # enable temporary servers
/connect chat.freenode.net/6697 -ssl  # test ssl (without remembering connection)

Aliases

/alias add i /msg nickserv identify
/alias add j /join
/alias add b /buffer

Filters

Filters can be used to hide information from buffers. Alt + = toggles filters on/off.

/filter add joinquit * irc_join,irc_part,irc_quit *

Keybindings

Try a keybinding (unbound on exit)

/key bind ctrl-T /fzf  # bind '/fzf' to 'ctrl-t'

Configure a keybinding

# ~/.weechat/weechat.conf

[key]
ctrl-T = "/fzf"

Secure Passphrases

/secure passphrase your-unlock-passprhase
/secure set yourvariable value
/msg NickServ identify "${sec.data.yourvariable}"

Proxy IRC through TOR

See https://weechat.org/files/doc/devel/weechat_user.en.html#irc_tor_freenode