vanHavel / ChatBar

Display Twitch Chat in MacBook Pro Touchbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatBar

Display Twitch Chat in MacBook Pro Touchbar. This way you can watch a stream in fullscreen mode and still follow the chat.

demo image

Installation

Download the latest ChatBar.app file from the releases page, put it in your Applications folder, and run it. On first start, you probably have to do a right click & open, since the app is not signed. OSX 10.14 or newer is required.

Usage

  1. Start the program and enter the channel you want to join.
  2. Press the chat icon (speech bubble) in the control strip of your touchbar.

General Info

  • Adding the chat icon to the control strip is handled by calls to a private, undocumented API(see TouchBaer).
  • The application simulates a keypress of the shift key regularly to disable the touchbar sleep function.
  • The connection is done uses websockets secured with TLS, provided by the Starscream framework.

Build

# ensure you have carthage installed, other package managers work as well like ports
$ brew install carthage

# ensure your current Xcode setup is proper (should return /Applications/Xcode.app/Contents/Developer, not something with CommandLineTools)
$ xcode-select -p

# clone the source code of ChatBar
$ git clone https://github.com/vanHavel/ChatBar
$ cd ChatBar/ChatBarProject

# ensure dependencies are installed
$ carthage update --platform macOS

# copy the starscream framework to the correct directory
$ cp -pr Carthage/Build/Mac/Starscream.framework ./
$ xcodebuild

# open your freshly compiled app
$ open build/Release/ChatBar.app

About

Display Twitch Chat in MacBook Pro Touchbar

License:Other


Languages

Language:Rich Text Format 87.7%Language:Swift 10.2%Language:Objective-C 2.2%