#
-# alias.conf -- weechat v1.0
+# alias.conf -- weechat v1.0.1
#
[cmd]
#
-# aspell.conf -- weechat v1.0
+# aspell.conf -- weechat v1.0.1
#
[color]
#
-# buffer_autoset.conf -- weechat v1.0
+# buffer_autoset.conf -- weechat v1.0.1
#
[buffer]
#
-# buffers.conf -- weechat v1.0
+# buffers.conf -- weechat v1.0.1
#
[color]
[look]
core_to_front = off
detach = 0
-detach_buffer_immediately = ""
+detach_buffer_immediately = "highmon"
detach_display_window_number = off
detach_displayed_buffers = on
detach_free_content = off
detach_query = off
-hide_merged_buffers = keepserver
+hide_merged_buffers = server
hotlist_counter = off
immune_detach_buffers = ""
indenting = off
mouse_move_buffer = on
mouse_wheel = on
name_crop_suffix = "+"
-name_size_max = 0
+name_size_max = 14
number_char = "."
prefix = off
prefix_bufname = ""
#
-# charset.conf -- weechat v1.0
+# charset.conf -- weechat v1.0.1
#
[default]
#
-# exec.conf -- weechat v1.0
+# exec.conf -- weechat v1.0.1
#
[command]
#
-# irc.conf -- weechat v0.4.2
+# irc.conf -- weechat v1.0
#
[look]
highlight_channel = "$nick"
highlight_pv = "$nick"
highlight_server = "$nick"
-highlight_tags = "irc_privmsg,irc_notice"
+highlight_tags_restrict = "irc_privmsg,irc_notice"
item_away_message = on
-item_channel_modes_hide_key = off
+item_channel_modes_hide_args = "k"
item_display_server = buffer_plugin
item_nick_modes = on
item_nick_prefix = on
+join_auto_add_chantype = off
msgbuffer_fallback = current
new_channel_position = none
new_pv_position = none
nicks_hide_password = "nickserv"
notice_as_pv = auto
notice_welcome_redirect = on
+notice_welcome_tags = ""
notify_tags_ison = "notify_message"
notify_tags_whois = "notify_message"
part_closes_buffer = off
smart_filter_delay = 5
smart_filter_join = on
smart_filter_join_unmask = 30
+smart_filter_mode = "ovh"
smart_filter_nick = on
smart_filter_quit = on
topic_strip_colors = off
item_channel_modes = default
item_lag_counting = default
item_lag_finished = yellow
+item_nick_modes = default
message_join = green
message_quit = red
mirc_remap = "1,-1:darkgray"
alternate_nick = on
autoreconnect_delay_growing = 2
autoreconnect_delay_max = 1800
+ban_mask_default = "*!$user@$host"
colors_receive = on
colors_send = on
lag_check = 60
+lag_max = 1800
lag_min_show = 500
lag_reconnect = 0
lag_refresh_interval = 1
command = ""
command_delay = 0
connection_timeout = 60
+default_msg_kick = ""
default_msg_part = "WeeChat %v"
default_msg_quit = "WeeChat %v"
ipv6 = on
ssl = off
ssl_cert = ""
ssl_dhkey_size = 2048
+ssl_fingerprint = ""
ssl_priorities = "NORMAL"
ssl_verify = on
username = "ramsi"
freenode.ssl_cert
freenode.ssl_priorities
freenode.ssl_dhkey_size
+freenode.ssl_fingerprint
freenode.ssl_verify = off
freenode.password = ""
freenode.capabilities
freenode.autoreconnect
freenode.autoreconnect_delay
freenode.nicks
-freenode.username = ""
+freenode.username = "ramsi/freenode"
freenode.realname
freenode.local_hostname
freenode.command
freenode.anti_flood_prio_low
freenode.away_check
freenode.away_check_max_nicks
+freenode.default_msg_kick
freenode.default_msg_part
freenode.default_msg_quit
freenode.notify
bitlbee.ssl_cert
bitlbee.ssl_priorities
bitlbee.ssl_dhkey_size
+bitlbee.ssl_fingerprint
bitlbee.ssl_verify = off
bitlbee.password = ""
bitlbee.capabilities
bitlbee.autoreconnect
bitlbee.autoreconnect_delay
bitlbee.nicks
-bitlbee.username = ""
+bitlbee.username = "ramsi/bitlbee"
bitlbee.realname
bitlbee.local_hostname
bitlbee.command
bitlbee.anti_flood_prio_low
bitlbee.away_check
bitlbee.away_check_max_nicks
+bitlbee.default_msg_kick
bitlbee.default_msg_part
bitlbee.default_msg_quit
bitlbee.notify
+oftc.addresses = "tardis.uni.cx/60665"
+oftc.proxy
+oftc.ipv6
+oftc.ssl = on
+oftc.ssl_cert
+oftc.ssl_priorities
+oftc.ssl_dhkey_size
+oftc.ssl_fingerprint
+oftc.ssl_verify = off
+oftc.password = ""
+oftc.capabilities
+oftc.sasl_mechanism
+oftc.sasl_username
+oftc.sasl_password
+oftc.sasl_timeout
+oftc.autoconnect = on
+oftc.autoreconnect
+oftc.autoreconnect_delay
+oftc.nicks
+oftc.username = "ramsi/oftc"
+oftc.realname
+oftc.local_hostname
+oftc.command
+oftc.command_delay
+oftc.autojoin
+oftc.autorejoin
+oftc.autorejoin_delay
+oftc.connection_timeout
+oftc.anti_flood_prio_high
+oftc.anti_flood_prio_low
+oftc.away_check
+oftc.away_check_max_nicks
+oftc.default_msg_kick
+oftc.default_msg_part
+oftc.default_msg_quit
+oftc.notify
#
-# iset.conf -- weechat v1.0
+# iset.conf -- weechat v1.0.1
#
[color]
#
-# logger.conf -- weechat v1.0
+# logger.conf -- weechat v1.0.1
#
[look]
#
# History:
#
+# 2014-08-29, Patrick Steinhardt <ps@pks.im>:
+# v4.9: add support for specifying custom buffer names
# 2014-07-19, Sebastien Helleu <flashcode@flashtux.org>:
# v4.8: add support of ctrl + mouse wheel to jump to previous/next buffer,
# new option "mouse_wheel"
use Encode qw( decode encode );
# -----------------------------[ internal ]-------------------------------------
my $SCRIPT_NAME = "buffers";
-my $SCRIPT_VERSION = "4.8";
+my $SCRIPT_VERSION = "4.9";
my $BUFFERS_CONFIG_FILE_NAME = "buffers";
my $buffers_config_file;
weechat::hook_signal("buffer_switch", "buffers_signal_buffer", "");
weechat::hook_signal("buffer_hidden", "buffers_signal_buffer", ""); # WeeChat >= 0.4.4
weechat::hook_signal("buffer_unhidden", "buffers_signal_buffer", ""); # WeeChat >= 0.4.4
+weechat::hook_signal("buffer_localvar_added", "buffers_signal_buffer", "");
+weechat::hook_signal("buffer_localvar_changed", "buffers_signal_buffer", "");
weechat::hook_signal("window_switch", "buffers_signal_buffer", "");
weechat::hook_signal("hotlist_changed", "buffers_signal_hotlist", "");
my $key;
if (weechat::config_integer( $options{"sort"} ) eq 1) # number = 0; name = 1
{
- my $name = $buffer->{"name"};
- $name = $buffer->{"short_name"} if (weechat::config_boolean( $options{"short_names"} ) eq 1);
+ my $name = weechat::buffer_get_string($buffer->{"pointer"}, "localvar_custom_name");
+ if (not defined $name or $name eq "") {
+ if (weechat::config_boolean( $options{"short_names"} ) eq 1) {
+ $name = $buffer->{"short_name"};
+ } else {
+ $name = $buffer->{"name"};
+ }
+ }
if (weechat::config_integer($options{"name_size_max"}) >= 1){
$name = encode("UTF-8", substr(decode("UTF-8", $name), 0, weechat::config_integer($options{"name_size_max"})));
}
$str .= weechat::color($color) . weechat::color(",".$bg);
- if (weechat::config_boolean( $options{"short_names"} ) eq 1)
+ my $name = weechat::buffer_get_string($buffer->{"pointer"}, "localvar_custom_name");
+ if (not defined $name or $name eq "")
{
- if (weechat::config_integer($options{"name_size_max"}) >= 1) # check max_size of buffer name
- {
- $str .= encode("UTF-8", substr(decode("UTF-8", $buffer->{"short_name"}), 0, weechat::config_integer($options{"name_size_max"})));
- $str .= weechat::color(weechat::config_color( $options{"color_number_char"})).weechat::config_string($options{"name_crop_suffix"}) if (length($buffer->{"short_name"}) > weechat::config_integer($options{"name_size_max"}));
- $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
- $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
- }
- else
- {
- $str .= $buffer->{"short_name"};
- $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
- $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
+ if (weechat::config_boolean( $options{"short_names"} ) eq 1) {
+ $name = $buffer->{"short_name"};
+ } else {
+ $name = $buffer->{"name"};
}
}
+
+ if (weechat::config_integer($options{"name_size_max"}) >= 1) # check max_size of buffer name
+ {
+ $str .= encode("UTF-8", substr(decode("UTF-8", $name), 0, weechat::config_integer($options{"name_size_max"})));
+ $str .= weechat::color(weechat::config_color( $options{"color_number_char"})).weechat::config_string($options{"name_crop_suffix"}) if (length($name) > weechat::config_integer($options{"name_size_max"}));
+ $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
+ $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
+ }
else
{
- if (weechat::config_integer($options{"name_size_max"}) >= 1) # check max_size of buffer name
- {
- $str .= encode("UTF-8", substr(decode("UTF-8", $buffer->{"name"},), 0, weechat::config_integer($options{"name_size_max"})));
- $str .= weechat::color(weechat::config_color( $options{"color_number_char"})).weechat::config_string($options{"name_crop_suffix"}) if (length($buffer->{"name"}) > weechat::config_integer($options{"name_size_max"}));
- $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
- $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
- }
- else
- {
- $str .= $buffer->{"name"};
- $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
- $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
- }
+ $str .= $name;
+ $str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
+ $str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
}
+
if ( weechat::buffer_get_string($buffer->{"pointer"}, "localvar_type") eq "server" and weechat::config_boolean($options{"show_lag"}) eq 1)
{
my $color_lag = weechat::config_color(weechat::config_get("irc.color.item_lag_finished"));
#
-# plugins.conf -- weechat v1.0
+# plugins.conf -- weechat v1.0.1
#
[var]
perl.check_license = "off"
perl.highmon.alignment = "nchannel"
perl.highmon.away_only = "off"
+perl.highmon.bar_lines = "250"
+perl.highmon.bar_scrolldown = "on"
perl.highmon.color_buf = "on"
perl.highmon.first_run = "true"
perl.highmon.hotlist_show = "off"
perl.highmon.nick_prefix = "<"
perl.highmon.nick_suffix = ">"
perl.highmon.output = "buffer"
-perl.highmon.short_names = "off"
+perl.highmon.short_names = "on"
python.check_license = "off"
ruby.check_license = "off"
tcl.check_license = "off"
#
-# relay.conf -- weechat v1.0
+# relay.conf -- weechat v1.0.1
#
[look]
#
-# script.conf -- weechat v1.0
+# script.conf -- weechat v1.0.1
#
[look]
#
-# sec.conf -- weechat v1.0
+# sec.conf -- weechat v1.0.1
#
[crypt]
#
-# trigger.conf -- weechat v1.0
+# trigger.conf -- weechat v1.0.1
#
[look]
#
-# weechat.conf -- weechat v1.0
+# weechat.conf -- weechat v1.0.1
#
[debug]
bar_more_up = "▲"
bare_display_exit_on_input = on
bare_display_time_format = "%H:%M"
-buffer_auto_renumber = on
+buffer_auto_renumber = off
buffer_notify_default = all
buffer_position = end
buffer_search_case_sensitive = off
buffer_search_force_default = off
buffer_search_regex = off
buffer_search_where = message
-buffer_time_format = "${253}%H:${245}%M:%S"
+buffer_time_format = "${color:253}%H:${color:245}%M:${color:240}%S"
color_basic_force_bold = off
color_inactive_buffer = off
color_inactive_message = on
prefix_action = " *"
prefix_align = right
prefix_align_max = 10
-prefix_align_min = 0
-prefix_align_more = "+"
+prefix_align_min = 10
+prefix_align_more = "⋯"
prefix_align_more_after = on
prefix_buffer_align = right
prefix_buffer_align_max = 0
scroll_bottom_after_switch = off
scroll_page_percent = 100
search_text_not_found_alert = on
-separator_horizontal = "="
+separator_horizontal = "―"
separator_vertical = ""
tab_width = 1
time_format = "%a, %d %b %Y %T"
chat_prefix_buffer_inactive_buffer = darkgray
chat_prefix_error = yellow
chat_prefix_join = 121
-chat_prefix_more = 229
+chat_prefix_more = 245
chat_prefix_network = magenta
chat_prefix_quit = 163
chat_prefix_suffix = 31
buffers.color_bg = default
buffers.color_delim = default
buffers.color_fg = default
-buffers.conditions = ""
-buffers.filling_left_right = vertical
+buffers.conditions = "${window.buffer.full_name} == perl.highmon"
+buffers.filling_left_right = columns_vertical
buffers.filling_top_bottom = columns_vertical
-buffers.hidden = off
+buffers.hidden = on
buffers.items = "buffers"
buffers.position = left
buffers.priority = 0
buffers.separator = on
buffers.size = 0
-buffers.size_max = 15
-buffers.type = root
+buffers.size_max = 0
+buffers.type = window
+input.color_bg = default
+input.color_delim = cyan
+input.color_fg = default
+input.conditions = "${window.buffer.full_name} != perl.highmon"
+input.filling_left_right = vertical
+input.filling_top_bottom = horizontal
+input.hidden = off
+input.items = "[input_prompt]+(away),[input_search],[input_paste],input_text"
+input.position = bottom
+input.priority = 1000
+input.separator = off
+input.size = 1
+input.size_max = 0
+input.type = window
isetbar.color_bg = default
isetbar.color_delim = cyan
isetbar.color_fg = default
nicklist.color_bg = default
nicklist.color_delim = cyan
nicklist.color_fg = 31
-nicklist.conditions = "${nicklist} && ${window.number} == 1"
+nicklist.conditions = "${nicklist}"
nicklist.filling_left_right = vertical
nicklist.filling_top_bottom = columns_vertical
nicklist.hidden = off
nicklist.size = 15
nicklist.size_max = 15
nicklist.type = window
-rootinput.color_bg = default
-rootinput.color_delim = default
-rootinput.color_fg = default
-rootinput.conditions = ""
-rootinput.filling_left_right = vertical
-rootinput.filling_top_bottom = horizontal
-rootinput.hidden = off
-rootinput.items = "[buffer_name]+[input_prompt]+(away),[input_search],[input_paste],input_text"
-rootinput.position = bottom
-rootinput.priority = 0
-rootinput.separator = off
-rootinput.size = 1
-rootinput.size_max = 0
-rootinput.type = root
status.color_bg = default
status.color_delim = default
status.color_fg = 31
-status.conditions = ""
+status.conditions = "${window.buffer.full_name} != perl.highmon"
status.filling_left_right = vertical
status.filling_top_bottom = horizontal
status.hidden = off
title.color_bg = black
title.color_delim = cyan
title.color_fg = 31
-title.conditions = "${inactive}"
+title.conditions = "${inactive} && ${window.buffer.full_name} != perl.highmon"
title.filling_left_right = vertical
title.filling_top_bottom = horizontal
title.hidden = off
normal.window = "1;0;16;1;-;-"
normal.window = "2;1;0;0;irc;server"
normal.window = "3;1;0;0;perl;highmon"
-normal.current = on
+four_rooms.buffer = "core;weechat;1"
+four_rooms.buffer = "irc;server.freenode;1"
+four_rooms.buffer = "irc;server.bitlbee;1"
+four_rooms.buffer = "irc;server.oftc;1"
+four_rooms.buffer = "irc;freenode.#chakra;2"
+four_rooms.buffer = "irc;freenode.#chakra-devel;3"
+four_rooms.buffer = "irc;freenode.#chakra-ccr;4"
+four_rooms.buffer = "irc;freenode.#chakra-fr;5"
+four_rooms.buffer = "irc;bitlbee.&bitlbee;6"
+four_rooms.buffer = "irc;freenode.#archlinux;7"
+four_rooms.buffer = "irc;oftc.#awesome;8"
+four_rooms.buffer = "irc;oftc.#luakit;9"
+four_rooms.buffer = "irc;freenode.#archlinux-pacman;10"
+four_rooms.buffer = "irc;freenode.#btrfs;11"
+four_rooms.buffer = "irc;freenode.#flexget;12"
+four_rooms.buffer = "irc;freenode.#livlug;13"
+four_rooms.buffer = "irc;freenode.#mutt;14"
+four_rooms.buffer = "irc;freenode.#sailfishos;15"
+four_rooms.buffer = "irc;freenode.#weechat;16"
+four_rooms.buffer = "perl;highmon;99"
+four_rooms.window = "1;0;16;1;-;-"
+four_rooms.window = "2;1;50;1;-;-"
+four_rooms.window = "3;2;50;0;-;-"
+four_rooms.window = "5;3;0;0;irc;freenode.#chakra-devel"
+four_rooms.window = "6;3;0;0;irc;freenode.#chakra-devel"
+four_rooms.window = "4;2;50;0;-;-"
+four_rooms.window = "7;4;0;0;irc;server.oftc"
+four_rooms.window = "8;4;0;0;irc;freenode.#chakra"
+four_rooms.window = "9;1;0;0;perl;highmon"
+four_rooms.current = on
[notify]
[filter]
+irc_smart = on;*;irc_smart_filter;*
[key]
ctrl-? = "/input delete_previous_char"
ctrl-D = "/input delete_next_char"
ctrl-E = "/input move_end_of_line"
ctrl-F = "/input move_next_char"
-ctrl-H = "/input delete_previous_char"
+ctrl-H = "/window -1"
ctrl-I = "/input complete_next"
ctrl-J = "/input return"
ctrl-K = "/input delete_end_of_line"
-ctrl-L = "/window refresh"
+ctrl-L = "/window +1"
ctrl-M = "/input return"
ctrl-N = "/buffer +1"
ctrl-P = "/buffer -1"
meta-meta2-8~ = "/window scroll_bottom"
meta-meta2-A = "/buffer -1"
meta-meta2-B = "/buffer +1"
-meta-meta2-C = "/buffer +1"
-meta-meta2-D = "/buffer -1"
+meta-meta2-C = "/buffer +10"
+meta-meta2-D = "/buffer -10"
meta-! = "/buffer *1"
meta-# = "/buffer *3"
meta-$ = "/buffer *4"
#
-# xfer.conf -- weechat v1.0
+# xfer.conf -- weechat v1.0.1
#
[look]