this is the culmination of many months of work, enjoy!
To install:
curl -fsSl https://raw.githubusercontent.com/40476/streamonline/refs/heads/main/openstreams.sh | bash -s -- < /dev/tty
a configuration file looks like this
stored as : ~/.local/share/streamonline/zentreyastream_state.txt
000
streamlink
360p
https://twitch.tv/
- line 1 (
000) is the date last checked (if <= current date it will not be checked) - line 2 (
streamlinkorxdg_open) is the mode to use, usexdg_openif you want our stream opened in a browser, usestreamlinkfor media player (recommended on lower end systems) - line 3 (
360p) is the stream quality (options are provided at file creation, (see source code for details)) - line 4 (
https://twitch.tv/) is the host site, you will need to provide the link exactly as it appears in you browsers address bar (minus the stream name since that is appended to the end of the URL) - line 5 Notification text layout
- line 6 Additional arguments to send to streamlink
- line 7 and beyond (reserved for future use)
streamlinkprintfsystemdnotify-sendgrepsedechojq