#
-# alias.conf -- weechat v0.4.3
+# alias.conf -- weechat v1.0
#
[cmd]
#
-# aspell.conf -- weechat v0.4.3
+# aspell.conf -- weechat v1.0
#
[color]
#
-# buffer_autoset.conf -- weechat v0.4.3
+# buffer_autoset.conf -- weechat v1.0
#
[buffer]
#
-# buffers.conf -- weechat v0.4.3
+# buffers.conf -- weechat v1.0
#
[color]
jump_prev_next_visited_buffer = off
mark_inactive = off
mouse_move_buffer = on
+mouse_wheel = on
name_crop_suffix = "+"
name_size_max = 0
number_char = "."
show_number = on
sort = number
suffix_bufname = ""
-toogle_bar = on
+toggle_bar = on
whitelist_buffers = ""
#
-# charset.conf -- weechat v0.4.3
+# charset.conf -- weechat v1.0
#
[default]
--- /dev/null
+#
+# exec.conf -- weechat v1.0
+#
+
+[command]
+default_options = ""
+purge_delay = 0
+
+[color]
+flag_finished = lightred
+flag_running = lightgreen
#
-# iset.conf -- weechat v0.4.3
+# iset.conf -- weechat v1.0
#
[color]
[look]
scroll_horiz = 10
show_current_line = on
+use_mute = off
value_search_char = "="
#
-# logger.conf -- weechat v0.4.3
+# logger.conf -- weechat v1.0
#
[look]
#
# History:
#
+# 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"
+# 2014-06-22, Sebastien Helleu <flashcode@flashtux.org>:
+# v4.7: fix typos in options
# 2014-04-05, Sebastien Helleu <flashcode@flashtux.org>:
# v4.6: add support of hidden buffers (WeeChat >= 0.4.4)
# 2014-01-01, Sebastien Helleu <flashcode@flashtux.org>:
use Encode qw( decode encode );
# -----------------------------[ internal ]-------------------------------------
my $SCRIPT_NAME = "buffers";
-my $SCRIPT_VERSION = "4.6";
+my $SCRIPT_VERSION = "4.8";
my $BUFFERS_CONFIG_FILE_NAME = "buffers";
my $buffers_config_file;
my $cmd_buffers_detach = "buffers_detach";
my %mouse_keys = ("\@item(buffers):button1*" => "hsignal:buffers_mouse",
- "\@item(buffers):button2*" => "hsignal:buffers_mouse");
+ "\@item(buffers):button2*" => "hsignal:buffers_mouse",
+ "\@bar(buffers):ctrl-wheelup" => "hsignal:buffers_mouse",
+ "\@bar(buffers):ctrl-wheeldown" => "hsignal:buffers_mouse");
my %options;
my %hotlist_level = (0 => "low", 1 => "message", 2 => "private", 3 => "highlight");
my @whitelist_buffers = ();
],
"show_lag" => [
"show_lag", "boolean",
- "show lag behind servername. This option is using \"irc.color.".
+ "show lag behind server name. This option is using \"irc.color.".
"item_lag_finished\", ".
"\"irc.network.lag_min_show\" and \"irc.network.lag_refresh_interval\"",
"", 0, 0, "off", "off", 0,
],
"show_number" => [
"show_number", "boolean",
- "display channel number in front of buffername",
+ "display buffer number in front of buffer name",
"", 0, 0, "on", "on", 0,
"", "", "buffers_signal_config", "", "", ""
],
"show_number_char" => [
"number_char", "string",
- "display a char behind channel number",
+ "display a char behind buffer number",
"", 0, 0, ".", ".", 0,
"", "", "buffers_signal_config", "", "", ""
],
"show_prefix_bufname" => [
"prefix_bufname", "string",
- "prefix displayed in front of buffername",
+ "prefix displayed in front of buffer name",
"", 0, 0, "", "", 0,
"", "", "buffers_signal_config", "", "", ""
],
"show_suffix_bufname" => [
"suffix_bufname", "string",
- "suffix displayed at end of buffername",
+ "suffix displayed at end of buffer name",
"", 0, 0, "", "", 0,
"", "", "buffers_signal_config", "", "", ""
],
"show_prefix" => [
"prefix", "boolean",
- "displays your prefix for channel in front of buffername",
+ "displays your prefix for channel in front of buffer name",
"", 0, 0, "off", "off", 0,
"", "", "buffers_signal_config", "", "", ""
],
],
"detach" => [
"detach", "integer",
- "detach channel from buffers list after a specific period of time ".
+ "detach buffer from buffers list after a specific period of time ".
"(in seconds) without action (weechat ≥ 0.3.8 required) (0 means \"off\")",
"", 0, 31536000, 0, "number", 0,
"", "", "buffers_signal_config", "", "", ""
],
"immune_detach_buffers" => [
"immune_detach_buffers", "string",
- "comma separated list of buffers to NOT automatically detatch. ".
+ "comma separated list of buffers to NOT automatically detach. ".
"Allows \"*\" wildcard. Ex: \"BitlBee,freenode.*\"",
"", 0, 0, "", "", 0,
"", "", "buffers_signal_config_immune_detach_buffers", "", "", ""
],
"detach_query" => [
"detach_query", "boolean",
- "query buffer will be detachted",
+ "query buffer will be detached",
"", 0, 0, "off", "off", 0,
"", "", "buffers_signal_config", "", "", ""
],
"", "", "buffers_signal_config", "", "", ""
],
"toggle_bar" => [
- "toogle_bar", "boolean",
+ "toggle_bar", "boolean",
"if option is \"on\", buffers bar will hide/show when script is ".
"(un)loaded.",
"", 0, 0, "on", "on", 0,
"", 0, 0, "on", "on", 0,
"", "", "buffers_signal_config", "", "", ""
],
+ "mouse_wheel" => [
+ "mouse_wheel", "boolean",
+ "if option is \"on\", mouse wheel jumps to previous/next buffer in list.",
+ "", 0, 0, "on", "on", 0,
+ "", "", "buffers_signal_config", "", "", ""
+ ],
);
# section "color"
my $section_color = weechat::config_new_section(
my ($data, $signal, %hash) = ($_[0], $_[1], %{$_[2]});
my $current_buffer = weechat::buffer_get_integer(weechat::current_buffer(), "number"); # get current buffer number
- if ( $hash{"_key"} eq "button1" ) # left mouse button
+ if ( $hash{"_key"} eq "button1" )
{
+ # left mouse button
if ($hash{"number"} eq $hash{"number2"})
{
- if ( weechat::config_integer($options{"jump_prev_next_visited_buffer"}) eq 1 )
+ if ( weechat::config_boolean($options{"jump_prev_next_visited_buffer"}) )
{
if ( $current_buffer eq $hash{"number"} )
{
move_buffer(%hash) if (weechat::config_boolean($options{"mouse_move_buffer"}));
}
}
- elsif ( ($hash{"_key"} eq "button2") && (weechat::config_integer($options{"jump_prev_next_visited_buffer"}) eq 1) )# right mouse button
+ elsif ( ($hash{"_key"} eq "button2") && (weechat::config_boolean($options{"jump_prev_next_visited_buffer"})) )
{
+ # right mouse button
if ( $current_buffer eq $hash{"number2"} )
{
weechat::command("", "/input jump_next_visited_buffer");
}
}
+ elsif ( $hash{"_key"} =~ /wheelup$/ )
+ {
+ # wheel up
+ if (weechat::config_boolean($options{"mouse_wheel"}))
+ {
+ weechat::command("", "/buffer -1");
+ }
+ }
+ elsif ( $hash{"_key"} =~ /wheeldown$/ )
+ {
+ # wheel down
+ if (weechat::config_boolean($options{"mouse_wheel"}))
+ {
+ weechat::command("", "/buffer +1");
+ }
+ }
else
{
my $infolist = weechat::infolist_get("hook", "", "command,menu");
#
# highmon.pl - Highlight Monitoring for weechat 0.3.0
-# Version 2.4
+# Version 2.5
#
# Add 'Highlight Monitor' buffer/bar to log all highlights in one spot
#
# Usage:
-# /highmon [help] | [monitor [channel [server]]] | [clean default|orphan|all]
+# /highmon [help] | [monitor [channel [server]]] | [clean default|orphan|all] | clearbar
# Command wrapper for highmon commands
#
# /highmon clean default|orphan|all will clean the config section of default 'on' entries,
# channels you are no longer joined, or both
#
+# /highmon clearbar will clear the contents of highmon's bar output
+#
# /highmon monitor [channel] [server] is used to toggle a highlight monitoring on and off, this
# can be used in the channel buffer for the channel you wish to toggle, or be given
# with arguments e.g. /highmon monitor #weechat freenode
# servername is the internal name for the server (set when you use /server add)
# #channel is the channel name, (where # is whatever channel type that channel happens to be)
#
+# Optional, set up tweaks; Hide the status and input lines on highmon
+#
+# /set weechat.bar.status.conditions "${window.buffer.full_name} != perl.highmon"
+# /set weechat.bar.input.conditions "${window.buffer.full_name} != perl.highmon"
+#
# Bugs and feature requests at: https://github.com/KenjiE20/highmon
# History:
+# 2014-08-16, KenjiE20 <longbow@longbowslair.co.uk>:
+# v2.5: -add: clearbar command to clear bar output
+# -add: firstrun output prompt to check the help text for set up hints as they were being missed
+# and update hint for conditions to use eval
+# -change: Make all outputs use the date callback for more accurate timestamps (thanks Germainz)
# 2013-12-04, KenjiE20 <longbow@longbowslair.co.uk>:
# v2.4: -add: Support for eval style colour codes in time format used for bar output
# 2013-10-22, KenjiE20 <longbow@longbowslair.co.uk>:
@bar_lines_time = ();
# Replicate info earlier for in-client help
-$highmonhelp = weechat::color("bold")."/highmon [help] | [monitor [channel [server]]] | [clean default|orphan|all]".weechat::color("-bold")."
+$highmonhelp = weechat::color("bold")."/highmon [help] | [monitor [channel [server]]] | [clean default|orphan|all] | clearbar".weechat::color("-bold")."
Command wrapper for highmon commands
".weechat::color("bold")."/highmon clean default|orphan|all".weechat::color("-bold")." will clean the config section of default 'on' entries, channels you are no longer joined, or both
+".weechat::color("bold")."/highmon clearbar".weechat::color("-bold")." will clear the contents of highmon's bar output
+
".weechat::color("bold")."/highmon monitor [channel] [server]".weechat::color("-bold")." is used to toggle a highlight monitoring on and off, this can be used in the channel buffer for the channel you wish to toggle, or be given with arguments e.g. /highmon monitor #weechat freenode
".weechat::color("bold")."/set plugins.var.perl.highmon.alignment".weechat::color("-bold")."
".weechat::color("bold")."servername.#channel".weechat::color("-bold")."
servername is the internal name for the server (set when you use /server add)
- #channel is the channel name, (where # is whatever channel type that channel happens to be)";
+ #channel is the channel name, (where # is whatever channel type that channel happens to be)
+
+".weechat::color("bold")."Optional, set up tweaks;".weechat::color("-bold")." Hide the status and input lines on highmon
+
+".weechat::color("bold")."/set weechat.bar.status.conditions \"\${window.buffer.full_name} != perl.highmon\"".weechat::color("-bold")."
+".weechat::color("bold")."/set weechat.bar.input.conditions \"\${window.buffer.full_name} != perl.highmon\"".weechat::color("-bold");
# Print verbose help
sub print_help
{
{
highmon_config_clean($data, $buffer, $arg);
}
+ # clearbar command
+ elsif ($cmd eq "clearbar")
+ {
+ if (weechat::config_get_plugin("output") eq "bar")
+ {
+ @bar_lines = ();
+ weechat::bar_item_update("highmon");
+ }
+ }
# Fix closed buffer
elsif ($cmd eq "fix")
{
# Check config elements
sub highmon_config_init
{
+ # First run default
+ if (!(weechat::config_is_set_plugin ("first_run")))
+ {
+ if (weechat::config_get_plugin("first_run") ne "true")
+ {
+ weechat::print("", "\tThis appears to be the first time highmon has been run. For help and common set up hints see /highmon help");
+ weechat::config_set_plugin("first_run", "true");
+ }
+ }
# Alignment default
if (!(weechat::config_is_set_plugin ("alignment")))
{
weechat::hook_print("", "", "", 0, "highmon_new_message", "");
weechat::hook_command("highclean", "Highmon config clean up", "default|orphan|all", " default: Cleans all config entries with the default \"on\" value\n orphan: Cleans all config entries for channels you aren't currently joined\n all: Does both defaults and orphan", "default|orphan|all", "highmon_config_clean", "");
- weechat::hook_command("highmon", "Highmon help", "[help] | [monitor [channel [server]]] | [clean default|orphan|all]", " help: Print help on config options for highmon\n monitor: Toggles monitoring for a channel\n clean: Highmon config clean up (/highclean)", "help || monitor %(irc_channels) %(irc_servers) || clean default|orphan|all", "highmon_command_cb", "");
+ weechat::hook_command("highmon", "Highmon help", "[help] | [monitor [channel [server]]] | [clean default|orphan|all] | clearbar", " help: Print help on config options for highmon\n monitor: Toggles monitoring for a channel\n clean: Highmon config clean up (/highclean)\nclearbar: Clear Highmon bar", "help || monitor %(irc_channels) %(irc_servers) || clean default|orphan|all || clearbar", "highmon_command_cb", "");
weechat::hook_config("plugins.var.perl.highmon.*", "highmon_config_cb", "");
weechat::hook_config("weechat.look.prefix_suffix", "highmon_config_cb", "");
$nick = weechat::color("chat_highlight").$uncolnick.weechat::color("reset");
}
# Send to output
- highmon_print ($cb_msg, $cb_bufferp, $nick);
+ highmon_print ($cb_msg, $cb_bufferp, $nick, $cb_date, $cb_tags);
}
}
# Or is private message
# Format nick
$nick = " ".weechat::config_get_plugin("nick_prefix").weechat::color("chat_highlight").$uncolnick.weechat::color("reset").weechat::config_get_plugin("nick_suffix");
#Send to output
- highmon_print ($cb_msg, $cb_bufferp, $nick);
+ highmon_print ($cb_msg, $cb_bufferp, $nick, $cb_date, $cb_tags);
}
}
}
$cb_msg = $_[0];
my $cb_bufferp = $_[1] if ($_[1]);
my $nick = $_[2] if ($_[2]);
+ my $cb_date = $_[3] if ($_[3]);
+ my $cb_tags = $_[4] if ($_[4]);
#Normal channel message
if ($cb_bufferp && $nick)
# Search for and confirm buffer
$highmon_buffer = weechat::buffer_search("perl", "highmon");
# Print
- weechat::print($highmon_buffer, $outstr);
+ if ($cb_date)
+ {
+ weechat::print_date_tags($highmon_buffer, $cb_date, $cb_tags, $outstr);
+ }
+ else
+ {
+ weechat::print($highmon_buffer, $outstr);
+ }
}
elsif (weechat::config_get_plugin("output") eq "bar")
{
# Add time string
use POSIX qw(strftime);
- $time = strftime(weechat::config_string(weechat::config_get("weechat.look.buffer_time_format")), localtime);
+ if ($cb_date)
+ {
+ $time = strftime(weechat::config_string(weechat::config_get("weechat.look.buffer_time_format")), localtime($cb_date));
+ }
+ else
+ {
+ $time = strftime(weechat::config_string(weechat::config_get("weechat.look.buffer_time_format")), localtime);
+ }
# Colourise
if ($time =~ /\$\{(?:color:)?[\w,]+\}/) # Coloured string
{
}
# Check result of register, and attempt to behave in a sane manner
-if (!weechat::register("highmon", "KenjiE20", "2.4", "GPL3", "Highlight Monitor", "", ""))
+if (!weechat::register("highmon", "KenjiE20", "2.5", "GPL3", "Highlight Monitor", "", ""))
{
# Double load
weechat::print ("", "\tHighmon is already loaded");
#
-# Copyright (C) 2008-2013 Sebastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2010-2012 Nils Görs <weechatter@arcor.de>
+# Copyright (C) 2008-2014 Sebastien Helleu <flashcode@flashtux.org>
+# Copyright (C) 2010-2014 Nils Görs <weechatter@arcor.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# History:
#
+# 2014-09-30, arza <arza@arza.us>:
+# version 3.6: fix current line counter when options aren't found
+# 2014-06-03, nils_2 <weechatter@arcor.de>:
+# version 3.5: add new option "use_mute"
# 2014-01-30, stfn <stfnmd@gmail.com>:
# version 3.4: add new options "color_value_diff" and "color_value_diff_selected"
# 2014-01-16, luz <ne.tetewi@gmail.com>:
use strict;
my $PRGNAME = "iset";
-my $VERSION = "3.4";
+my $VERSION = "3.6";
my $DESCR = "Interactive Set for configuration options";
my $AUTHOR = "Sebastien Helleu <flashcode\@flashtux.org>";
my $LICENSE = "GPL3";
if ($iset_buffer ne "")
{
my $current_line_counter = "";
- $current_line_counter = ($current_line + 1) . "/" if (weechat::config_boolean($options_iset{"show_current_line"}) == 1);
+ if (weechat::config_boolean($options_iset{"show_current_line"}) == 1)
+ {
+ if (@options_names eq 0)
+ {
+ $current_line_counter = "0/";
+ }
+ else
+ {
+ $current_line_counter = ($current_line + 1) . "/";
+ }
+ }
my $show_filter = "";
if ($search_mode eq 0)
{
{
$quote = "\"" if ($options_types[$current_line] eq "string");
}
- weechat::buffer_set($iset_buffer, "input", "/set ".$options_names[$current_line]." ".$quote.$value.$quote);
+ my $set_command = "/set";
+ $set_command = "/mute " . $set_command if (weechat::config_boolean($options_iset{"use_mute"}) == 1);
+
+ weechat::buffer_set($iset_buffer, "input", $set_command." ".$options_names[$current_line]." ".$quote.$value.$quote);
weechat::command($iset_buffer, "/input move_beginning_of_line");
weechat::command($iset_buffer, "/input move_next_word");
weechat::command($iset_buffer, "/input move_next_word");
+ weechat::command($iset_buffer, "/input move_next_word") if (weechat::config_boolean($options_iset{"use_mute"}) == 1);
weechat::command($iset_buffer, "/input move_next_char");
weechat::command($iset_buffer, "/input move_next_char") if ($quote ne "");
}
$iset_config_file, $section_look,
"show_current_line", "boolean", "show current line in title bar.", "", 0, 0,
"on", "on", 0, "", "", "", "", "", "");
+ $options_iset{"use_mute"} = weechat::config_new_option(
+ $iset_config_file, $section_look,
+ "use_mute", "boolean", "/mute command will be used in input bar", "", 0, 0,
+ "off", "off", 0, "", "", "", "", "", "");
}
sub iset_config_reload_cb
#
-# plugins.conf -- weechat v0.4.3
+# plugins.conf -- weechat v1.0
#
[var]
fifo.fifo = "on"
+guile.check_license = "off"
lua.check_license = "off"
perl.beep.beep_command_dcc = "$bell"
perl.beep.beep_command_highlight = "$bell"
perl.highmon.alignment = "nchannel"
perl.highmon.away_only = "off"
perl.highmon.color_buf = "on"
+perl.highmon.first_run = "true"
perl.highmon.hotlist_show = "off"
perl.highmon.logging = "off"
perl.highmon.merge_private = "off"
#
-# relay.conf -- weechat v0.4.3
+# relay.conf -- weechat v1.0
#
[look]
[network]
allowed_ips = ""
bind_address = ""
+clients_purge_delay = 0
compression_level = 6
ipv6 = on
max_clients = 5
#
-# script.conf -- weechat v0.4.3
+# script.conf -- weechat v1.0
#
[look]
#
-# sec.conf -- weechat v0.4.3
+# sec.conf -- weechat v1.0
#
[crypt]
--- /dev/null
+#
+# trigger.conf -- weechat v1.0
+#
+
+[look]
+enabled = on
+monitor_strip_colors = off
+
+[color]
+flag_command = lightgreen
+flag_conditions = yellow
+flag_regex = lightcyan
+flag_return_code = lightmagenta
+regex = white
+replace = cyan
+trigger = green
+trigger_disabled = red
+
+[trigger]
+beep.arguments = ""
+beep.command = "/print -beep"
+beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
+beep.enabled = on
+beep.hook = print
+beep.regex = ""
+beep.return_code = ok
+cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
+cmd_pass.command = ""
+cmd_pass.conditions = ""
+cmd_pass.enabled = on
+cmd_pass.hook = modifier
+cmd_pass.regex = "==^((/(msg|quote) +nickserv +(id|identify|register|ghost +\S+|release +\S+|regain +\S+) +)|/oper +\S+ +|/quote +pass +|/set +\S*password\S* +|/secure +(passphrase|decrypt|set +\S+) +)(.*)==$1$.*+"
+cmd_pass.return_code = ok
+msg_auth.arguments = "5000|irc_message_auth"
+msg_auth.command = ""
+msg_auth.conditions = ""
+msg_auth.enabled = on
+msg_auth.hook = modifier
+msg_auth.regex = "==^(.*(id|identify|register|ghost +\S+|release +\S+) +)(.*)==$1$.*+"
+msg_auth.return_code = ok
+server_pass.arguments = "5000|input_text_display;5000|history_add"
+server_pass.command = ""
+server_pass.conditions = ""
+server_pass.enabled = on
+server_pass.hook = modifier
+server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5"
+server_pass.return_code = ok
#
-# weechat.conf -- weechat v0.4.3
+# weechat.conf -- weechat v1.0
#
[debug]
bar_more_left = "◀"
bar_more_right = "▶"
bar_more_up = "▲"
+bare_display_exit_on_input = on
+bare_display_time_format = "%H:%M"
buffer_auto_renumber = on
buffer_notify_default = all
buffer_position = end
highlight = ""
highlight_regex = ".*Ram-Z.*"
highlight_tags = ""
-hotlist_add_buffer_if_away = on
+hotlist_add_conditions = "${away} || ${buffer.num_displayed} == 0"
hotlist_buffer_separator = ", "
hotlist_count_max = 2
hotlist_count_min_msg = 2
hotlist_names_level = 12
hotlist_names_merged_buffers = off
hotlist_prefix = "H: "
+hotlist_remove = merged
hotlist_short_names = on
hotlist_sort = group_time_asc
hotlist_suffix = ""
status_more = 229
status_name = 121
status_name_ssl = 121
+status_nicklist_count = default
status_number = yellow
status_time = default
buffers.conditions = ""
buffers.filling_left_right = vertical
buffers.filling_top_bottom = columns_vertical
-buffers.hidden = on
+buffers.hidden = off
buffers.items = "buffers"
buffers.position = left
buffers.priority = 0
meta-wmeta-s = "/window swap"
meta-x = "/input zoom_merged_buffer"
meta-z = "/window zoom"
+ctrl-^ = "/input jump_last_buffer"
ctrl-_ = "/input undo"
[key_search]
@chat:q = "hsignal:chat_quote_prefix_message;/cursor stop"
[key_mouse]
+@bar(buffers):ctrl-wheeldown = "hsignal:buffers_mouse"
+@bar(buffers):ctrl-wheelup = "hsignal:buffers_mouse"
@bar(input):button2 = "/input grab_mouse_area"
@bar(nicklist):button1-gesture-down = "/bar scroll nicklist ${_window_number} +100%"
@bar(nicklist):button1-gesture-down-long = "/bar scroll nicklist ${_window_number} e"
#
-# xfer.conf -- weechat v0.4.3
+# xfer.conf -- weechat v1.0
#
[look]