Closed timhae closed 7 years ago
I wrote a shell script for the improvement part:
#!/bin/bash
PS3="Select Game:"
select game in $(gotwitch games | sed -e 's/ /%20/g')
do
if [ -n "$game" ]; then
PS3="Select Stream:"
select stream in $(gotwitch streams -g $game)
do
if [ -n "$stream" ]; then
gotwitch watch -s $stream
exit
fi
done
fi
done
Hello!
Im pleased you took interest in my little app. The completion acually exists! I just did a bare minimum with the time i have to release it.
enter this command in the shell session or better yet, your shell rc:
eval "$(gotwitch --completion-script-zsh)"
or if you use bash:
eval "$(gotwitch --completion-script-bash)"
I will update the repo and the aur package this weekend probably.
I personally use rofi, so i did a little dmenu-ish script to do just that:
#! /bin/sh
if [ -z "$@" ]
then
echo Subscribtions;
echo Popular
else
if [ "$@" == "Subscribtions" ]; then
gotwitch streams -b
elif [ "$@" == "Popular" ]; then
gotwitch streams
else
channel=$(echo $@ | awk '{print $1;}')
gotwitch -s $channel
fi
fi
Would you mind taking a liberty to make MR or fork it, or specifying what exactly is still missing, except your mentioned issues here?
I'd love to make it better, whenever i can! I'll try to fix your problems this week.
Cheers!
Hey,
thanks for your quick response.
Would you mind taking a liberty to make MR or fork it, or specifying what exactly is still missing, except your mentioned issues here?
Sadly I don't know what MR is. As for a fork, I don't know the language Go and how to build AUR packages/writing PKGBUILDs, which I probably need to implement the changes.
If you are asking for my whishlist, here you go:
other than that I am completely satisfied with your tool.
Greetings, Tim
PS: your desktop looks nice, what window manager do you use?
Bspwm with polybar, conky, some wallpaper from wallhaven.cc and colors taken from a wallpaper.
two things I would like to add to this neat tool:
your Upstream URL on your aur page points nowhere.
and
I had to set $GOPATH and $GOBIN manually, otherwise the installation would fail, also see this SO question and output of
go env
after those adjustments:and as improvement maybe tab-completion so i can browse most-viewed games, select the game I'd like to watch and then select a stream :)