Browse Source

merge master

work-laptop
Micah Halter 2 months ago
parent
commit
da2034e92b
Signed by: mehalter <micah.halter@gtri.gatech.edu> GPG Key ID: 4224A6EA9A8CAAA8
7 changed files with 2818 additions and 1242 deletions
  1. +62
    -4
      weechat/.config/weechat/plugins.conf
  2. +1018
    -231
      weechat/.config/weechat/python/vimode.py
  3. +1647
    -986
      weechat/.config/weechat/python/wee_slack.py
  4. +2
    -2
      weechat/.config/weechat/python/weemoji.py
  5. BIN
      weechat/.config/weechat/script/plugins.xml.gz
  6. +3
    -5
      weechat/.config/weechat/sec.conf
  7. +86
    -14
      weechat/.config/weechat/weechat.conf

+ 62
- 4
weechat/.config/weechat/plugins.conf View File

@@ -33,9 +33,12 @@ python.slack.auto_open_threads = "false"
python.slack.background_load_all_history = "false"
python.slack.channel_name_typing_indicator = "true"
python.slack.color_buflist_muted_channels = "darkgray"
python.slack.color_deleted = "red"
python.slack.color_edited_suffix = "095"
python.slack.color_reaction_suffix = "darkgray"
python.slack.color_reaction_suffix_added_by_you = "blue"
python.slack.color_thread_suffix = "lightcyan"
python.slack.color_typing_notice = "yellow"
python.slack.colorize_private_chats = "false"
python.slack.debug_level = "3"
python.slack.debug_mode = "false"
@@ -47,8 +50,10 @@ python.slack.map_underline_to = "_"
python.slack.migrated = "true"
python.slack.muted_channels_activity = "personal_highlights"
python.slack.never_away = "false"
python.slack.notify_usergroup_handle_updated = "false"
python.slack.record_events = "false"
python.slack.render_bold_as = "bold"
python.slack.render_emoji_as_string = "false"
python.slack.render_italic_as = "italic"
python.slack.send_typing_notice = "true"
python.slack.server_aliases = ""
@@ -56,7 +61,7 @@ python.slack.shared_name_prefix = "%"
python.slack.short_buffer_names = "false"
python.slack.show_buflist_presence = "true"
python.slack.show_reaction_nicks = "false"
python.slack.slack_api_token = "${sec.data.tribetoken},${sec.data.innctoken},${sec.data.juniordesigntoken}"
python.slack.slack_api_token = "${sec.data.innc2_token},${sec.data.aske_token}"
python.slack.slack_timeout = "20000"
python.slack.switch_buffer_on_join = "true"
python.slack.thread_messages_in_channel = "false"
@@ -64,6 +69,7 @@ python.slack.thread_suffix_color = "lightcyan"
python.slack.unfurl_auto_link_display = "both"
python.slack.unfurl_ignore_alt_text = "false"
python.slack.unhide_buffers_with_activity = "false"
python.slack.use_full_names = "false"
python.urlbar.ignore = "grep"
python.urlbar.remember_amount = "25"
python.urlbar.show_buffername = "on"
@@ -75,7 +81,30 @@ python.urlbar.use_popup = "on"
python.urlbar.visible_amount = "5"
python.urlbar.visible_seconds = "5"
python.urlserver.http_port = "60211"
python.vimode.copy_clipboard_cmd = "xclip -selection c"
python.vimode.imap_esc = ""
python.vimode.imap_esc_timeout = "1000"
python.vimode.is_keyword = "a-zA-Z0-9_À-ÿ"
python.vimode.line_number_prefix = ""
python.vimode.line_number_suffix = " "
python.vimode.mode_indicator_cmd_color = "white"
python.vimode.mode_indicator_cmd_color_bg = "cyan"
python.vimode.mode_indicator_insert_color = "white"
python.vimode.mode_indicator_insert_color_bg = "blue"
python.vimode.mode_indicator_normal_color = "white"
python.vimode.mode_indicator_normal_color_bg = "gray"
python.vimode.mode_indicator_prefix = ""
python.vimode.mode_indicator_replace_color = "white"
python.vimode.mode_indicator_replace_color_bg = "red"
python.vimode.mode_indicator_search_color = "white"
python.vimode.mode_indicator_search_color_bg = "magenta"
python.vimode.mode_indicator_suffix = ""
python.vimode.no_warn = "on"
python.vimode.paste_clipboard_cmd = "xclip -selection c -o"
python.vimode.search_vim = "off"
python.vimode.user_command_mapping = ":"
python.vimode.user_mappings = "{"ZZ": "/exit"}"
python.vimode.user_mappings_noremap = ""
ruby.check_license = "off"
tcl.check_license = "off"

