[rofi] Change to alacritty and qute

This commit is contained in:
2021-07-26 22:48:15 -04:00
parent faea153711
commit a24db284f2
3 changed files with 20 additions and 11 deletions

View File

@ -6,20 +6,20 @@ OPTS=-u "$AGENT" -z 1.1
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
URL=$(cat $HISTORY | rofi -fuzzy -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
if [ "$URL" = "" ]; then
exit 0
exit 0
fi
qutebrowser --target window "$URL"