15 lines
316 B
Bash
Executable File
15 lines
316 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
query=$( (echo ) | rofi -dmenu -i -lines 0 -matching fuzzy -location 0 -p " " )
|
|
|
|
if [[ -n "$query" ]]; then
|
|
# https://scholar.google.com/scholar?hl=en&q=
|
|
# url=https://www.duckduckgo.com/?q=$query
|
|
url=https://search.brave.com/search?q=$query
|
|
xdg-open "$url"
|
|
else
|
|
exit
|
|
fi
|
|
|
|
exit 0
|