@@ -97,21 +126,26 @@ python.slack.auto_open_threads = "Automatically open threads when mentioned or i
python.slack.background_load_all_history = "Load history for each channel in the background as soon as it opens, rather than waiting for the user to look at it."
python.slack.channel_name_typing_indicator = "Change the prefix of a channel from # to > when someone is typing in it. Note that this will (temporarily) affect the sort order if you sort buffers by name rather than by number."
python.slack.color_buflist_muted_channels = "Color to use for muted channels in the buflist"
python.slack.color_deleted = "Color to use for deleted messages and files."
python.slack.color_edited_suffix = "Color to use for (edited) suffix on messages that have been edited."
python.slack.color_reaction_suffix = "Color to use for the [:wave:(@user)] suffix on messages that have reactions attached to them."
python.slack.color_thread_suffix = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them."
python.slack.color_reaction_suffix_added_by_you = "Color to use for reactions that you have added."
python.slack.color_thread_suffix = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them. The special value "multiple" can be used to use a different color for each thread."
python.slack.color_typing_notice = "Color to use for the typing notice."
python.slack.colorize_private_chats = "Whether to use nick-colors in DM windows."
python.slack.debug_level = "Show only this level of debug info (or higher) when debug_mode is on. Lower levels -> more messages."
python.slack.debug_mode = "Open a dedicated buffer for debug messages and start logging to it. How verbose the logging is depends on log_level."
python.slack.distracting_channels = "List of channels to hide."
python.slack.external_user_suffix = "The suffix appended to nicks to indicate external users."
python.slack.files_download_location = "If set, file attachments will be automatically downloaded to this location."
python.slack.files_download_location = "If set, file attachments will be automatically downloaded to this location. "%h" will be replaced by WeeChat home, "~/.weechat" by default."
python.slack.group_name_prefix = "The prefix of buffer names for groups (private channels)."
python.slack.map_underline_to = "When sending underlined text to slack, use this formatting character for it. The default ("_") sends it as italics. Use "*" to send bold instead."
python.slack.muted_channels_activity = "Control which activity you see from muted channels, either none, personal_highlights, all_highlights or all. none: Don't show any activity. personal_highlights: Only show personal highlights, i.e. not @channel and @here. all_highlights: Show all highlights, but not other messages. all: Show all activity, like other channels."
python.slack.never_away = "Poke Slack every five minutes so that it never marks you "away"."
python.slack.notify_usergroup_handle_updated = "Control if you want to see notification when a usergroup's handle has changed, either true or false."
python.slack.record_events = "Log all traffic from Slack to disk as JSON."
python.slack.render_bold_as = "When receiving bold text from Slack, render it as this in weechat."
python.slack.render_emoji_as_string = "Render emojis as :emoji_name: instead of emoji characters. Enable this if your terminal doesn't support emojis, or set to 'both' if you want to see both renderings. Note that even though this is disabled by default, you need to place https://github.com/wee-slack/wee-slack/blob/master/weemoji.json in your weechat directory to enable rendering emojis as emoji characters."
python.slack.render_italic_as = "When receiving bold text from Slack, render it as this in weechat. If your terminal lacks italic support, consider using "underline" instead."
python.slack.send_typing_notice = "Alert Slack users when you are typing a message in the input bar (Requires reload)"
python.slack.server_aliases = "A comma separated list of `subdomain:alias` pairs. The alias will be used instead of the actual name of the slack (in buffer names, logging, etc). E.g `work:no_fun_allowed` would make your work slack show up as `no_fun_allowed` rather than `work.slack.com`."
@@ -127,4 +161,28 @@ python.slack.thread_suffix_color = "Color to use for the [thread: XXX] suffix on
python.slack.unfurl_auto_link_display = "When displaying ("unfurling") links to channels/users/etc, determine what is displayed when the text matches the url without the protocol. This happens when Slack automatically creates links, e.g. from words separated by dots or email addresses. Set it to "text" to only display the text written by the user, "url" to only display the url or "both" (the default) to display both."
python.slack.unfurl_ignore_alt_text = "When displaying ("unfurling") links to channels/users/etc, ignore the "alt text" present in the message and instead use the canonical name of the thing being linked to."
python.slack.unhide_buffers_with_activity = "When activity occurs on a buffer, unhide it even if it was previously hidden (whether by the user or by the distracting_channels setting)."
python.vimode.no_warn = "don't warn about problematickeybindings and tmux/screen (default: "off")"
python.slack.use_full_names = "Use full names as the nicks for all users. When this is false (the default), display names will be used if set, with a fallback to the full name if display name is not set."
python.vimode.copy_clipboard_cmd = "command used to copy to clipboard; must read input from stdin (default: "xclip -selection c")"
python.vimode.imap_esc = "use alternate mapping to enter Normal mode while in Insert mode; having it set to 'jk' is similar to `:imap jk <Esc>` in vim (default: "")"
python.vimode.imap_esc_timeout = "time in ms to wait for the imap_esc sequence to complete (default: "1000")"
python.vimode.is_keyword = "characters recognized as part of a word (default: "a-zA-Z0-9_À-ÿ")"
python.vimode.line_number_prefix = "prefix for line numbers (default: "")"
python.vimode.line_number_suffix = "suffix for line numbers (default: " ")"
python.vimode.mode_indicator_cmd_color = "color for mode indicator in Command mode (default: "white")"
python.vimode.mode_indicator_cmd_color_bg = "background color for mode indicator in Command mode (default: "cyan")"
python.vimode.mode_indicator_insert_color = "color for mode indicator in Insert mode (default: "white")"
python.vimode.mode_indicator_insert_color_bg = "background color for mode indicator in Insert mode (default: "blue")"
python.vimode.mode_indicator_normal_color = "color for mode indicator in Normal mode (default: "white")"
python.vimode.mode_indicator_normal_color_bg = "background color for mode indicator in Normal mode (default: "gray")"
python.vimode.mode_indicator_prefix = "prefix for the bar item mode_indicator (default: "")"
python.vimode.mode_indicator_replace_color = "color for mode indicator in Replace mode (default: "white")"
python.vimode.mode_indicator_replace_color_bg = "background color for mode indicator in Replace mode (default: "red")"
python.vimode.mode_indicator_search_color = "color for mode indicator in Search mode (default: "white")"
python.vimode.mode_indicator_search_color_bg = "background color for mode indicator in Search mode (default: "magenta")"
python.vimode.mode_indicator_suffix = "suffix for the bar item mode_indicator (default: "")"
python.vimode.no_warn = "don't warn about problematic keybindings and tmux/screen (default: "off")"
python.vimode.paste_clipboard_cmd = "command used to paste clipboard; must output content to stdout (default: "xclip -selection c -o")"
python.vimode.search_vim = "allow n/N usage after searching (requires an extra <Enter> to return to normal mode) (default: "off")"
python.vimode.user_command_mapping = "user alternate mapping to enter Command mode while in Normal mode (default: ":")"
python.vimode.user_mappings = "see the `:nmap` command in the README for more info; please do not modify this field manually unless you know what you're doing (default: "")"
python.vimode.user_mappings_noremap = "see the `:nnoremap` command in the README for more info; please do not modify this field manually unless you know what you're doing (default: "")"

