#!/bin/sh

invidious_instance="https://invidious.cz"
browser="vivaldi"
#browser="firefox"

query="$(dmenu </dev/null)"

rp() {
	#notify-send "$*"
}

if [[ $query = "" ]]; then
	rp "opening up invidious"
	$browser "$invidious_instance"
else
	rp "looking up videos: $query"
	$browser "$invidious_instance/search?q=$query"
fi
