mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-28 23:35:46 +00:00
9 lines
408 B
Fish
Executable file
9 lines
408 B
Fish
Executable file
#!/usr/bin/fish
|
|
set json (trurl --json $QUTE_URL | jq .[].parts)
|
|
set blog (echo $json | jq -r .host | cut -d. -f1)
|
|
set page (echo $json | jq -r .path)
|
|
set instances https://github.com/syeopite/priviblur/raw/master/instances.md
|
|
set instances priviblur.fly.dev (curl -L $instances | grep https | awk -F'[][]' '{print $2}')
|
|
set instance (random choice $instances)
|
|
echo "open $instance/$blog$page" >> $QUTE_FIFO
|