Update weechat conf

This commit is contained in:
Thomas Dehaeze 2019-04-04 10:55:31 +02:00
parent bf4948fc7c
commit ac5de82ac7

View File

@ -743,7 +743,7 @@ This looks for contacts in your emails.
** Weechat ** Weechat
https://weechat.org/files/doc/stable/weechat_user.en.html https://weechat.org/files/doc/stable/weechat_user.en.html
Installation *** Installation
#+begin_src bash #+begin_src bash
yay -S weechat yay -S weechat
#+end_src #+end_src
@ -753,14 +753,24 @@ Then we install some dependencies
yay -S tcl lua ruby yay -S tcl lua ruby
#+end_src #+end_src
Enable mouse support: *** Enable mouse support
#+begin_src text #+begin_src text
/mouse enable /mouse enable
#+end_src #+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://www.bfoliver.com/technology/2017/07/15/weechat/
https://alexjj.com/blog/2016/9/setting-up-weechat/ https://alexjj.com/blog/2016/9/setting-up-weechat/
#+begin_src conf #+begin_src conf
/set weechat.look.prefix_same_nick "⤷" /set weechat.look.prefix_same_nick "⤷"
/set weechat.look.prefix_error "⚠" /set weechat.look.prefix_error "⚠"
@ -825,11 +835,41 @@ Then, on weechat, type =/edit=.
*** Slack Integration *** Slack Integration
https://github.com/wee-slack/wee-slack https://github.com/wee-slack/wee-slack
Dependency: **** Installation
#+begin_src bash #+begin_src bash
yay -S python2-websocket-client yay -S python2-websocket-client
#+end_src #+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 ** TODO Using Emacs
* Redshift * Redshift
http://jonls.dk/redshift/ http://jonls.dk/redshift/