Skip to content
/ brb Public

A neat little be right back screen for your streams

Notifications You must be signed in to change notification settings

GHaxZ/brb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brb 🏃

For when you'll be right back!

demo.gif

"brb" is a terminal live streaming tool that lets your viewers know that you are currently away in a unique way!

Features

  • Countdown
    • Your viewers know when you'll be back!
  • Live Twitch chat
    • Displays Twitch name colors
    • No authentication is required
  • Current song display
    • Display current Spotify song
    • Requires spotic
  • Configurability
    • Automatically execute commands on start or exit
    • Hide elements
    • Change text
    • Change colors
    • Adjustable padding
  • Lightweight
    • ~6MB RAM no chat, ~10MB with chat

Installation

Head to the releases page and search for the latest release.

You are presented with multiple ways to install brb:

  • Shell script
    • Useable on Linux and macOS
    • No extra software required
    • No automatic updates
  • Powershell script
    • Usable on Windows
    • No extra software required
    • No automatic updates
  • Homebrew
    • Usable on Linux and macOS
    • Extra software required (homebrew)
    • Automatic updates

Alternatively, if you have Rust installed, you can compile yourself:

cargo install --git https://github.com/GHaxZ/brb.git

Usage

Command usage

To run brb just enter, well:

brb

Set a countdown by entering an amount of hours, minutes, or seconds:

brb 1h 23m 45s

To set a text use:

brb -t "Hello world!"

To set accent color

brb --color red

or

brb --color 255,0,0

To see all available commands, you can run:

brb -h

Configuration file

Using the right arguments every time is annoying, so instead, you can use a configuration file.

Depending on your OS, put the configuration file in:

  • Linux: ~/.config/brb/brb.toml
  • Windows: %APPDATA%\brb\brb.toml
  • macOS: ~/Library/Application Support/brb/brb.toml

Or use the --dir argument to check the correct location.

Example config:

# Set custom color

# Either choose from black, red, green, yellow, blue, magenta, cyan, or white:
color = "red"

# Or define a custom RGB color:
# color = { r = 95, g = 126, b = 255 }

# Set the Twitch channel name for the chat
twitch_channel = "ghax_z"

# Set the text in the center
text = "Be right back"

# Enable/disable the chat
chat = true

# Enable/disable the current song display (requires "spotic" to be installed)
# Check out "https://github.com/GHaxZ/spotic" for more information
song_display = true

# Hide the timer after the time is up
hide_timer = true

# Enable/disable the progress bar
progress_bar = true

# Adjust the outer padding
padding = 1

# Commands which will execute in order at start
start_commands = ["sc vo +10", "echo 'Be right back' > status.txt"]

# Commands which will execute in order when exiting
exit_commands = ["sc vo -10", "echo '' > status.txt"]

Contributing

Contributions are always welcome!

Please make sure you somewhat adhere to the codebase style and document your code, especially in hard-to-understand areas.

Thanks!

Feedback

In case you encounter any issues or have a feature you want to see, please open a github issue. I'll do my best to fix things!

License

This project is licensed under the MIT license.

About

A neat little be right back screen for your streams

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages