[rofi] Switch to firefox

This commit is contained in:
2021-08-20 09:46:56 -04:00
parent 25476f17bf
commit 12a7240b9d
3 changed files with 10 additions and 6 deletions

View File

@ -16,7 +16,7 @@ main() {
query=$(rofi -dmenu -matching fuzzy -location 0 -p "Query > ") query=$(rofi -dmenu -matching fuzzy -location 0 -p "Query > ")
if [[ -n "$query" ]]; then if [[ -n "$query" ]]; then
url=$URL$query url=$URL$query
/home/powellc/.asdf/shims/qutebrowser ":open -w $url" firefox --new-window $url
else else
exit exit
fi fi

View File

@ -77,7 +77,7 @@ main() {
elif [[ $platform = 'ffsamlconf' ]]; then elif [[ $platform = 'ffsamlconf' ]]; then
firefox $URL firefox $URL
else else
qutebrowser --target window $URL firefox --new-window $URL
fi fi
else else
exit exit

View File

@ -22,4 +22,8 @@ if [ "$URL" = "" ]; then
exit 0 exit 0
fi fi
qutebrowser --target window "$URL" if [[ "$URL" = http* ]]; then
firefox --new-window "$URL"
else
firefox --new-window --search "$URL"
fi