#!/bin/sh URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //' | sort -u | dmenu -p "Enter a URL: ") POSTURL=$(echo $URL | sed 's/-e//; s/reddit.com/old.reddit.com/') CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $POSTURL" echo $POSTURL if [[ -z "$URL" ]]; then exit else # saves url to history echo $URL >> ~/.config/surf/history.txt $CMD fi