Ant A gay nerd
HomeProjectsBlog
Go Back
Blog
Projects
Home

Polybar Script for checking twitch online status

May 19, 2019
31 seconds

This is a simple bash-script for polybar that checks if a certain twitch-streamer (or multiple) is streaming right now.

It only works with one active streamer at a time, although if you want you can set the priority (aka: which one of those will be shown) by adding that name to the end of the users-array.

dependencies:

usage/installation:

  • download twitch.sh
  • place the script file in “.config/polybar”
  • change the “users”-array to match the usernames that you want to be monitored
  • add script to polybar as custom module:
[module/twitch]
type = custom/script
exec = /home/host13/.config/polybar/twitch.sh
format-prefix = 
format-prefix-padding = 1
tail = true
  • add module to bar by putting “twitch” in either modules-left, modules-center or modules-right
  • enjoy

See Also