blob: c45f9ab1a0e3c2d59666dcb0cc1da32f248a7c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
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"
if [[ -z "$URL" ]]; then
exit
else
# saves url to history
echo $URL >> ~/.config/surf/history.txt
$CMD
fi
|