1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 12:37:46 +01:00

startpage now in browser and not random rtv things

This commit is contained in:
TiynGER 2020-04-06 01:39:33 +02:00
parent 9fa9a5e5dd
commit ec70c48df2
2 changed files with 4 additions and 7 deletions

View File

@ -6,18 +6,17 @@
# Anything else, it search it.
# original by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
browser=${RTVBROWSER:-firefox}
pgrep -x dmenu && exit
choice=$(echo "Startpage" | dmenu -i -p "Search Startpage:") || exit 1
if [ "$choice" = "Startpage" ]; then
$RTV_BROWSER "https://startpage.com"
$BROWSER "https://startpage.com"
else
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
$RTV_BROWSER "$choice"
$BROWSER "$choice"
else
$RTV_BROWSER "https://startpage.com/do/search/?q=$choice"
$BROWSER "https://startpage.com/do/search/?q=$choice"
fi
fi

View File

@ -9,6 +9,4 @@ xrandr --auto
xterm -geometry 80x24+10+10 -fn 10x20
setbg
while :; do
ssh-agent dwm || break
done
exec dwm