2021-08-09 14:46:54 +00:00
|
|
|
#+TITLE: twitch layer
|
2021-09-11 22:58:39 +00:00
|
|
|
|
2021-08-09 14:46:54 +00:00
|
|
|
#+TAGS: layer|web service
|
|
|
|
|
2021-09-11 22:58:39 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2021-08-09 14:46:54 +00:00
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#features][Features:]]
|
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#configuration][Configuration]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
- [[#twitch-helm][Twitch helm]]
|
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds support for twitch. You can search for streamers and open the stream in the browser.
|
2021-09-11 21:16:14 +00:00
|
|
|
You are also able to connect to twitch irc and join the streamer channel.
|
2021-08-09 14:46:54 +00:00
|
|
|
|
|
|
|
** Features:
|
2021-09-11 22:58:39 +00:00
|
|
|
- Connect to Twitch irc via erc
|
|
|
|
- Join streamer channel
|
|
|
|
- Start watching stream via streamlink
|
2021-08-09 14:46:54 +00:00
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =twitch= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
|
|
|
|
|
|
|
* Configuration
|
|
|
|
You can get an OAUTH token for twitch [[http://twitchapps.com/tmi/][here]]. Remove =oauth:= from the token.
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
erc ;; optional
|
|
|
|
(twitch :variables
|
|
|
|
twitch-api-username "USERNAME"
|
|
|
|
twitch-api-oauth-token "TOKEN") ;; remove oauth: prefix
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
|
2021-09-11 22:58:39 +00:00
|
|
|
| Key binding | Description |
|
2021-08-09 14:46:54 +00:00
|
|
|
|---------------+------------------------------------------|
|
|
|
|
| ~SPC a c i t~ | Connect to Twitch irc via erc |
|
2021-09-11 21:16:14 +00:00
|
|
|
| ~SPC a w s t~ | Start twitch helm and search for streams |
|
2021-08-09 14:46:54 +00:00
|
|
|
|
|
|
|
** Twitch helm
|
2021-09-11 22:58:39 +00:00
|
|
|
|
|
|
|
| Key binding | Description |
|
2021-08-09 14:46:54 +00:00
|
|
|
|---------------+-----------------------------------------|
|
|
|
|
| ~F1~ or ~RET~ | Open stream in streamlink |
|
|
|
|
| ~F2~ | Join this stream in irc Twitch channel |
|
|
|
|
| ~F3~ | Open this stream in a browser (default) |
|