From 3e4f4d3fe653c30f16d6b7fee1affb60a56acf05 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 4 Jan 2018 17:47:14 +0100 Subject: [PATCH] update weechat and show clock --- weechat/buflist.conf | 1 + weechat/fset.conf | 95 ++++++++++++++++++++++++++++++++++++++++++++ weechat/weechat.conf | 25 +++++++++++- 3 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 weechat/fset.conf diff --git a/weechat/buflist.conf b/weechat/buflist.conf index 7edf72c..f115ae1 100644 --- a/weechat/buflist.conf +++ b/weechat/buflist.conf @@ -10,6 +10,7 @@ # [look] +add_newline = on auto_scroll = 50 display_conditions = "${buffer.hidden}==0" enabled = off diff --git a/weechat/fset.conf b/weechat/fset.conf new file mode 100644 index 0000000..668266c --- /dev/null +++ b/weechat/fset.conf @@ -0,0 +1,95 @@ +# +# weechat -- fset.conf +# +# WARNING: It is NOT recommended to edit this file by hand, +# especially if WeeChat is running. +# +# Use /set or similar command to change settings in WeeChat. +# +# For more info, see: https://weechat.org/doc/quickstart +# + +[look] +auto_unmark = off +condition_catch_set = "${count} >= 1" +export_help_default = on +format_number = 1 +marked_string = "*" +scroll_horizontal = 10 +show_plugins_desc = off +sort = "~name" +unmarked_string = " " +use_color_value = off +use_keys = on +use_mute = off + +[format] +export_help = "# ${description2}" +export_option = "/set ${name} ${quoted_value}" +export_option_null = "/unset ${name}" +option1 = "" +option2 = "${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}" + +[color] +default_value = default +default_value_selected = white +description = default +description_selected = white +file = default +file_changed = brown +file_changed_selected = yellow +file_selected = white +help_default_value = white +help_description = default +help_name = white +help_quotes = darkgray +help_values = default +index = cyan +index_selected = lightcyan +line_marked_bg1 = default +line_marked_bg2 = default +line_selected_bg1 = blue +line_selected_bg2 = red +marked = brown +marked_selected = yellow +max = default +max_selected = white +min = default +min_selected = white +name = default +name_changed = brown +name_changed_selected = yellow +name_selected = white +option = default +option_changed = brown +option_changed_selected = yellow +option_selected = white +parent_name = default +parent_name_selected = white +parent_value = cyan +parent_value_selected = lightcyan +quotes = darkgray +quotes_changed = default +quotes_changed_selected = white +quotes_selected = default +section = default +section_changed = brown +section_changed_selected = yellow +section_selected = white +string_values = default +string_values_selected = white +title_count_options = cyan +title_current_option = lightcyan +title_filter = yellow +title_marked_options = lightgreen +title_sort = white +type = green +type_selected = lightgreen +unmarked = default +unmarked_selected = white +value = cyan +value_changed = brown +value_changed_selected = yellow +value_selected = lightcyan +value_undef = magenta +value_undef_selected = lightmagenta diff --git a/weechat/weechat.conf b/weechat/weechat.conf index 269265c..8fb3c73 100644 --- a/weechat/weechat.conf +++ b/weechat/weechat.conf @@ -119,6 +119,7 @@ read_marker = line read_marker_always_show = off read_marker_string = "- " save_config_on_exit = on +save_config_with_fsync = off save_layout_on_exit = none scroll_amount = 3 scroll_bottom_after_switch = off @@ -255,6 +256,20 @@ buflist.separator = on buflist.size = 0 buflist.size_max = 0 buflist.type = root +fset.color_bg = default +fset.color_delim = cyan +fset.color_fg = default +fset.conditions = "${buffer.full_name} == fset.fset" +fset.filling_left_right = vertical +fset.filling_top_bottom = horizontal +fset.hidden = off +fset.items = "fset" +fset.position = top +fset.priority = 0 +fset.separator = on +fset.size = 3 +fset.size_max = 3 +fset.type = window hotlist.color_bg = default hotlist.color_delim = default hotlist.color_fg = default @@ -276,7 +291,7 @@ input.conditions = "" input.filling_left_right = vertical input.filling_top_bottom = horizontal input.hidden = off -input.items = ">>,[input_search],[input_paste],input_text" +input.items = "time,>>,[input_search],[input_paste],input_text" input.position = bottom input.priority = 1000 input.separator = off @@ -650,6 +665,10 @@ meta2-D = "/cursor move left" @bar(nicklist):button1-gesture-down-long = "/bar scroll nicklist ${_window_number} e" @bar(nicklist):button1-gesture-up = "/bar scroll nicklist ${_window_number} -100%" @bar(nicklist):button1-gesture-up-long = "/bar scroll nicklist ${_window_number} b" +@chat(fset.fset):button1 = "/window ${_window_number};/fset -go ${_chat_line_y}" +@chat(fset.fset):button2* = "hsignal:fset_mouse" +@chat(fset.fset):wheeldown = "/fset -down 5" +@chat(fset.fset):wheelup = "/fset -up 5" @chat(script.scripts):button1 = "/window ${_window_number};/script go ${_chat_line_y}" @chat(script.scripts):button2 = "/window ${_window_number};/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}" @chat(script.scripts):wheeldown = "/script down 5" @@ -663,6 +682,10 @@ meta2-D = "/cursor move left" @item(buffers):button2* = "hsignal:buffers_mouse" @item(buflist):button1* = "hsignal:buflist_mouse" @item(buflist):button2* = "hsignal:buflist_mouse" +@item(buflist2):button1* = "hsignal:buflist_mouse" +@item(buflist2):button2* = "hsignal:buflist_mouse" +@item(buflist3):button1* = "hsignal:buflist_mouse" +@item(buflist3):button2* = "hsignal:buflist_mouse" @bar:wheeldown = "/bar scroll ${_bar_name} ${_window_number} +20%" @bar:wheelup = "/bar scroll ${_bar_name} ${_window_number} -20%" @chat:button1 = "/window ${_window_number}"