mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-02 09:27:44 +02:00
startpage now in browser and not random rtv things
This commit is contained in:
parent
4466fbd75e
commit
d126294422
@ -6,18 +6,17 @@
|
|||||||
# Anything else, it search it.
|
# Anything else, it search it.
|
||||||
# original by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
# original by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||||
|
|
||||||
browser=${RTVBROWSER:-firefox}
|
|
||||||
|
|
||||||
pgrep -x dmenu && exit
|
pgrep -x dmenu && exit
|
||||||
|
|
||||||
choice=$(echo "Startpage" | dmenu -i -p "Search Startpage:") || exit 1
|
choice=$(echo "Startpage" | dmenu -i -p "Search Startpage:") || exit 1
|
||||||
|
|
||||||
if [ "$choice" = "Startpage" ]; then
|
if [ "$choice" = "Startpage" ]; then
|
||||||
$RTV_BROWSER "https://startpage.com"
|
$BROWSER "https://startpage.com"
|
||||||
else
|
else
|
||||||
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
|
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
|
||||||
$RTV_BROWSER "$choice"
|
$BROWSER "$choice"
|
||||||
else
|
else
|
||||||
$RTV_BROWSER "https://startpage.com/do/search/?q=$choice"
|
$BROWSER "https://startpage.com/do/search/?q=$choice"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user