all: cleanup
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jan 2024 09:43:46 +0200
10 files changed,
12 insertions(+),
1480 deletions(-)
M
nix/darwin/com.googlecode.iterm2.plist
→
nix/darwin/com.googlecode.iterm2.plist
@@ -1328,6 +1328,8 @@ <real>0.95686274509803926</real>
</dict> <key>Send Code When Idle</key> <false/> + <key>Set Local Environment Vars</key> + <true/> <key>Shortcut</key> <string></string> <key>Show Status Bar</key>
M
nix/programs/bash.nix
→
nix/programs/bash.nix
@@ -47,6 +47,7 @@ EDITOR = "nvim";
MANPAGER = "nvim +Man!"; PATH = "/etc/profiles/per-user/icy/bin:$PATH:$HOME/go/bin:$HOME/bin"; CLICOLOR = "1"; + LANG = "en_US.UTF-8"; };@@ -109,6 +110,11 @@
bind -m emacs-standard -x '"\C-r": __fzy_history__' complete -cf doas + + if command -v kubectl &> /dev/null; then + source <(kubectl completion bash) + complete -F __start_kubectl k + fi ''; };
M
ssh/config
→
ssh/config
@@ -1,3 +1,5 @@
+Include /Users/icy/.colima/ssh_config + Host * ServerAliveInterval 180 ServerAliveCountMax 3@@ -21,11 +23,6 @@
Host jade Hostname jade User ubuntu - IdentityFile ~/.ssh/id_rsa - -Host pantwo - Hostname 100.64.1.3 - User icy IdentityFile ~/.ssh/id_rsa Host lapis2@@ -33,11 +30,6 @@ Hostname 150.230.131.193
User icy IdentityFile ~/.ssh/id_rsa -Host methi - Hostname 152.70.78.124 - User icy - IdentityFile ~/.ssh/id_ed25519 - Host crimson Hostname 144.24.148.230 User icy@@ -51,7 +43,9 @@
Host denna Hostname denna IdentityFile ~/.ssh/id_ed25519 + IdentityFile ~/.ssh/upcloud Host egg Hostname egg IdentityFile ~/.ssh/id_ed25519 + IdentityFile ~/.ssh/upcloud
D
weechat/buflist.conf
@@ -1,41 +0,0 @@
-# -# weechat -- buflist.conf -# -# WARNING: It is NOT recommended to edit this file by hand, -# especially if WeeChat is running. -# -# Use commands like /set or /fset to change settings in WeeChat. -# -# For more info, see: https://weechat.org/doc/quickstart -# - -[look] -add_newline = on -auto_scroll = 50 -display_conditions = "${buffer.hidden}==0" -enabled = on -mouse_jump_visited_buffer = off -mouse_move_buffer = on -mouse_wheel = on -nick_prefix = off -nick_prefix_empty = on -signals_refresh = "" -sort = "number,-active" -use_items = 1 - -[format] -buffer = "${indent}${format_nick_prefix}${color_hotlist}${format_name}" -buffer_current = "${color:,yellow}${format_buffer}" -hotlist = " ${color:green}(${hotlist}${color:green})" -hotlist_highlight = "${color:magenta}" -hotlist_low = "${color:white}" -hotlist_message = "${color:brown}" -hotlist_none = "${color:default}" -hotlist_private = "${color:green}" -hotlist_separator = "${color:default}," -indent = " " -lag = " ${color:green}[${color:brown}${lag}${color:green}]" -name = "${name}" -nick_prefix = "${color_nick_prefix}${nick_prefix}" -number = "${color:green}${number}${if:${number_displayed}?.: }" -tls_version = " ${color:default}(${if:${tls_version}==TLS1.3?${color:green}:${if:${tls_version}==TLS1.2?${color:yellow}:${color:red}}}${translate:${tls_version}}${color:default})"
D
weechat/fset.conf
@@ -1,96 +0,0 @@
-# -# weechat -- fset.conf -# -# WARNING: It is NOT recommended to edit this file by hand, -# especially if WeeChat is running. -# -# Use commands like /set or /fset to change settings in WeeChat. -# -# For more info, see: https://weechat.org/doc/quickstart -# - -[look] -auto_refresh = "*" -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
D
weechat/gt.py
@@ -1,12 +0,0 @@
-import weechat, re -# modifies the string about to be sent to the IRC server -# thus, not interfering with non-IRC buffer text like wee-slack - -weechat.register( - "gt.py", "icyphox", "1.0", "MIT", "greentexting like the hacker called 4chan", "", "" -) - -def greentext_cb(data, modifier, modifier_data, string): - return re.sub(r">(?! )", "\x033>", string) - -weechat.hook_modifier("irc_out1_privmsg", "greentext_cb", "")
D
weechat/irc.conf
@@ -1,345 +0,0 @@
-# -# weechat -- irc.conf -# -# WARNING: It is NOT recommended to edit this file by hand, -# especially if WeeChat is running. -# -# Use commands like /set or /fset to change settings in WeeChat. -# -# For more info, see: https://weechat.org/doc/quickstart -# - -[look] -buffer_open_before_autojoin = on -buffer_open_before_join = off -buffer_switch_autojoin = on -buffer_switch_join = on -color_nicks_in_names = off -color_nicks_in_nicklist = off -color_nicks_in_server_messages = on -color_pv_nick_like_channel = on -ctcp_time_format = "%a, %d %b %Y %T %z" -display_account_message = on -display_away = local -display_ctcp_blocked = on -display_ctcp_reply = on -display_ctcp_unknown = on -display_extended_join = on -display_host_join = on -display_host_join_local = on -display_host_quit = on -display_join_message = "329,332,333,366" -display_old_topic = on -display_pv_away_once = on -display_pv_back = on -display_pv_warning_address = off -highlight_channel = "$nick" -highlight_pv = "$nick" -highlight_server = "$nick" -highlight_tags_restrict = "irc_privmsg,irc_notice" -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 -nick_completion_smart = speakers -nick_mode = prefix -nick_mode_empty = off -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 -pv_buffer = independent -pv_tags = "notify_private" -raw_messages = 256 -server_buffer = independent -smart_filter = on -smart_filter_account = on -smart_filter_chghost = on -smart_filter_delay = 5 -smart_filter_join = on -smart_filter_join_unmask = 30 -smart_filter_mode = "+" -smart_filter_nick = on -smart_filter_quit = on -temporary_servers = off -topic_strip_colors = off -typing_status_nicks = off -typing_status_self = off - -[color] -input_nick = lightcyan -item_channel_modes = default -item_lag_counting = default -item_lag_finished = yellow -item_nick_modes = default -item_tls_version_deprecated = yellow -item_tls_version_insecure = red -item_tls_version_ok = green -message_account = cyan -message_chghost = brown -message_join = green -message_kick = red -message_quit = red -mirc_remap = "1,-1:darkgray" -nick_prefixes = "y:red;q:red;a:cyan;o:green;h:magenta;v:yellow;*:blue" -notice = green -reason_kick = default -reason_quit = default -topic_current = default -topic_new = white -topic_old = default - -[network] -autoreconnect_delay_growing = 2 -autoreconnect_delay_max = 600 -ban_mask_default = "*!$ident@$host" -colors_receive = on -colors_send = on -lag_check = 60 -lag_max = 1800 -lag_min_show = 500 -lag_reconnect = 300 -lag_refresh_interval = 1 -notify_check_ison = 1 -notify_check_whois = 5 -sasl_fail_unavailable = on -send_unknown_commands = off -whois_double_nick = off - -[msgbuffer] - -[ctcp] - -[ignore] -ignore = *;*;^kekbot$ - -[server_default] -addresses = "" -anti_flood_prio_high = 2 -anti_flood_prio_low = 2 -autoconnect = off -autojoin = "" -autoreconnect = on -autoreconnect_delay = 10 -autorejoin = off -autorejoin_delay = 30 -away_check = 0 -away_check_max_nicks = 25 -capabilities = "" -charset_message = message -command = "" -command_delay = 0 -connection_timeout = 60 -default_chantypes = "#&" -ipv6 = on -local_hostname = "" -msg_kick = "" -msg_part = "WeeChat ${info:version}" -msg_quit = "WeeChat ${info:version}" -nicks = "icy,icy1,icy2,icy3,icy4" -nicks_alternate = on -notify = "" -password = "" -proxy = "" -realname = "" -sasl_fail = continue -sasl_key = "" -sasl_mechanism = plain -sasl_password = "" -sasl_timeout = 15 -sasl_username = "" -split_msg_max_length = 512 -ssl = off -ssl_cert = "" -ssl_dhkey_size = 2048 -ssl_fingerprint = "" -ssl_password = "" -ssl_priorities = "NORMAL:-VERS-SSL3.0" -ssl_verify = on -usermode = "" -username = "icy" - -[server] -rizon.addresses = "irc.icyphox.sh/6666" -rizon.proxy -rizon.ipv6 -rizon.ssl -rizon.ssl_cert -rizon.ssl_password -rizon.ssl_priorities -rizon.ssl_dhkey_size -rizon.ssl_fingerprint -rizon.ssl_verify -rizon.password = "${sec.data.znc}" -rizon.capabilities -rizon.sasl_mechanism -rizon.sasl_username -rizon.sasl_password -rizon.sasl_key -rizon.sasl_timeout -rizon.sasl_fail -rizon.autoconnect -rizon.autoreconnect -rizon.autoreconnect_delay -rizon.nicks -rizon.nicks_alternate -rizon.username = "icyphox/rizon" -rizon.realname -rizon.local_hostname -rizon.usermode -rizon.command -rizon.command_delay -rizon.autojoin -rizon.autorejoin -rizon.autorejoin_delay -rizon.connection_timeout -rizon.anti_flood_prio_high -rizon.anti_flood_prio_low -rizon.away_check -rizon.away_check_max_nicks -rizon.msg_kick -rizon.msg_part -rizon.msg_quit -rizon.notify -rizon.split_msg_max_length -rizon.charset_message -rizon.default_chantypes -deavmi.addresses = "irc.icyphox.sh/6666" -deavmi.proxy -deavmi.ipv6 -deavmi.ssl -deavmi.ssl_cert -deavmi.ssl_password -deavmi.ssl_priorities -deavmi.ssl_dhkey_size -deavmi.ssl_fingerprint -deavmi.ssl_verify -deavmi.password = "${sec.data.znc}" -deavmi.capabilities -deavmi.sasl_mechanism -deavmi.sasl_username -deavmi.sasl_password -deavmi.sasl_key -deavmi.sasl_timeout -deavmi.sasl_fail -deavmi.autoconnect -deavmi.autoreconnect -deavmi.autoreconnect_delay -deavmi.nicks -deavmi.nicks_alternate -deavmi.username = "icyphox/deavmi" -deavmi.realname -deavmi.local_hostname -deavmi.usermode -deavmi.command -deavmi.command_delay -deavmi.autojoin -deavmi.autorejoin -deavmi.autorejoin_delay -deavmi.connection_timeout -deavmi.anti_flood_prio_high -deavmi.anti_flood_prio_low -deavmi.away_check -deavmi.away_check_max_nicks -deavmi.msg_kick -deavmi.msg_part -deavmi.msg_quit -deavmi.notify -deavmi.split_msg_max_length -deavmi.charset_message -deavmi.default_chantypes -freenode.addresses = "irc.icyphox.sh/6666" -freenode.proxy -freenode.ipv6 -freenode.ssl -freenode.ssl_cert -freenode.ssl_password -freenode.ssl_priorities -freenode.ssl_dhkey_size -freenode.ssl_fingerprint -freenode.ssl_verify -freenode.password = "${sec.data.znc}" -freenode.capabilities -freenode.sasl_mechanism -freenode.sasl_username -freenode.sasl_password -freenode.sasl_key -freenode.sasl_timeout -freenode.sasl_fail -freenode.autoconnect -freenode.autoreconnect -freenode.autoreconnect_delay -freenode.nicks -freenode.nicks_alternate -freenode.username = "icyphox/freenode" -freenode.realname -freenode.local_hostname -freenode.usermode -freenode.command -freenode.command_delay -freenode.autojoin -freenode.autorejoin -freenode.autorejoin_delay -freenode.connection_timeout -freenode.anti_flood_prio_high -freenode.anti_flood_prio_low -freenode.away_check -freenode.away_check_max_nicks -freenode.msg_kick -freenode.msg_part -freenode.msg_quit -freenode.notify -freenode.split_msg_max_length -freenode.charset_message -freenode.default_chantypes -libera.addresses = "irc.icyphox.sh/6666" -libera.proxy -libera.ipv6 -libera.ssl -libera.ssl_cert -libera.ssl_password -libera.ssl_priorities -libera.ssl_dhkey_size -libera.ssl_fingerprint -libera.ssl_verify -libera.password = "${sec.data.znc}" -libera.capabilities -libera.sasl_mechanism -libera.sasl_username -libera.sasl_password -libera.sasl_key -libera.sasl_timeout -libera.sasl_fail -libera.autoconnect -libera.autoreconnect -libera.autoreconnect_delay -libera.nicks -libera.nicks_alternate -libera.username = "icyphox/libera" -libera.realname -libera.local_hostname -libera.usermode -libera.command -libera.command_delay -libera.autojoin -libera.autorejoin -libera.autorejoin_delay -libera.connection_timeout -libera.anti_flood_prio_high -libera.anti_flood_prio_low -libera.away_check -libera.away_check_max_nicks -libera.msg_kick -libera.msg_part -libera.msg_quit -libera.notify -libera.split_msg_max_length -libera.charset_message -libera.default_chantypes
D
weechat/sec.conf
@@ -1,20 +0,0 @@
-# -# weechat -- sec.conf -# -# WARNING: It is NOT recommended to edit this file by hand, -# especially if WeeChat is running. -# -# Use commands like /set or /fset to change settings in WeeChat. -# -# For more info, see: https://weechat.org/doc/quickstart -# - -[crypt] -cipher = aes256 -hash_algo = sha256 -passphrase_command = "pw -s weechat" -salt = on - -[data] -__passphrase__ = on -znc = "1C0334EF5FB460AC8AC9ABBBF378355CFB7769F96E1318F508142675DDA821AEB3A51AF098B2C3C899D0EAC78CA93389CDE07C"
D
weechat/weechat.conf
@@ -1,845 +0,0 @@
-# -# weechat -- weechat.conf -# -# WARNING: It is NOT recommended to edit this file by hand, -# especially if WeeChat is running. -# -# Use commands like /set or /fset to change settings in WeeChat. -# -# For more info, see: https://weechat.org/doc/quickstart -# - -[debug] - -[startup] -command_after_plugins = "" -command_before_plugins = "" -display_logo = on -display_version = on -sys_rlimit = "" - -[look] -align_end_of_lines = message -align_multiline_words = on -bar_more_down = "++" -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 -buffer_search_case_sensitive = off -buffer_search_force_default = off -buffer_search_regex = off -buffer_search_where = prefix_message -buffer_time_format = "" -buffer_time_same = "" -color_basic_force_bold = off -color_inactive_buffer = on -color_inactive_message = on -color_inactive_prefix = on -color_inactive_prefix_buffer = on -color_inactive_time = off -color_inactive_window = on -color_nick_offline = off -color_pairs_auto_reset = 5 -color_real_white = on -command_chars = "" -command_incomplete = off -confirm_quit = off -confirm_upgrade = off -day_change = on -day_change_message_1date = "-- %a, %d %b %Y --" -day_change_message_2dates = "-- %%a, %%d %%b %%Y (%a, %d %b %Y) --" -eat_newline_glitch = off -emphasized_attributes = "" -highlight = "icyphox,icy" -highlight_regex = "" -highlight_tags = "" -hotlist_add_conditions = "${away} || ${buffer} != ${window.buffer}" -hotlist_buffer_separator = ", " -hotlist_count_max = 2 -hotlist_count_min_msg = 2 -hotlist_names_count = 3 -hotlist_names_length = 0 -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 = "" -hotlist_unique_numbers = on -hotlist_update_on_buffer_switch = on -input_cursor_scroll = 20 -input_share = none -input_share_overwrite = off -input_undo_max = 32 -item_away_message = on -item_buffer_filter = "*" -item_buffer_zoom = "!" -item_mouse_status = "M" -item_time_format = "%I.%M%p" -jump_current_to_previous_buffer = on -jump_previous_buffer_when_closing = on -jump_smart_back_to_buffer = on -key_bind_safe = on -key_grab_delay = 800 -mouse = on -mouse_timer_delay = 100 -nick_color_force = "" -nick_color_hash = djb2 -nick_color_hash_salt = "" -nick_color_stop_chars = "_|[" -nick_prefix = " " -nick_suffix = "" -paste_auto_add_newline = on -paste_bracketed = on -paste_bracketed_timer_delay = 10 -paste_max_lines = -1 -prefix_action = "| " -prefix_align = right -prefix_align_max = 15 -prefix_align_min = 0 -prefix_align_more = " " -prefix_align_more_after = on -prefix_buffer_align = right -prefix_buffer_align_max = 0 -prefix_buffer_align_more = " " -prefix_buffer_align_more_after = on -prefix_error = " " -prefix_join = " " -prefix_network = " - " -prefix_quit = " " -prefix_same_nick = " " -prefix_same_nick_middle = "" -prefix_suffix = "" -quote_nick_prefix = "<" -quote_nick_suffix = ">" -quote_time_format = "%H%M" -read_marker = line -read_marker_always_show = off -read_marker_string = "" -read_marker_update_on_buffer_switch = on -save_config_on_exit = on -save_config_with_fsync = off -save_layout_on_exit = buffers -scroll_amount = 3 -scroll_bottom_after_switch = off -scroll_page_percent = 100 -search_text_not_found_alert = on -separator_horizontal = " " -separator_vertical = " " -tab_width = 1 -time_format = "%a, %d %b %Y %T" -window_auto_zoom = off -window_separator_horizontal = off -window_separator_vertical = off -window_title = "WeeChat ${info:version}" -word_chars_highlight = "!\u00A0,-,_,|,alnum" -word_chars_input = "!\u00A0,-,_,|,alnum" - -[palette] - -[color] -bar_more = gray -chat = default -chat_bg = default -chat_buffer = white -chat_channel = white -chat_day_change = cyan -chat_delimiters = gray -chat_highlight = magenta -chat_highlight_bg = black -chat_host = cyan -chat_inactive_buffer = darkgray -chat_inactive_window = darkgray -chat_nick = lightcyan -chat_nick_colors = "8" -chat_nick_offline = darkgray -chat_nick_offline_highlight = darkgray -chat_nick_offline_highlight_bg = 3 -chat_nick_other = cyan -chat_nick_prefix = green -chat_nick_self = 6 -chat_nick_suffix = green -chat_prefix_action = 7 -chat_prefix_buffer = green -chat_prefix_buffer_inactive_buffer = default -chat_prefix_error = red -chat_prefix_join = 2 -chat_prefix_more = 7 -chat_prefix_network = cyan -chat_prefix_quit = 1 -chat_prefix_suffix = white -chat_read_marker = 11 -chat_read_marker_bg = default -chat_server = magenta -chat_tags = red -chat_text_found = 3 -chat_text_found_bg = lightmagenta -chat_time = darkgray -chat_time_delimiters = darkgray -chat_value = cyan -chat_value_null = blue -emphasized = 3 -emphasized_bg = 170 -input_actions = 46 -input_text_not_found = red -item_away = 3 -nicklist_away = cyan -nicklist_group = 8 -separator = 11 -status_count_highlight = 170 -status_count_msg = 130 -status_count_other = default -status_count_private = 113 -status_data_highlight = lightmagenta -status_data_msg = 3 -status_data_other = default -status_data_private = 46 -status_filter = 113 -status_more = 3 -status_mouse = 113 -status_name = white -status_name_ssl = 46 -status_nicklist_count = default -status_number = 3 -status_time = default - -[completion] -base_word_until_cursor = on -command_inline = on -default_template = "%(nicks)|%(irc_channels)" -nick_add_space = on -nick_case_sensitive = off -nick_completer = ": " -nick_first_only = off -nick_ignore_chars = "[]-^" -partial_completion_alert = on -partial_completion_command = off -partial_completion_command_arg = off -partial_completion_count = on -partial_completion_other = off -partial_completion_templates = "config_options" - -[history] -display_default = 0 -max_buffer_lines_minutes = 0 -max_buffer_lines_number = 4096 -max_commands = 100 -max_visited_buffers = 50 - -[proxy] -emerald.address = "127.0.0.1" -emerald.ipv6 = off -emerald.password = "" -emerald.port = 8008 -emerald.type = socks5 -emerald.username = "" - -[network] -connection_timeout = 60 -gnutls_ca_system = on -gnutls_ca_user = "" -gnutls_handshake_timeout = 30 -proxy_curl = "" - -[plugin] -autoload = "*" -debug = off -extension = ".so" -path = "%h/plugins" -save_config_on_unload = on - -[signal] -sighup = "${if:${info:weechat_headless}?/reload:/quit -yes}" -sigquit = "/quit -yes" -sigterm = "/quit -yes" -sigusr1 = "" -sigusr2 = "" - -[bar] -buddylist.color_bg = default -buddylist.color_bg_inactive = default -buddylist.color_delim = default -buddylist.color_fg = default -buddylist.conditions = "" -buddylist.filling_left_right = vertical -buddylist.filling_top_bottom = horizontal -buddylist.hidden = on -buddylist.items = "buddylist" -buddylist.position = left -buddylist.priority = 0 -buddylist.separator = on -buddylist.size = 0 -buddylist.size_max = 0 -buddylist.type = root -buffers.color_bg = 0 -buffers.color_bg_inactive = default -buffers.color_delim = default -buffers.color_fg = default -buffers.conditions = "" -buffers.filling_left_right = columns_vertical -buffers.filling_top_bottom = columns_vertical -buffers.hidden = on -buffers.items = "buflist" -buffers.position = left -buffers.priority = 0 -buffers.separator = on -buffers.size = 0 -buffers.size_max = 0 -buffers.type = root -buflist.color_bg = 0 -buflist.color_bg_inactive = default -buflist.color_delim = lightcyan -buflist.color_fg = red -buflist.conditions = "" -buflist.filling_left_right = vertical -buflist.filling_top_bottom = horizontal -buflist.hidden = off -buflist.items = "buflist" -buflist.position = left -buflist.priority = 0 -buflist.separator = on -buflist.size = 0 -buflist.size_max = 0 -buflist.type = root -fset.color_bg = default -fset.color_bg_inactive = 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 -input.color_bg = default -input.color_bg_inactive = default -input.color_delim = 7 -input.color_fg = 7 -input.conditions = "" -input.filling_left_right = vertical -input.filling_top_bottom = horizontal -input.hidden = off -input.items = "buffer_name,input_text" -input.position = bottom -input.priority = 1000 -input.separator = on -input.size = 0 -input.size_max = 0 -input.type = window -isetbar.color_bg = default -isetbar.color_bg_inactive = default -isetbar.color_delim = cyan -isetbar.color_fg = default -isetbar.conditions = "" -isetbar.filling_left_right = vertical -isetbar.filling_top_bottom = horizontal -isetbar.hidden = on -isetbar.items = "isetbar_help" -isetbar.position = top -isetbar.priority = 0 -isetbar.separator = on -isetbar.size = 3 -isetbar.size_max = 3 -isetbar.type = window -nicklist.color_bg = default -nicklist.color_bg_inactive = default -nicklist.color_delim = cyan -nicklist.color_fg = 8 -nicklist.conditions = "nicklist" -nicklist.filling_left_right = vertical -nicklist.filling_top_bottom = columns_vertical -nicklist.hidden = off -nicklist.items = "buffer_nicklist" -nicklist.position = right -nicklist.priority = 200 -nicklist.separator = on -nicklist.size = 0 -nicklist.size_max = 0 -nicklist.type = window -status.color_bg = 10 -status.color_bg_inactive = default -status.color_delim = cyan -status.color_fg = default -status.conditions = "" -status.filling_left_right = vertical -status.filling_top_bottom = horizontal -status.hidden = on -status.items = "[time],[buffer_count],[buffer_plugin],buffer_number+:+buffer_name+{buffer_nicklist_count}+buffer_filter,[lag],[hotlist],completion,scroll" -status.position = bottom -status.priority = 500 -status.separator = off -status.size = 1 -status.size_max = 0 -status.type = window -title.color_bg = 10 -title.color_bg_inactive = default -title.color_delim = cyan -title.color_fg = default -title.conditions = "" -title.filling_left_right = vertical -title.filling_top_bottom = horizontal -title.hidden = on -title.items = "buffer_title" -title.position = top -title.priority = 500 -title.separator = off -title.size = 1 -title.size_max = 0 -title.type = window - -[layout] -default.buffer = "core;weechat;1" -default.buffer = "irc;server.rizon;2" -default.buffer = "irc;rizon.#buddy;3" -default.buffer = "irc;rizon.#rice;4" -default.buffer = "irc;rizon.#taigobot-test;5" -default.buffer = "irc;rizon.#homescreen;6" -default.buffer = "irc;rizon.#bullshit;7" -default.buffer = "irc;rizon.*clientbuffer;8" -default.buffer = "irc;server.libera;9" -default.buffer = "irc;libera.#lobsters;10" -default.buffer = "irc;libera.#openbsd;11" -default.buffer = "irc;libera.##crustaceans;12" -default.buffer = "irc;libera.#linux;13" -default.buffer = "irc;libera.#python;14" -default.buffer = "irc;libera.#go-nuts;15" -default.buffer = "irc;libera.#kubernetes;16" -default.buffer = "irc;libera.#kisslinux;17" -default.buffer = "irc;libera.#neovim;18" -default.buffer = "irc;libera.#nixers;19" -default.buffer = "irc;libera.#security;20" -default.buffer = "irc;libera.#opsec;21" -default.buffer = "irc;libera.#plan9;22" -default.buffer = "irc;libera.#libera;23" -default.buffer = "irc;libera.##github;24" -default.buffer = "irc;libera.#gnupg;25" -default.buffer = "irc;libera.#c;26" -default.buffer = "irc;libera.#xorg;27" -default.buffer = "irc;libera.#docker;28" -default.buffer = "irc;libera.#nixos;29" -default.buffer = "irc;libera.*clientbuffer;30" -default.window = "1;0;0;0;irc;rizon.Carp" -default.current = on - -[notify] -python.bigtree-social.slack.com.#backend = all -python.bigtree-social.slack.com.#bigtree = all -python.bigtree-social.slack.com.#design = all -python.bigtree-social.slack.com.#dev = all -python.bigtree-social.slack.com.#general = all -python.bigtree-social.slack.com.#innerjourney = all -python.bigtree-social.slack.com.#legal = all -python.bigtree-social.slack.com.#random = all -python.bigtree-social.slack.com.#tech = all -python.bigtree-social.slack.com.AbhishekRajasundaram = all -python.bigtree-social.slack.com.Anirudh = all -python.bigtree-social.slack.com.Dish = all -python.bigtree-social.slack.com.GitHub = all -python.bigtree-social.slack.com.GoogleCalendar = all -python.bigtree-social.slack.com.jitsi_meet = all -python.bigtree-social.slack.com.Kavya = all -python.bigtree-social.slack.com.Prashant = all -python.bigtree-social.slack.com.Slackbot = all -python.bigtree-social.slack.com.trello = all -python.bigtree-social.slack.com.Vishesh = all -python.makera-org.slack.com.#backend = all -python.makera-org.slack.com.#bugs = all -python.makera-org.slack.com.#celebrations = all -python.makera-org.slack.com.#design = all -python.makera-org.slack.com.#dev = all -python.makera-org.slack.com.#general = all -python.makera-org.slack.com.#innerjourney = all -python.makera-org.slack.com.#legal = all -python.makera-org.slack.com.#makera = all -python.makera-org.slack.com.#pilotxaic = all -python.makera-org.slack.com.#random = all -python.makera-org.slack.com.#ycombinator = all -python.makera-org.slack.com.Abhishek = all -python.makera-org.slack.com.Abhishek,Dish,Kauts = all -python.makera-org.slack.com.Abhishek,Kauts = all -python.makera-org.slack.com.AbhishekRajasundaram = all -python.makera-org.slack.com.Anirudh = all -python.makera-org.slack.com.Dish = all -python.makera-org.slack.com.GitHub = highlight -python.makera-org.slack.com.GoogleCalendar = all -python.makera-org.slack.com.Kauts = all -python.makera-org.slack.com.Kavya = all -python.makera-org.slack.com.Srini = all -python.makera-org.slack.com.Vishesh = all -python.slack.ory-hq.#sre-production-notifications = highlight -python.teamcometchat.slack.com.#general = all -python.teamcometchat.slack.com.#product-releases = all -python.teamcometchat.slack.com.#random = all -python.teamcometchat.slack.com.#spotlight = all -python.teamcometchat.slack.com.&breakouts-pro = all -python.teamcometchat.slack.com.&hipaa = all -python.teamcometchat.slack.com.&interns-pro = all -python.teamcometchat.slack.com.&webrtc-backend-pro = all -python.teamcometchat.slack.com.&xmpp-pro = all -python.teamcometchat.slack.com.Aashay = all -python.teamcometchat.slack.com.AjayGajra = all -python.teamcometchat.slack.com.AjayGajra,Bosky,KetanYekale,RaviRanjan = all -python.teamcometchat.slack.com.AjayPrabhakar = all -python.teamcometchat.slack.com.Anirudh = all -python.teamcometchat.slack.com.AnujGarg = all -python.teamcometchat.slack.com.BaalajiBalasubramani = all -python.teamcometchat.slack.com.bosky = all -python.teamcometchat.slack.com.Bosky,donut = all -python.teamcometchat.slack.com.donut = all -python.teamcometchat.slack.com.JitvarPatil,donut = all -python.teamcometchat.slack.com.KetanYekale = all -python.teamcometchat.slack.com.MayurBhandari,donut = all -python.teamcometchat.slack.com.PragatiVerma = all -python.teamcometchat.slack.com.PrathameshMajgaonkar = all -python.teamcometchat.slack.com.PrathameshMajgaonkar,RaviRanjan = all -python.teamcometchat.slack.com.RaviRanjan = all -python.teamcometchat.slack.com.Slackbot = all -python.teamcometchat.slack.com.standuply = all -python.teamcometchat.slack.com.Taru = all - -[filter] -irc_smart = on;*;irc_smart_filter;* -freenode_spam = on;*;*;THIS CHANNEL HAS MOVED TO IRC.FREENODE.NET - -[key] -ctrl-? = "/input delete_previous_char" -ctrl-A = "/input move_beginning_of_line" -ctrl-B = "/input move_previous_char" -ctrl-Cb = "/input insert \x02" -ctrl-Cc = "/input insert \x03" -ctrl-Ci = "/input insert \x1D" -ctrl-Co = "/input insert \x0F" -ctrl-Cr = "/input insert \x12" -ctrl-Cu = "/input insert \x15" -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-I = "/input complete_next" -ctrl-J = "/input magic_enter" -ctrl-K = "/input delete_end_of_line" -ctrl-L = "/window refresh" -ctrl-M = "/input return" -ctrl-N = "/buffer +1" -ctrl-P = "/buffer -1" -ctrl-R = "/input search_text" -ctrl-Sctrl-U = "/input set_unread" -ctrl-T = "/input transpose_chars" -ctrl-U = "/input delete_beginning_of_line" -ctrl-W = "/input delete_previous_word" -ctrl-X = "/input switch_active_buffer" -ctrl-Y = "/input clipboard_paste" -meta-ctrl-M = "/input insert \n" -meta-meta-OP = "/bar scroll buflist * b" -meta-meta-OQ = "/bar scroll buflist * e" -meta-meta2-11~ = "/bar scroll buflist * b" -meta-meta2-12~ = "/bar scroll buflist * e" -meta-meta2-1~ = "/window scroll_top" -meta-meta2-23~ = "/bar scroll nicklist * yb" -meta-meta2-24~ = "/bar scroll nicklist * ye" -meta-meta2-4~ = "/window scroll_bottom" -meta-meta2-5~ = "/window scroll_up" -meta-meta2-6~ = "/window scroll_down" -meta-meta2-7~ = "/window scroll_top" -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-0 = "/buffer *10" -meta-1 = "/buffer *1" -meta-2 = "/buffer *2" -meta-3 = "/buffer *3" -meta-4 = "/buffer *4" -meta-5 = "/buffer *5" -meta-6 = "/buffer *6" -meta-7 = "/buffer *7" -meta-8 = "/buffer *8" -meta-9 = "/buffer *9" -meta-< = "/input jump_previously_visited_buffer" -meta-= = "/filter toggle" -meta-> = "/input jump_next_visited_buffer" -meta-B = "/buflist toggle" -meta-OA = "/input history_global_previous" -meta-OB = "/input history_global_next" -meta-OC = "/input move_next_word" -meta-OD = "/input move_previous_word" -meta-OF = "/input move_end_of_line" -meta-OH = "/input move_beginning_of_line" -meta-OP = "/bar scroll buflist * -100%" -meta-OQ = "/bar scroll buflist * +100%" -meta-Oa = "/input history_global_previous" -meta-Ob = "/input history_global_next" -meta-Oc = "/input move_next_word" -meta-Od = "/input move_previous_word" -meta2-11^ = "/bar scroll buflist * -100%" -meta2-11~ = "/bar scroll buflist * -100%" -meta2-12^ = "/bar scroll buflist * +100%" -meta2-12~ = "/bar scroll buflist * +100%" -meta2-15~ = "/buffer -1" -meta2-17~ = "/buffer +1" -meta2-18~ = "/window -1" -meta2-19~ = "/window +1" -meta2-1;3A = "/buffer -1" -meta2-1;3B = "/buffer +1" -meta2-1;3C = "/buffer +1" -meta2-1;3D = "/buffer -1" -meta2-1;3P = "/bar scroll buflist * b" -meta2-1;3Q = "/bar scroll buflist * e" -meta2-1;5A = "/input history_global_previous" -meta2-1;5B = "/input history_global_next" -meta2-1;5P = "/bar scroll buflist * -100%" -meta2-1;5Q = "/bar scroll buflist * +100%" -meta2-1~ = "/input move_beginning_of_line" -meta2-20~ = "/bar scroll title * x-50%" -meta2-21~ = "/bar scroll title * x+50%" -meta2-23~ = "/bar scroll nicklist * y-100%" -meta2-24~ = "/bar scroll nicklist * y+100%" -meta2-3~ = "/input delete_next_char" -meta2-4~ = "/input move_end_of_line" -meta2-5;3~ = "/window scroll_up" -meta2-5~ = "/window page_up" -meta2-6;3~ = "/window scroll_down" -meta2-6~ = "/window page_down" -meta2-7~ = "/input move_beginning_of_line" -meta2-8~ = "/input move_end_of_line" -meta2-A = "/input history_previous" -meta2-B = "/input history_next" -meta2-C = "/input move_next_char" -meta2-D = "/input move_previous_char" -meta2-F = "/input move_end_of_line" -meta2-G = "/window page_down" -meta2-H = "/input move_beginning_of_line" -meta2-I = "/window page_up" -meta2-Z = "/input complete_previous" -meta-_ = "/input redo" -meta-a = "/input jump_smart" -meta-b = "/input move_previous_word" -meta-d = "/input delete_next_word" -meta-enter = "/input insert \n" -meta-f = "/input move_next_word" -meta-g = "/go" -meta-h = "/input hotlist_clear" -meta-jmeta-l = "/input jump_last_buffer" -meta-jmeta-r = "/server raw" -meta-jmeta-s = "/server jump" -meta-j01 = "/buffer 1" -meta-j02 = "/buffer 2" -meta-j03 = "/buffer 3" -meta-j04 = "/buffer 4" -meta-j05 = "/buffer 5" -meta-j06 = "/buffer 6" -meta-j07 = "/buffer 7" -meta-j08 = "/buffer 8" -meta-j09 = "/buffer 9" -meta-j10 = "/buffer 10" -meta-j11 = "/buffer 11" -meta-j12 = "/buffer 12" -meta-j13 = "/buffer 13" -meta-j14 = "/buffer 14" -meta-j15 = "/buffer 15" -meta-j16 = "/buffer 16" -meta-j17 = "/buffer 17" -meta-j18 = "/buffer 18" -meta-j19 = "/buffer 19" -meta-j20 = "/buffer 20" -meta-j21 = "/buffer 21" -meta-j22 = "/buffer 22" -meta-j23 = "/buffer 23" -meta-j24 = "/buffer 24" -meta-j25 = "/buffer 25" -meta-j26 = "/buffer 26" -meta-j27 = "/buffer 27" -meta-j28 = "/buffer 28" -meta-j29 = "/buffer 29" -meta-j30 = "/buffer 30" -meta-j31 = "/buffer 31" -meta-j32 = "/buffer 32" -meta-j33 = "/buffer 33" -meta-j34 = "/buffer 34" -meta-j35 = "/buffer 35" -meta-j36 = "/buffer 36" -meta-j37 = "/buffer 37" -meta-j38 = "/buffer 38" -meta-j39 = "/buffer 39" -meta-j40 = "/buffer 40" -meta-j41 = "/buffer 41" -meta-j42 = "/buffer 42" -meta-j43 = "/buffer 43" -meta-j44 = "/buffer 44" -meta-j45 = "/buffer 45" -meta-j46 = "/buffer 46" -meta-j47 = "/buffer 47" -meta-j48 = "/buffer 48" -meta-j49 = "/buffer 49" -meta-j50 = "/buffer 50" -meta-j51 = "/buffer 51" -meta-j52 = "/buffer 52" -meta-j53 = "/buffer 53" -meta-j54 = "/buffer 54" -meta-j55 = "/buffer 55" -meta-j56 = "/buffer 56" -meta-j57 = "/buffer 57" -meta-j58 = "/buffer 58" -meta-j59 = "/buffer 59" -meta-j60 = "/buffer 60" -meta-j61 = "/buffer 61" -meta-j62 = "/buffer 62" -meta-j63 = "/buffer 63" -meta-j64 = "/buffer 64" -meta-j65 = "/buffer 65" -meta-j66 = "/buffer 66" -meta-j67 = "/buffer 67" -meta-j68 = "/buffer 68" -meta-j69 = "/buffer 69" -meta-j70 = "/buffer 70" -meta-j71 = "/buffer 71" -meta-j72 = "/buffer 72" -meta-j73 = "/buffer 73" -meta-j74 = "/buffer 74" -meta-j75 = "/buffer 75" -meta-j76 = "/buffer 76" -meta-j77 = "/buffer 77" -meta-j78 = "/buffer 78" -meta-j79 = "/buffer 79" -meta-j80 = "/buffer 80" -meta-j81 = "/buffer 81" -meta-j82 = "/buffer 82" -meta-j83 = "/buffer 83" -meta-j84 = "/buffer 84" -meta-j85 = "/buffer 85" -meta-j86 = "/buffer 86" -meta-j87 = "/buffer 87" -meta-j88 = "/buffer 88" -meta-j89 = "/buffer 89" -meta-j90 = "/buffer 90" -meta-j91 = "/buffer 91" -meta-j92 = "/buffer 92" -meta-j93 = "/buffer 93" -meta-j94 = "/buffer 94" -meta-j95 = "/buffer 95" -meta-j96 = "/buffer 96" -meta-j97 = "/buffer 97" -meta-j98 = "/buffer 98" -meta-j99 = "/buffer 99" -meta-k = "/input grab_key_command" -meta-m = "/bar toggle buffers" -meta-n = "/bar toggle nicklist" -meta-p = "/window bare" -meta-r = "/input delete_line" -meta-u = "/input scroll_unread" -meta-wmeta-meta2-A = "/window up" -meta-wmeta-meta2-B = "/window down" -meta-wmeta-meta2-C = "/window right" -meta-wmeta-meta2-D = "/window left" -meta-wmeta2-1;3A = "/window up" -meta-wmeta2-1;3B = "/window down" -meta-wmeta2-1;3C = "/window right" -meta-wmeta2-1;3D = "/window left" -meta-wmeta-b = "/window balance" -meta-wmeta-s = "/window swap" -meta-z = "/window zoom" -ctrl-_ = "/input undo" - -[key_search] -ctrl-I = "/input search_switch_where" -ctrl-J = "/input search_stop_here" -ctrl-M = "/input search_stop_here" -ctrl-Q = "/input search_stop" -ctrl-R = "/input search_switch_regex" -meta2-A = "/input search_previous" -meta2-B = "/input search_next" -meta-c = "/input search_switch_case" - -[key_cursor] -ctrl-J = "/cursor stop" -ctrl-M = "/cursor stop" -meta-meta2-A = "/cursor move area_up" -meta-meta2-B = "/cursor move area_down" -meta-meta2-C = "/cursor move area_right" -meta-meta2-D = "/cursor move area_left" -meta2-1;3A = "/cursor move area_up" -meta2-1;3B = "/cursor move area_down" -meta2-1;3C = "/cursor move area_right" -meta2-1;3D = "/cursor move area_left" -meta2-A = "/cursor move up" -meta2-B = "/cursor move down" -meta2-C = "/cursor move right" -meta2-D = "/cursor move left" -@chat(python.*):D = "hsignal:slack_cursor_delete" -@chat(python.*):L = "hsignal:slack_cursor_linkarchive" -@chat(python.*):M = "hsignal:slack_cursor_message" -@chat(python.*):R = "hsignal:slack_cursor_reply" -@chat(python.*):T = "hsignal:slack_cursor_thread" -@item(buffer_nicklist):K = "/window ${_window_number};/kickban ${nick}" -@item(buffer_nicklist):b = "/window ${_window_number};/ban ${nick}" -@item(buffer_nicklist):k = "/window ${_window_number};/kick ${nick}" -@item(buffer_nicklist):q = "/window ${_window_number};/query ${nick};/cursor stop" -@item(buffer_nicklist):w = "/window ${_window_number};/whois ${nick}" -@chat:Q = "hsignal:chat_quote_time_prefix_message;/cursor stop" -@chat:m = "hsignal:chat_quote_message;/cursor stop" -@chat:q = "hsignal:chat_quote_prefix_message;/cursor stop" - -[key_mouse] -@item(buffer_nicklist)>item(buddylist):button1-gesture-* = "hsignal:buddylist_mouse" -@chat(*)>item(buddylist):button1-gesture-* = "hsignal:buddylist_mouse" -@bar(buffers):ctrl-wheeldown = "hsignal:buffers_mouse" -@bar(buffers):ctrl-wheelup = "hsignal:buffers_mouse" -@bar(buflist):ctrl-wheeldown = "hsignal:buflist_mouse" -@bar(buflist):ctrl-wheelup = "hsignal:buflist_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" -@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(perl.iset):button1 = "hsignal:iset_mouse" -@chat(perl.iset):button2* = "hsignal:iset_mouse" -@chat(perl.iset):wheeldown = "/repeat 5 /iset **down" -@chat(perl.iset):wheelup = "/repeat 5 /iset **up" -@chat(python.*):button2 = "hsignal:slack_mouse" -@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" -@chat(script.scripts):wheelup = "/script up 5" -@item(buddylist):button1* = "hsignal:buddylist_mouse" -@item(buddylist):button1-gesture-* = "hsignal:buddylist_mouse" -@item(buffer_nicklist):button1 = "/window ${_window_number};/query ${nick}" -@item(buffer_nicklist):button1-gesture-left = "/window ${_window_number};/kick ${nick}" -@item(buffer_nicklist):button1-gesture-left-long = "/window ${_window_number};/kickban ${nick}" -@item(buffer_nicklist):button2 = "/window ${_window_number};/whois ${nick}" -@item(buffer_nicklist):button2-gesture-left = "/window ${_window_number};/ban ${nick}" -@item(buffers):button1* = "hsignal:buffers_mouse" -@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}" -@chat:button1-gesture-left = "/window ${_window_number};/buffer -1" -@chat:button1-gesture-left-long = "/window ${_window_number};/buffer 1" -@chat:button1-gesture-right = "/window ${_window_number};/buffer +1" -@chat:button1-gesture-right-long = "/window ${_window_number};/input jump_last_buffer" -@chat:ctrl-wheeldown = "/window scroll_horiz -window ${_window_number} +10%" -@chat:ctrl-wheelup = "/window scroll_horiz -window ${_window_number} -10%" -@chat:wheeldown = "/window scroll_down -window ${_window_number}" -@chat:wheelup = "/window scroll_up -window ${_window_number}" -@*:button3 = "/cursor go ${_x},${_y}"
D
weechat/xnotify.py
@@ -1,111 +0,0 @@
-from __future__ import unicode_literals - -import weechat as weechat -import subprocess -from os import environ, path - -xnotify_name = "xnotify" -xnotify_version = "0.3.5" -xnotify_license = "GPL3" - -# convenient table checking for bools -true = { "on": True, "off": False } - -# declare this here, will be global config() object -# but is initialized in __main__ -cfg = None - -class config(object): - def __init__(self): - # default options for xnotify - self.opts = { - "highlight": "on", - "query": "on", - "notify_away": "off", - "icon": "weechat", - } - - self.init_config() - self.check_config() - - def init_config(self): - for opt, value in self.opts.items(): - temp = weechat.config_get_plugin(opt) - if not len(temp): - weechat.config_set_plugin(opt, value) - - def check_config(self): - for opt in self.opts: - self.opts[opt] = weechat.config_get_plugin(opt) - - def __getitem__(self, key): - return self.opts[key] - -def printc(msg): - weechat.prnt("", msg) - -def handle_msg(data, pbuffer, date, tags, displayed, highlight, prefix, message): - highlight = bool(highlight) and cfg["highlight"] - query = true[cfg["query"]] - notify_away = true[cfg["notify_away"]] - buffer_type = weechat.buffer_get_string(pbuffer, "localvar_type") - away = weechat.buffer_get_string(pbuffer, "localvar_away") - x_focus = False - window_name = "" - my_nickname = "nick_" + weechat.buffer_get_string(pbuffer, "localvar_nick") - - # Check if active window is in the ignore_windows_list and skip notification - if (environ.get('DISPLAY') != None) and path.isfile("/bin/xdotool"): - cmd_pid="xdotool getactivewindow getwindowpid".split() - window_pid = subprocess.check_output(cmd_pid).decode("utf-8") - cmd_name=("ps -ho comm -p %s"%(window_pid)).split() - window_name = subprocess.check_output(cmd_name).decode("utf-8") - ignore_windows_list = [] - if window_name in ignore_windows_list: - x_focus = True - return weechat.WEECHAT_RC_OK - - if pbuffer == weechat.current_buffer() and x_focus: - return weechat.WEECHAT_RC_OK - - if away and not notify_away: - return weechat.WEECHAT_RC_OK - - if my_nickname in tags: - return weechat.WEECHAT_RC_OK - - buffer_name = weechat.buffer_get_string(pbuffer, "short_name") - - - if buffer_type == "private" and query: - notify_user(buffer_name, message) - elif buffer_type == "channel" and highlight: - notify_user("{} @ {}".format(prefix, buffer_name), message) - - return weechat.WEECHAT_RC_OK - -def notify_user(origin, message): - notify_cmd = [ - "notify-send", - f"{origin}: {message}" - ] - try: - subprocess.check_call( - notify_cmd, - stderr=subprocess.STDOUT, - stdout=subprocess.DEVNULL, - ) - except Exception as e: - weechat.prnt("", e) - return weechat.WEECHAT_HOOK_PROCESS_ERROR - - return weechat.WEECHAT_RC_OK - -# execute initializations in order -if __name__ == "__main__": - weechat.register(xnotify_name, "icy", xnotify_version, xnotify_license, - "{} - xnotify plugin for weechat".format(xnotify_name), "", "") - - cfg = config() - print_hook = weechat.hook_print("", "", "", 1, "handle_msg", "") -