Skip to content

Instantly share code, notes, and snippets.

Last active October 27, 2023 18:22
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
[weechat] The Theme™
# requires: 256 color terminal
/script install
/script install
/script install
/set weechat.look.buffer_notify_default message
/set weechat.look.color_nick_offline on
/set weechat.look.prefix_action " •"
/set weechat.look.prefix_join "▬▶"
/set weechat.look.prefix_network "▬▬"
/set weechat.look.prefix_quit "◀▬"
/set weechat.look.prefix_same_nick "⤷"
/set weechat.look.prefix_suffix "│"
/set weechat.look.read_marker_string "─"
/set weechat.look.separator_horizontal ""
/set weechat.look.scroll_page_percent 50
/set weechat.color.chat_channel darkgray
/set weechat.color.chat_delimiters darkgray
/set weechat.color.chat_highlight_bg 60
/set weechat.color.chat_host darkgray
/set weechat.color.chat_nick darkgray
/set weechat.color.chat_nick_colors "cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue,31,35,38,40,49,63,70,80,92,99,112,126,130,138,142,148,160,162,167,169,174,176,178,184,186,210,212,215,247"
/set weechat.color.chat_nick_offline darkgray
/set weechat.color.chat_prefix_action darkgray
/set weechat.color.chat_prefix_join 24
/set weechat.color.chat_prefix_network darkgray
/set weechat.color.chat_prefix_quit 23
/set weechat.color.chat_prefix_suffix 16
/set weechat.color.chat_read_marker 16
/set weechat.color.chat_tags darkgray
/set weechat.color.chat_time darkgray
/set weechat.color.chat_time_delimiters 234
/set weechat.color.nicklist_away 244
/set weechat.color.separator 16
/set off
/set "buffers"
/set "isetbar_help"
/set 234
/set 234
/set irc.look.color_nicks_in_names on
/set irc.look.color_nicks_in_server_messages off
/set irc.color.message_join darkgray
/set irc.color.message_quit darkgray
/set irc.color.reason_quit darkgray
/set iset.color.bg_selected 234
/set on
/set colorize_nicks.look.colorize_input on
/set colorize_nicks.look.ignore_tags "irc_join,irc_part,irc_quit"
/set script.color.text_bg_selected 234
/set buffers.color.current_bg 60
/set buffers.color.current_fg white
/set buffers.color.number 31
/set buffers.color.number_char 31
/set buffers.look.hide_merged_buffers all
/set buffers.look.hotlist_counter on
/set buffers.look.mark_inactive on
/set buffers.look.number_char " "
/trigger add url modifier weechat_print "${tg_tags} !~ irc_quit" ";[a-z]+://\S+;${color:228}${color:underline}${re:0}${color:reset};" ""
/trigger add nick modifier weechat_print "${tg_tags} =~ irc_nick" ";is now known as;${color:darkgray}is now known as;" ""
/trigger add disconnect modifier "weechat_print" "${tg_tags} !~ . && ${tg_buffer} !~ irc.server." ";irc: disconnected from server;${color:red}irc: disconnected from server;" ""
/key bind meta-, /window scroll_up
/key bind meta-- /window scroll_down
Copy link

fats commented Mar 24, 2016

Screenshot from an older version.. To be updated!

Copy link

How do you install then use this?

Copy link

fats commented Jan 10, 2021

@marmalodak Sorry, was meaning to reply to you much sooner. You can't quite "install" it, and unfortunately weechat doesn't support actual theme files, so a series of commands is as close to it as it gets. Unfortunately there's no easy way to input everything at once (like evaluating a macro file), but you could try copy/pasting the commands into the terminal weechat runs in. Just have a backup of your ~/.weechat folder, just in case. You could probably copy/paste the entire thing too (except the top line that starts with #).

Copy link

If I understand you correctly, you're suggesting something like this?

for line in $(cat weechat_theme.txt); do weechat -r "$line"; done

Copy link

fats commented Jan 20, 2021

I've never used that parameter, but checking the documentation, it looks like it wouldn't work, as it would only run one command and won't drop you back to shell (nor save the settings). I think you'd need to split the input into semicolon separated commands for -r, but this will create very long command line, and could create some complications with escaping too. It's probably better to create weechat plugin which can eval all the lines in a text file, or something along these lines. Or you can simply paste the entire thing into weechat (but not on a channel, in case something goes wrong! :) )

Copy link

ghost commented Apr 15, 2021

is it me or iset isn't really there anymore?

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