+ 1018
- 231
weechat/.config/weechat/python/vimode.py
File diff suppressed because it is too large
View File


+ 1647
- 986
weechat/.config/weechat/python/wee_slack.py
File diff suppressed because it is too large
View File


+ 2
- 2
weechat/.config/weechat/python/weemoji.py View File

@@ -33,7 +33,7 @@ try:
import weechat
import re
except ImportError:
print "This script must be run under WeeChat."
print("This script must be run under WeeChat.")
import_ok = False

MATCHER = re.compile(":([+\-]?\w+):")
@@ -51,7 +51,7 @@ def replace_emoji(match):
codepoint = EMOJI.get(text[1:-1])
if codepoint:
raw = '\\U%08x' % int(codepoint, 16)
return raw.decode('unicode-escape').encode('utf-8')
return raw.encode('utf-8').decode('unicode-escape')
return text

if __name__ == "__main__" and import_ok:


BIN
weechat/.config/weechat/script/plugins.xml.gz View File


+ 3
- 5
weechat/.config/weechat/sec.conf View File

@@ -17,8 +17,6 @@ salt = on

[data]
__passphrase__ = on
tribetoken = "810DC0B32665128AF9BA95B5DAA403EE96658D2716600DBDA3B66F3F597539782C3193388053F600CFEF7D82C504FE1E0393743EB97001C13D222C001E72B18555295D2B9029EC47BA99CDD325F1717D2F006E8E08BC9C826E177D7EA106D4C5BF29FF2656C51746B9B96A37C8969F8079A622E952"
juniordesigntoken = "C7DC860B07CDD9714D1778D386694F28E1F19C0659943C97DBD1E7EE2056964344212DF7E916E6B40D4A550797A22C9E6A85FEF7F4976396CFAF0C2507C97C10D8D036312A32C49A90AA6BBB138A73E013C8D9E2F9454E0A28D0A62DD5817AE144DA2196015493731D07F282915A642B270A8C1BA5"
slackapi = "E94DBA9FF4F334BE1F7BB27D861B678E7D875F5E38F50792381BC482E14B0386A9F5EB4E72219EF624AF2FA04FF37CDCA04525FF0F46E644B25BB1CC18298DD0250A89D541F3943EA5CEECD29AEB572595C8E8B89BEB64A19A30ECA796FCC272921C6E849EC69039C715C14AB0ADEE9A4C0793AF35"
freenode_password = "840E00E01D76A5AAD6186757201059C8C093B3A9E282E263AF918A8EFD2922E2C439BB1BCD8D0751866154FF5B4F299ACF159695"
innctoken = "0D3AD0AA31C60A84A09A2AC16F10E6014C2E8A28449A762D4153A38D1C50DD72F604257EB2CB0BC64B48096B582B1E225668E0B64E11872A64423748011FF0DEBD0B3D889EDEEE53794763C4D187E19E938F6D4E7FA20BEBF435C47627F25A1EC2F27D0F82A9B47CD155CE782936CA999CF316"
innc2_token = "3BAEC0790F1C006186567F308B16BA1C7373A1210829D5CF1E0667B6DFFED456D8A6B9B7977A4641E762B8D40E5A4136B43414BC72BE3FC5F56387B37C08DC18175439D950A7CAE8381F3D26E03767BFB15D2CCCE5C50069B6FE3EA98AA4B213A28E9050438BEEED6F42E07D17FDAF7078C523F31B40"
aske_token = "7403AB3CF71749B705C37366D928278D4A579F5EBC350D739620859ECA85308770FB44EFA9E19A1687A36F4F0EDFA3C556AFAFEB22B417864D52CED9F3A7A95CE48B524A46E0D1CCE895930620CBA86ECFAEEDB09759FF478B8F0787D51D4F33A7EDCD236D21F6873F671764C706605326A1E9D02B47"
freenode_password = "4F7F4BB9D5774F3EF90B9D67B56002C2A3B9ED98C9CB88512BD8B4473ADAC234D6F3230E6498FA5B17BBAA39274F4AA208F3CD30"

