Instantly share code, notes, and snippets.

@jprjr /weechat.md forked from zer4tul/weechat.md
Last active Sep 1, 2017

Embed
What would you like to do?

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl

Color Settings

Note: If you are NOT using Base16, blow right through it. Aliases based on names from https://github.com/chriskempson/base16/wiki/Theming

/color alias 16 orange
/color alias 17 brown
/color alias 18 linehighlightdark
/color alias 19 selectiondark
/color alias 20 commentslight
/color alias 21 linehighlightlight

  • Make the title bar and the status bar using dark "line highlight" colors
  • Change to color 21 (linehighlightlight) for a light theme
/set weechat.bar.status.color_bg linehighlightdark
/set weechat.bar.title.color_bg linehighlightdark

Alternative: I like to setup buffers.pl to show a list of buffers on the bottom and get rid of the "status" bar completely.

/bar hide status
/bar show buffers
/bar set buffers position bottom
/set buffers.color.current_bg linehighlightdark

Also fun: get rid of the title bar and just add the buffer name to the input bar

/bar hide title
/bar set input items buffer_name+[input_prompt]+(away),[input_search],[input_paste],input_text

Setup highlight monitor

/bar add highmon root top auto
/set weechat.bar.highmon.bar_lines 4

IRC Settings

/set weechat.look.buffer_notify_default message
/set irc.look.smart_filter on
/filter add irc_smart * irc_smart_filter *
/filter add irc_join_names * irc_366,irc_332,irc_333,irc_329,irc_324 *
  • Replace the nickname for a message with a little arrow if the previous message in your buffer was from the same user.
/set weechat.look.prefix_same_nick "⤷"

Notes for OS X

  1. Make Option (⌥) key action like Meta, or some default key binding in weechat will not work properly.
  • Terminal

"Preferences (⌘,)" -> "Settings" -> "Use option as meta key"

  • iTerm2

"Preferences (⌘,)" -> "Profiles" -> Select the profile you are using (such as "Default) -> Keys -> on "Left option (⌥) key acts as:" or "Right option (⌥) key acts as:" select "Meta" or "+Esc"

  1. Weechat offically suggest install it using Homebrew.
@rockymontana

This comment has been minimized.

Copy link

rockymontana commented Jul 6, 2015

I tried to set the base 16 color aliases, but got:
weechat =!= | Invalid color number "045" (must be between 0 and 8)

:-/

@sheldonwjones

This comment has been minimized.

Copy link

sheldonwjones commented Jul 9, 2015

rockymontana make sure you're using a 256 color console. You can check this by running weechat -c. It should display something like.

Terminal infos: $TERM=xterm-256color COLORS: 256, COLOR_PAIRS: 32767, can_change_color: yes

If it only does 8 colors you may need to change your TERM to xterm-256color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment