Last active
December 17, 2019 03:21
-
-
Save Strykar/7fd0ab3a82ef1b58768df3c411f46f65 to your computer and use it in GitHub Desktop.
weechat config part 1 based off https://gist.github.com/pascalpoitras/8406501
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/mouse enable | |
/set irc.server_default.capabilities account-notify,away-notify,cap-notify,multi-prefix,server-time,znc.in/server-time-iso,znc.in/self-message | |
/set weechat.plugin.autoload "*,!guile,!javascript,!lua,!php,!tcl,!perl,!fifo,!xfer,!charset,!ruby" | |
/set spell.check.default_dict en,fr | |
/set spell.check.suggestions 3 | |
/set spell.color.suggestion *green | |
/spell enable | |
/trigger add setdict signal irc_channel_opened;irc_pv_opened;irc_server_opened | |
/trigger set setdict conditions "(${buffer[${tg_signal_data}].full_name} =* irc.undernet.* || (${buffer[${tg_signal_data}].full_name} =~ fr$ && ${buffer[${tg_signal_data}].local_variables.type} == channel)) && ${info:spell_dict,${buffer[${tg_signal_data}].full_name}} !~ ^fr" | |
/trigger set setdict command "/command -buffer ${buffer[${tg_signal_data}].full_name} * /mute /spell setdict fr,en" | |
/set logger.level.irc 4 | |
/set logger.mask.irc %Y/$server/$channel.%m-%d.log | |
/script install autojoinem.py buffer_autoset.py autosort.py grep.py text_item.py | |
/autosort helpers set french_channels_pvs_first ${if:${type}=~(channel|private)&&${info:spell_dict,${buffer.full_name}}!~^fr} | |
/autosort rules insert 6 ${french_channels_pvs_first} | |
/trigger add autosort_refresh_on_setdict config "spell.dict.*;spell.check.default_dict" "" "" "/mute autosort" | |
/buffer_autoset add core.weechat notify 3 | |
/buffer_autoset add irc.server.* notify 3 | |
/buffer_autoset add relay.relay.list short_name relay | |
/buffer_autoset add core.weechat localvar_set_my_control 1 | |
/buffer_autoset add core.highmon localvar_set_my_control 1 | |
/buffer_autoset add core.chanmon localvar_set_my_control 1 | |
/buffer_autoset add irc.freenode.##news localvar_set_my_control 1 | |
/buffer_autoset add irc.freenode.##news short_name news | |
/buffer_autoset add exec.exec.conky short_name conky-cli | |
/set weechat.notify.exec.exec.conky none | |
/set weechat.startup.command_after_plugins "/exec -norc -noln -buffer conky conky-cli" | |
/exec -norc -noln -buffer conky conky-cli | |
/trigger add conky modifier weechat_print | |
/trigger set conky conditions "${tg_buffer} == exec.exec.conky && ${tg_tags} =~ ,exec_stdout, && ${tg_message_nocolor} =~ ^[^:]+: *[^ ]" | |
/trigger set conky regex "/^ \t([^:]+):(.*)/ ${color:_31}${re:1}\t${color:reset}${re:2}/ /.*/${tg_message_nocolor}/my_field /.*/${tg_message_nocolor}/my_value /^([^:]+):.*/${re:1}/my_field /.*/${my_field}/my_field_with_underscore / /_/my_field_with_underscore /^[^:]+: *(.*)/${re:1}/my_value / +$//my_value /.*Load Average\t.*//" | |
/trigger set conky command "${if:${my_field}==Load Average?/buffer set title Conky - ${my_value}:/mute set plugins.var.python.text_item.conky_${my_field_with_underscore} all \${if:${buffer.num_displayed}==?${my_field} ${color:white}${my_value}${\x7D}}" | |
/buffer_autoset add exec.exec.weather short_name weather | |
/set spell.dict.exec.exec.weather en | |
/trigger add weather_cmd_weather command "weather;show the weather, using wttr.in, in a new buffer;<location>;;pune|mumbai|goa|toronto|vancouver|ladakh" | |
/trigger set weather_cmd_weather conditions "${tg_argv_eol1}" | |
/trigger set weather_cmd_weather regex "/ /+/tg_argv_eol1 /.*/${info:spell_dict,exec.exec.weather}/my_lang /^([^,]+).*/${re:1}/my_lang /^$/en/my_lang" | |
/trigger set weather_cmd_weather command "/exec -noflush -norc -noln -buffer weather curl -s http://wttr.in/${tg_argv_eol1}?2F&lang=${my_lang}" | |
/trigger add weather_set_weather_buffer_title print "exec.exec.weather;exec_stdout;;1" | |
/trigger set weather_set_weather_buffer_title conditions "${tg_message} =~ ^\w && ${tg_message} !~ wttr\.in|@igor_chubin" | |
/trigger set weather_set_weather_buffer_title regex "/^[^:]+:(.*)/${re:1}/tg_message_nocolor" | |
/trigger set weather_set_weather_buffer_title command "/buffer set title ${tg_message};/buffer set localvar_set_weather ${tg_message_nocolor}" | |
/trigger add weather_get_weather_by_shortcut modifier input_text_for_buffer | |
/trigger set weather_get_weather_by_shortcut conditions "${info:ruby_version} && ${modifier:escape,,'\test} == \'\\test && ${buffer[${tg_modifier_data}].full_name} == exec.exec.weather && ${info:ruby_eval,puts Weechat.string_is_command_char('${modifier:escape,,${tg_string_nocolor}}').to_s} == 0" | |
/trigger set weather_get_weather_by_shortcut regex "==.*==/weather ${re:0}" | |
/set irc.look.server_buffer independent | |
/bar set buflist separator off | |
/bar set buflist priority 2 | |
/bar set buflist size 15 | |
/bar set buflist items buflist | |
/bar add buflist_hotlist root left 1 1 buflist2 | |
/bar set buflist_hotlist priority 1 | |
/bar set buflist_hotlist size 3 | |
/bar add control_buffers window top 1 1 buflist3 | |
/bar set control_buffers conditions ${window.number} == 2 | |
/set buflist.format.hotlist_highlight "${color:163}" | |
/set buflist.format.hotlist_message "${color:229}" | |
/set buflist.format.hotlist_private "${color:121}" | |
/set buflist.format.buffer "${if:${bar_item.name}==buflist?${eval:${format_name}}:${if:${bar_item.name}==buflist2?${if:${type}==server?${color:31,31}} ${eval:${format_hotlist}}:${if:${buffer.local_variables.my_control}?${if:${window[gui_windows].next_window.buffer.full_name}==${buffer.full_name}?${color:31}${\ue0be}${color:*black,31} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:31}${\ue0bc}:${color:24}${\ue0be}${color:darkgray,24} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:24}${\ue0bc}}}}}" | |
/set buflist.format.buffer_current "${if:${bar_item.name}==buflist?${eval:${format_name}}:${if:${bar_item.name}==buflist2?${if:${type}==server?${color:31,31}} :${if:${buffer.local_variables.my_control}?${if:${window[gui_windows].next_window.buffer.full_name}==${buffer.full_name}?${color:31}${\ue0be}${color:*black,31} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:31}${\ue0bc}:${color:24}${\ue0be}${color:darkgray,24} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:24}${\ue0bc}}}}}" | |
/set buflist.format.number "${if:${current_buffer}?${if:${type}==server?${color:*white,31}:${color:*white}}${hide:>,${number}} :${if:${type}==server?${color:black,31}:${color:239}}${number}${if:${number_displayed}?.: }}" | |
/set buflist.format.indent "${if:${type}==channel&&${buffer.name}=~fr$||${info:spell_dict,${buffer.full_name}}=~^fr?${color:blue}f : }" | |
/set buflist.format.name "${cutscr:${calc:${weechat.bar.buflist.size} - 1},${if:${type}==server?${color:white}:${color:${weechat.color.chat_prefix_more}}}${weechat.look.prefix_align_more},${eval:${format_number}${indent}}${if:${type}==server?${color:white,31}${if:${info:irc_server_isupport_value,${name},NETWORK}?${info:irc_server_isupport_value,${name},NETWORK}:${name}}:${eval:${color_hotlist}}${name}}${color:31}${if:${buffer.local_variables.filter}${buffer.local_variables.conky_Load_Average}${buffer.local_variables.weather}${if:${buffer.full_name}==relay.relay.list?${info:relay_client_count,*,connected}}? ${buffer.local_variables.filter}${buffer.local_variables.conky_Load_Average}${buffer.local_variables.weather}${if:${buffer.full_name}==relay.relay.list?Total${\x3A}${info:relay_client_count,*,connected} IRC${\x3A}${info:relay_client_count,irc,connected} WeeChat${\x3A}${info:relay_client_count,weechat,connected}}}}" | |
/set buflist.format.hotlist "${if:${lengthscr: ${hotlist}} > ${weechat.bar.buflist_hotlist.size}?${cutscr:${calc:${weechat.bar.buflist_hotlist.size} - 2},${if:${type}==server?${color:white}:${color:${weechat.color.chat_prefix_more}}}${weechat.look.prefix_align_more},${hotlist}}:${repeat:${calc:${weechat.bar.buflist_hotlist.size} - 1 - ${lengthscr:${hotlist}}}, }${hotlist}}" | |
/set buflist.look.signals_refresh "irc_server_connected,relay_client_connected,relay_client_disconnected" | |
/set buflist.look.display_conditions "${buffer.hidden}==0 && (${bar_item.name} =~ ^buflist2?$ && (${type} !~ ^(channel|private)$ || ${type} =~ ^(channel|private)$ && ${buffer[${info:irc_buffer,${irc_server.name}}].local_variables.my_fold} == 0)) || (${bar_item.name} == buflist3 && ${buffer.local_variables.my_control})" | |
/set weechat.look.bar_more_down "" | |
/set weechat.look.bar_more_up "" | |
/trigger add buflist_scroll_buflist command_run "/bar scroll buflist*" | |
/trigger set buflist_scroll_buflist regex "/.*/${tg_command}/arguments /.* ([^ ]+)$/${re:1}/arguments" | |
/trigger set buflist_scroll_buflist command "/bar scroll buflist * ${arguments};/bar scroll buflist_hotlist * ${arguments}" | |
/trigger set buflist_scroll_buflist return_code "ok_eat" | |
/trigger add buflist_resize_buflist config "weechat.bar.buflist.size*;weechat.bar.buflist_hotlist.size*" | |
/trigger set buflist_resize_buflist command "/buflist refresh" | |
/key bindctxt mouse @bar(buflist*):alt-wheelup /bar set ${_bar_name} size ${calc:${weechat.bar.${_bar_name}.size} - 1} | |
/key bindctxt mouse @bar(buflist*):alt-wheeldown /bar set ${_bar_name} size ${calc:${weechat.bar.${_bar_name}.size} + 1} | |
/key bindctxt mouse @item(buflist3):button1* /window ${_window_number};hsignal:buflist_mouse;/window 1 | |
/key bindctxt cursor @item(buflist*):c /mute buffer_autoset ${if:${buffer[${pointer}].local_variables.my_control}?del ${full_name}.localvar_set_my_control:add ${full_name} localvar_set_my_control 1};/command -buffer ${full_name} * /buffer set localvar_set_my_control ${if:${buffer_autoset.buffer.${full_name}.localvar_set_my_control}?1:0};/cursor stop | |
/key bindctxt cursor @item(buflist*):f /command -buffer irc.server.${localvar_server} * /eval /buffer set localvar_set_my_fold \${if:\${buffer.local_variables.my_fold}?0:1};/cursor stop | |
/bar add activetitle window top 1 1 [#window_number],buffer_title | |
/bar set activetitle priority 500 | |
/bar set activetitle conditions ${active} && ${window.number} != 2 | |
/bar set activetitle color_fg white | |
/bar set activetitle color_bg 31 | |
/bar set title conditions ${window.number} == 2 || ${inactive} | |
/bar set title color_fg black | |
/bar set title color_bg 31 | |
/bar set title items [#window_number],buffer_title | |
/bar add rootstatus root bottom 1 1 [time],[buffer_count],[buffer_plugin],buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+buffer_filter,[bitlbee_typing_notice],[lag],[spell_dict],[spell_suggest],completion,scroll,conky_CPU,conky_RAM,conky_Swap,conky_Up,conky_Down | |
/bar set rootstatus color_fg 31 | |
/bar set rootstatus color_bg 234 | |
/bar set rootstatus priority 500 | |
/bar del status | |
/bar set rootstatus name status | |
/bar add rootinput root bottom 1 0 [buffer_name]+[input_prompt]+(away),[input_search],[input_paste],input_text | |
/bar set rootinput color_bg black | |
/bar set rootinput priority 1000 | |
/bar del input | |
/bar set rootinput name input | |
/bar set nicklist color_fg 229 | |
/bar set nicklist separator 1 | |
/bar set nicklist conditions ${nicklist} && ${window.number} == 1 && ${buffer.full_name} !~ ^irc.freenode.(#newsbin|##news)$ | |
/bar set nicklist size_max 14 | |
/bar set nicklist size 14 | |
/bar add line_number root left 5 1 line_number | |
/bar set line_number hidden on | |
/trigger add line_number_show_bar signal input_text_changed | |
/trigger set line_number_show_bar conditions "${buffer[${tg_signal_data}].input_buffer} == /cursor go${esc:\x20}" | |
/trigger set line_number_show_bar command "/bar show line_number;/wait 10s /bar hide line_number" | |
/set plugins.var.python.text_item.line_number all|signal_sigwinch ${eval:${info:ruby_eval,puts (0...${info:term_height}).to_a.join('\${\n${esc:\x7D}')}} | |
/eval /window splith ${calc:8 / ${window[gui_current_window].win_height} * 100 // 1} | |
/buffer add -switch highmon | |
/window 1 | |
/layout store highlight-or-news | |
/buffer_autoset add core.chanmon title Channels Monitor | |
/trigger add chanmon_like print "*;irc_privmsg" | |
/trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${buffer.full_name} != irc.freenode.##news" | |
/trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${cutscr:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_buffer_align_more},${color:${info:nick_color_name,${server}}}${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?${weechat.look.quote_nick_prefix}${tg_prefix}${color:reset}${weechat.look.quote_nick_suffix}:${tg_prefix}${color:reset}} ${tg_message}" | |
/eval /set weechat.startup.command_after_plugins "${weechat.startup.command_after_plugins};/buffer add highmon" | |
/buffer_autoset add core.highmon title Highlight Monitor | |
/trigger add highmon_like print "*;irc_privmsg" | |
/trigger set highmon_like conditions "${tg_highlight} == 1 && ${tg_displayed} == 1 && ${buffer.local_variables.type} == channel" | |
/trigger set highmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${cutscr:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_buffer_align_more},${color:${info:nick_color_name,${server}}}${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?${weechat.look.quote_nick_prefix}${tg_prefix}${color:reset}${weechat.look.quote_nick_suffix}:${tg_prefix}${color:reset}} ${tg_message}" | |
/filter add news irc.freenode.##news !nick_newsly*+!host_yano@unaffiliated/yano/bot/rssly,!irc_privmsg * | |
/filter add news_interest irc.freenode.##news nick_newsly*+irc_privmsg,host_yano@unaffiliated/yano/bot/rssly+irc_privmsg !^(\s|\[)(Reddit [-] /r/netsec|Wired|XKCD|EFF Updates|Washington Post - National News|NYT - US|NYT - Technology|Reuters - World|Time - WorldGoogle News - Technology|Google News - Science|Times of India - India|Google News - Pakistan|CTV News - Canada|LinuxJournal|techdirt|TorrentFreak|Science Daily|Hacker News|CNET|phoronix|Ars Technica|The Intercept|Canoe|Huffington Post [-] Weird News)( \-| | |\]) | |
/trigger add news_transform line *;irc.freenode.##news;irc_privmsg+nick_newsly* | |
/trigger set news_transform regex "/.*/${tg_message_nocolor}/site_name /^\[([^]]+)\].*/${re:1}/site_name /.*/${tg_message_nocolor}/title /^\[[^]]+\]//title / - / ${color:-underline} /site_name /.*/${site_name}/site_color /^([^]+).*/${info:nick_color_name,${re:1}}/site_color /.*/${title}/url ==.*(https?://[^ ]+).*==${re:1}==url /\+/%00/url /,/%01/url /\!/%02/url /\*/%03/url /.*/${re:0}url_${url}/tags ==https?://[^ ]+ .*====title /.*/${color:_black,${site_color}} ${site_name} ${color:${site_color},default}${color:reset}${title}/message /.*//prefix" | |
/trigger add news_click hsignal news_click | |
/trigger set news_click regex "/.*,url_([^,]+).*/${re:1}/_chat_line_tags /%00/+/_chat_line_tags /%01/,/_chat_line_tags /%02/!/_chat_line_tags /%03/*/_chat_line_tags" | |
/trigger set news_click command "/command -buffer ${buffer.full_name} core /input insert ${if:${_key}==m?${_chat_line_message} }${_chat_line_tags}\x20" | |
/key bindctxt cursor @chat(irc.freenode.##news):i hsignal:news_click;/cursor stop | |
/key bindctxt cursor @chat(irc.freenode.##news):m hsignal:news_click;/cursor stop | |
/buffer_autoset add irc.freenode.##news highlight_words_del $nick | |
/buffer_autoset add exec.exec.translated_dict short_name dictionary | |
/trigger add translate modifier weechat_print | |
/trigger set translate conditions "${tg_tags} =~ ,exec_cmd_translated_(text|lang)," | |
/trigger set translate regex "/.*/${color:*_31}${if:${tg_tags}=~,exec_cmd_translated_text,?Translation:Language}${color:reset}\t${tg_message_nocolor}/" | |
/key bindctxt cursor @chat(*):t /window ${_window_number};/command -buffer ${_buffer_full_name} * /exec -norc -name translated_text trans -brief -no-auto '${modifier:escape_shell_single_quote,,${_chat_line_message}}';/cursor stop | |
/key bindctxt cursor @chat(*):l /window ${_window_number};/command -buffer ${_buffer_full_name} * /exec -norc -name translated_lang trans -brief -no-auto -id '${modifier:escape_shell_single_quote,,${_chat_line_message}}';/cursor stop | |
/key bindctxt cursor @chat(*):d /window ${_window_number};/command -buffer ${_buffer_full_name} * /exec -norc -name translated_dict -n trans -dictionary -no-auto '${modifier:escape_shell_single_quote,,${_chat_word}}';/cursor stop | |
/set weechat.look.highlight *strykar* | |
/buffer_autoset add irc.bitlbee.#twitter_AviHD* highlight_words pune,ladakh,*weechat* | |
/buffer_autoset add irc.bitlbee.#BizReferralsIndiaPRE highlight_words pune,satara,*weechat* | |
/buffer_autoset add irc.freenode.##rtlsdr highlight_words sdrplay,sdruno,rsp | |
/buffer_autoset add irc.freenode.#openwrt highlight_words pcengines,apu | |
/trigger add day_changed_upgrade_scripts signal day_changed | |
/trigger set day_changed_upgrade_scripts command "/script update;/wait 10s /script upgrade" | |
/trigger add modifier_is_nick_valid modifier input_text_display | |
/trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" | |
/trigger set modifier_is_nick_valid regex "==^/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cutscr:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${calc:${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6)} / ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}a-zA-Z0-9_-\[]{}^`|===tg_string" | |
/trigger add no_notify_duck_command line *;irc.*;irc_privmsg | |
/trigger set no_notify_duck_command conditions "${tg_message_nocolor} =~ ^[!,.](bef|bang|reload|shop|duckstats|friends|killers)(\s|$) && ${buffer.local_variables.type} == channel" | |
/trigger set no_notify_duck_command regex "/.*/-1/notify_level" | |
/trigger add utils_escape modifier escape | |
/trigger set utils_escape conditions "${tg_string}" | |
/trigger set utils_escape regex "==\\\\==\\\\== /'/\'/" | |
/trigger add utils_escape_shell_single_quote modifier escape_shell_single_quote | |
/trigger set utils_escape_shell_single_quote conditions "${tg_string}" | |
/trigger set utils_escape_shell_single_quote regex "/'/'\''/" | |
/trigger add utils_replace info replace | |
/trigger set utils_replace conditions "${info:ruby_version} >= 1.9 && ${tg_arguments} =~ ^[^]^-][^${cutscr:1,,${tg_arguments}}]+[${cutscr:1,,${tg_arguments}}][^${cutscr:1,,${tg_arguments}}]*[${cutscr:1,,${tg_arguments}}].+$" | |
/trigger set utils_replace regex "==\\\\==\\\\==tg_arguments /'/\'/tg_arguments /.*/${info:ruby_eval, arguments = '${tg_arguments}'.force_encoding("utf-8")[1..-1].split('${tg_arguments}'.force_encoding("utf-8")[0], 3); puts arguments[2].gsub(Regexp.new(arguments[0]), arguments[1])}/tg_info" | |
/trigger add utils_ircbufstats info ircbufstats | |
/trigger set utils_ircbufstats conditions "${tg_arguments} =~ ^(all|server|channel|private|query)$" | |
/trigger set utils_ircbufstats regex "/^query$/private/tg_arguments /.*/${info:ruby_eval, infolist = Weechat.infolist_get('buffer', '', ''); buffers_stats = Hash.new do |hash,key| hash[key] = 0 end; while Weechat.infolist_next(infolist) != 0 do buffer_ptr = Weechat.infolist_pointer(infolist, 'pointer'); buffers_stats[Weechat.buffer_get_string(buffer_ptr, 'localvar_type')] += 1 if Weechat.infolist_string(infolist, 'plugin_name') == 'irc' end if infolist != 0; Weechat.infolist_free(infolist); puts '${tg_arguments}' == 'all' ? [buffers_stats['server'], buffers_stats['channel'], buffers_stats['private']].join(' ') : buffers_stats['${tg_arguments}'].to_s}/tg_info" | |
/trigger add utils_holiday info holiday | |
/trigger set utils_holiday conditions "${tg_arguments} =~ ^(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])$" | |
/trigger set utils_holiday regex "/.*/${tg_arguments}/ /01-01/HAPPY NEW YEAR!/ /25-12/MERRY CHRISTMAS!/ /[0-9][0-9]-[0-9][0-9]//" | |
/key bindctxt cursor @item(buffer_nicklist):v /window ${_window_number};/voice ${nick} | |
/key bindctxt cursor @item(buffer_nicklist):o /window ${_window_number};/op ${nick} | |
/key bindctxt cursor @item(buffer_nicklist):V /window ${_window_number};/devoice ${nick} | |
/key bindctxt cursor @item(buffer_nicklist):O /window ${_window_number};/deop ${nick} | |
/key bindctxt cursor @chat(*):s /window ${_window_number};/slap ${_chat_line_nick};/cursor stop | |
/key bindctxt cursor @item(buffer_nicklist):s /window ${_window_number};/slap ${nick};/cursor stop | |
/key bindctxt cursor @chat(*):g /window ${_window_number};/customgrep ${_chat_line_nick};/cursor stop | |
/key bindctxt cursor @item(buffer_nicklist):g /window ${_window_number};/customgrep ${nick};/cursor stop | |
/key bindctxt cursor @chat(*):a /command -buffer ${buffer.full_name} core /input insert ${_chat_bol}\x20;/cursor stop | |
/key bindctxt cursor @chat(*):e /command -buffer ${buffer.full_name} core /input insert ${_chat_eol}\x20;/cursor stop | |
/key bindctxt cursor @chat(*):w /command -buffer ${buffer.full_name} core /input insert ${_chat_word}\x20;/cursor stop | |
/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 add ame allchan -current /me | |
/alias add amsg allchan -current /msg * | |
/alias add cq allpv /buffer close | |
/alias add slap /me slaps $1- around a bit with a large trout | |
/alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 | |
/alias add znc /quote znc | |
/alias add fu /say (╹◡╹)凸 $* | |
/alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp | |
/alias add funnyversion /eval ${if:$*==?${info:ruby_eval,print %W[mIRC irssi KVIrc HexChat AdiIRC BitchX].sample}:$*} ${info:version} (git: ${info:version_git}) [compiled on ${info:date}] | |
/alias add savechan /allserv mute unset irc.server.$server.autojoin;/allchan mute autojoinem add;/mute unset irc.server.undernet.autojoin | |
/alias add change-color /fset c:${type_en} == color && ${value} == $1;/command -buffer fset.fset core /input send m:*;/fset -add -$1;/fset -add $2 | |
/set irc.look.smart_filter on | |
/filter add irc_smart * irc_smart_filter * | |
/set weechat.color.chat_prefix_join 121 | |
/set weechat.color.chat_host 31 | |
/set irc.color.message_join 121 | |
/set exec.command.shell bash | |
/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" | |
/set irc.network.ban_mask_default "*!*@$host" | |
/set irc.look.buffer_switch_autojoin off | |
/set irc.look.buffer_switch_join off | |
/set irc.look.color_nicks_in_nicklist on | |
/set irc.look.part_closes_buffer on | |
/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_notify_default message | |
/set weechat.look.buffer_time_format "${color:245}%H${color:253}%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.day_change_message_1date "--> ${if:${info:holiday,%d-%m}?${info:holiday,%d-%m}:%a, %d %b %Y} <--" | |
/set weechat.look.day_change_message_2dates "--> ${if:${info:holiday,%%d-%%m}?${info:holiday,%%d-%%m}:%%a, %%d %%b %%Y} (%a, %d %b %Y) <--" | |
/set weechat.look.hotlist_add_conditions "${away} || ${buffer.num_displayed} == 0" | |
/set weechat.look.item_buffer_filter "•" | |
/set weechat.look.prefix_align_min 0 | |
/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 "cyan,magenta,green,brown,lightblue,lightcyan,lightmagenta,lightgreen,blue" | |
/set weechat.color.chat_prefix_more 31 | |
/set weechat.color.chat_prefix_suffix 31 | |
/set weechat.color.chat_read_marker 31 | |
/set weechat.color.chat_time 239 | |
/set weechat.color.chat_delimiters 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