1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

general updates

This commit is contained in:
tiynger
2019-09-11 12:11:37 +02:00
parent b7afbd8232
commit 002321c6bf
6 changed files with 37 additions and 140 deletions

View File

@@ -10,11 +10,11 @@ pgrep -x dmenu && exit
choice=$(echo "🦆" | dmenu -i -p "Search DuckDuckGo:") || exit 1
if [ "$choice" = "🦆" ]; then
$browser "https://duckduckgo.com"
$RTV_BROWSER "https://duckduckgo.com"
else
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
$browser "$choice"
$RTV_BROWSER "$choice"
else
$browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
$RTV_BROWSER "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
fi
fi