[vimb] Moving from qb to vimb for browsing

This commit is contained in:
2021-02-14 23:32:05 -05:00
parent 2814cccf84
commit 864ce914e4
5 changed files with 44 additions and 23 deletions

View File

@ -5,23 +5,21 @@ OPTS=-u "$AGENT" -z 1.1
#OPTS="-z 1.5"
HISTORY=~/var/rofi-www-history
if [ "$1" = "" ]
then
URL=`cat $HISTORY | rofi -hide-scrollbar -dmenu -p "URL: "`
echo "$URL" | grep -e ^http || CLIP=https://$CLIP
echo "$URL" >> $HISTORY
if [ "$1" = "" ]; then
URL=$(cat $HISTORY | rofi -hide-scrollbar -dmenu -p "URL: ")
echo "$URL" | grep -e ^http || CLIP=https://$CLIP
echo "$URL" >>$HISTORY
else
URL=$@
echo "$@" | grep -e ^http && CLIP=https://$CLIP
echo "$@" >> $HISTORY
URL=$@
echo "$@" | grep -e ^http && CLIP=https://$CLIP
echo "$@" >>$HISTORY
fi
TMP=`tempfile`
cat $HISTORY | sort | uniq >> $TMP && mv $TMP $HISTORY
rm -f $TMP
TMP=$(tempfile)
cat $HISTORY | sort | uniq >>$TMP && mv $TMP $HISTORY
rm -f $TMP
if [ "$URL" = "" ]
then
exit 0
if [ "$URL" = "" ]; then
exit 0
fi
/home/powellc/.asdf/shims/qutebrowser ":open -w $URL"
/usr/local/bin/vimb "$URL"