From ac5de82ac722d59375009a3f9c55d4a2e89af087 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Thu, 4 Apr 2019 10:55:31 +0200 Subject: [PATCH] Update weechat conf --- readme.org | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/readme.org b/readme.org index 310aa66..5435926 100644 --- a/readme.org +++ b/readme.org @@ -743,7 +743,7 @@ This looks for contacts in your emails. ** Weechat https://weechat.org/files/doc/stable/weechat_user.en.html -Installation +*** Installation #+begin_src bash yay -S weechat #+end_src @@ -753,14 +753,24 @@ Then we install some dependencies yay -S tcl lua ruby #+end_src -Enable mouse support: +*** Enable mouse support #+begin_src text /mouse enable #+end_src -*** TODO Theme +*** Scripts +| highmon.pl | | +| colorize_nicks.py | | +| go.py | | +| autosort.py | | +| buddylist.pl | | +| colorize_lines.pl | | +| multiline.pl | | + +*** Theme https://www.bfoliver.com/technology/2017/07/15/weechat/ https://alexjj.com/blog/2016/9/setting-up-weechat/ + #+begin_src conf /set weechat.look.prefix_same_nick "⤷" /set weechat.look.prefix_error "⚠" @@ -825,11 +835,41 @@ Then, on weechat, type =/edit=. *** Slack Integration https://github.com/wee-slack/wee-slack -Dependency: +**** Installation #+begin_src bash yay -S python2-websocket-client #+end_src + +#+begin_src bash + cd ~/.weechat/python + wget https://raw.githubusercontent.com/wee-slack/wee-slack/master/wee_slack.py + ln -s ../wee_slack.py autoload +#+end_src + +**** Add your Slack API key(s) +Log in to Slack: +#+begin_src conf + /slack register +#+end_src +This command prints a link you should open in your browser to authorize WeeChat with Slack. Once you've accomplished this, copy the "code" portion of the URL in the browser and pass it to this command: + +#+begin_src conf + /slack register [CODE_FROM_URL] +#+end_src + +Your Slack team is now added, and you can complete setup by restarting the wee-slack script. +#+begin_src conf + /python reload slack +#+end_src + +If you don't want to store your API token in plaintext you can use the secure features of weechat: +#+begin_src conf + /secure passphrase this is a super secret password + /secure set slack_token [YOUR_SLACK_TOKEN] + /set plugins.var.python.slack.slack_api_token ${sec.data.slack_token} +#+end_src + ** TODO Using Emacs * Redshift http://jonls.dk/redshift/