From 2274d0839b5bee200a7e7174f1196fcf731ab058 Mon Sep 17 00:00:00 2001 From: stkhan Date: Fri, 29 Apr 2022 21:17:45 -0500 Subject: Don't launch browser if no search in browser launch scripts --- dwm-6.3/scripts/dwm-goto | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dwm-6.3/scripts/dwm-goto') diff --git a/dwm-6.3/scripts/dwm-goto b/dwm-6.3/scripts/dwm-goto index 2033348..c45f9ab 100755 --- a/dwm-6.3/scripts/dwm-goto +++ b/dwm-6.3/scripts/dwm-goto @@ -3,6 +3,10 @@ URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //' | sort -u | dmenu -p "Enter a URL: ") CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" -# saves url to history -echo $URL >> ~/.config/surf/history.txt -$CMD +if [[ -z "$URL" ]]; then + exit +else + # saves url to history + echo $URL >> ~/.config/surf/history.txt + $CMD +fi -- cgit v1.2.3