From d1262944224ff83d5d2a9f7db04c868b2b9cd6ed Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 6 Apr 2020 01:39:33 +0200 Subject: [PATCH] startpage now in browser and not random rtv things --- .local/bin/tools/dwm/startpagesearch | 7 +++---- .xinitrc | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.local/bin/tools/dwm/startpagesearch b/.local/bin/tools/dwm/startpagesearch index bcd8190..984f3ba 100755 --- a/.local/bin/tools/dwm/startpagesearch +++ b/.local/bin/tools/dwm/startpagesearch @@ -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 diff --git a/.xinitrc b/.xinitrc index 0d6fb77..2912428 100644 --- a/.xinitrc +++ b/.xinitrc @@ -9,6 +9,4 @@ xrandr --auto xterm -geometry 80x24+10+10 -fn 10x20 setbg -while :; do - ssh-agent dwm || break -done +exec dwm