+ 86
- 14
weechat/.config/weechat/weechat.conf View File

@@ -372,20 +372,6 @@ urlbar.separator = off
urlbar.size = 0
urlbar.size_max = 0
urlbar.type = root
vi_cmd.color_bg = default
vi_cmd.color_delim = default
vi_cmd.color_fg = default
vi_cmd.conditions = ""
vi_cmd.filling_left_right = vertical
vi_cmd.filling_top_bottom = vertical
vi_cmd.hidden = on
vi_cmd.items = "cmd_text"
vi_cmd.position = bottom
vi_cmd.priority = 0
vi_cmd.separator = off
vi_cmd.size = 0
vi_cmd.size_max = 0
vi_cmd.type = root
vi_line_numbers.color_bg = default
vi_line_numbers.color_delim = default
vi_line_numbers.color_fg = default
@@ -404,6 +390,92 @@ vi_line_numbers.type = window
[layout]

[notify]
python.aske-workspace.slack.com.#aske = all
python.aske-workspace.slack.com.#general = all
python.aske-workspace.slack.com.#pimeetings = all
python.aske-workspace.slack.com.#ramblincats = all
python.aske-workspace.slack.com.#random = all
python.aske-workspace.slack.com.&development = all
python.aske-workspace.slack.com.&documentation = all
python.aske-workspace.slack.com.&gt = all
python.aske-workspace.slack.com.&reftexts = all
python.aske-workspace.slack.com.&standups = all
python.aske-workspace.slack.com.&w3 = all
python.aske-workspace.slack.com.AlexandraTrani = all
python.aske-workspace.slack.com.AndrewBaas = all
python.aske-workspace.slack.com.ejb,jpf = all
python.aske-workspace.slack.com.EricDavis = all
python.aske-workspace.slack.com.jpf = all
python.aske-workspace.slack.com.Kun = all
python.aske-workspace.slack.com.Kun,ShivamKhare,jpf = all
python.aske-workspace.slack.com.MicahHalter = all
python.aske-workspace.slack.com.NateKnauf = all
python.aske-workspace.slack.com.ShivamKhare = all
python.aske-workspace.slack.com.Slackbot = all
python.innc2.slack.com.#beatz = all
python.innc2.slack.com.#coda = all
python.innc2.slack.com.#coffee = all
python.innc2.slack.com.#emojis = all
python.innc2.slack.com.#finance = all
python.innc2.slack.com.#food_and_cooking_and_drinking = all
python.innc2.slack.com.#foosball = all
python.innc2.slack.com.#games = all
python.innc2.slack.com.#general = all
python.innc2.slack.com.#happyplace = all
python.innc2.slack.com.#lizard_people = all
python.innc2.slack.com.#lunchtime = all
python.innc2.slack.com.#minutiae = all
python.innc2.slack.com.#movies_tv_podcasts_books = all
python.innc2.slack.com.#politics = all
python.innc2.slack.com.#poovey_fan_club = all
python.innc2.slack.com.#poovey_sucks = all
python.innc2.slack.com.#random = all
python.innc2.slack.com.#sad_emails = all
python.innc2.slack.com.#sports = all
python.innc2.slack.com.#study_days = all
python.innc2.slack.com.#surviving_covid-19 = all
python.innc2.slack.com.#technical = all
python.innc2.slack.com.#tmux = all
python.innc2.slack.com.#who_cares_about_eric = all
python.innc2.slack.com.&compmods = all
python.innc2.slack.com.&fte = all
python.innc2.slack.com.&jackasses2 = all
python.innc2.slack.com.&no_pc2 = all
python.innc2.slack.com.cahilton,crherlihy = all
python.innc2.slack.com.Dane = all
python.innc2.slack.com.DanielPendergrass = all
python.innc2.slack.com.EvanStuart = all
python.innc2.slack.com.KunCao = all
python.innc2.slack.com.micah = all
python.innc2.slack.com.SaulCrumpton = all
python.innc2.slack.com.sirpoovey = all
python.innc2.slack.com.Slackbot = all
python.innc2.slack.com.trevor = all
python.innc2.slack.com.WinstonMesser = all
python.tribe2018-2019.slack.com.#accountability = all
python.tribe2018-2019.slack.com.#announcements = all
python.tribe2018-2019.slack.com.#film = all
python.tribe2018-2019.slack.com.#general = all
python.tribe2018-2019.slack.com.#hackeysack = all
python.tribe2018-2019.slack.com.#pingpong = all
python.tribe2018-2019.slack.com.#random = all
python.tribe2018-2019.slack.com.#selfies = all
python.tribe2018-2019.slack.com.#spring-break = all
python.tribe2018-2019.slack.com.#throwing = all
python.tribe2018-2019.slack.com.&colorof = all
python.tribe2018-2019.slack.com.&soul = all
python.tribe2018-2019.slack.com.&squaddddddd = all
python.tribe2018-2019.slack.com.AlexMathis,AmatheonBohan,NishanNekoo = all
python.tribe2018-2019.slack.com.AmatheonBohan,Fisher,ZephrenCollinson = all
python.tribe2018-2019.slack.com.ArthurShim = all
python.tribe2018-2019.slack.com.ChrisZuo = all
python.tribe2018-2019.slack.com.Fisher = all
python.tribe2018-2019.slack.com.Mark = all
python.tribe2018-2019.slack.com.MicahHalter = all
python.tribe2018-2019.slack.com.MicahJo = all
python.tribe2018-2019.slack.com.Slackbot = all
python.tribe2018-2019.slack.com.WilliamSyre = all
python.tribe2018-2019.slack.com.ZephrenCollinson = all

[filter]



Loading…
Cancel
Save