Add gumstarred, rofistarred

This commit is contained in:
Jeffrey Serio 2023-09-02 08:24:48 -05:00
parent 06c3246989
commit d79f833449
2 changed files with 12 additions and 0 deletions

6
gumstarred Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
USERNAME="hyperreal64"
starred_repos=$(curl -s "https://api.github.com/users/${USERNAME}/starred?per_page=1000" | jq '.[] | .full_name' | tr -d '"')
xdg-open "https://github.com/$(echo "$starred_repos" | gum choose --limit=1)"

6
rofistarred Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
USERNAME="hyperreal64"
starred_repos=$(curl -s "https://api.github.com/users/${USERNAME}/starred?per_page=1000" | jq '.[] | .full_name' | tr -d '"')
echo "$starred_repos" | rofi -dmenu -p "GitHub Starred" -theme-str 'window { width: 40em; height: 40em; }' | xargs -I{} xdg-open "https://github.com/{}"