[rofi] Back to qutebrowser
This commit is contained in:
@ -66,7 +66,7 @@ main() {
|
||||
|
||||
if [[ -n "$query" ]]; then
|
||||
URL=${URLS[$platform]}$(urlencode "$query")
|
||||
/usr/local/bin/vimb $URL
|
||||
~/.asdf/shims/qutebrowser --target window $URL
|
||||
else
|
||||
exit
|
||||
fi
|
||||
|
||||
21
rofi/.config/rofi/www-incognito.sh
Executable file
21
rofi/.config/rofi/www-incognito.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3"
|
||||
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
|
||||
fi
|
||||
#TMP=$(tempfile)
|
||||
#cat $HISTORY | sort | uniq >>$TMP && mv $TMP $HISTORY
|
||||
#rm -f $TMP
|
||||
|
||||
if [ "$URL" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
~/.asdf/shims/qutebrowser --private-window "$URL"
|
||||
@ -22,4 +22,4 @@ if [ "$URL" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
/usr/local/bin/vimb "$URL"
|
||||
~/.asdf/shims/qutebrowser --target window "$URL"
|
||||
|
||||
Reference in New Issue
Block a user