1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-05 14:34:47 +00:00
dotfiles/.local/share/qutebrowser/userscripts/switchtor
2019-12-27 19:22:48 -05:00

9 lines
267 B
Fish
Executable file

#!/usr/bin/fish
if test -e $QUTE_DATA_DIR/userscripts/tor
echo "set content.proxy system" >> "$QUTE_FIFO"
rm $QUTE_DATA_DIR/userscripts/tor
else
echo "set content.proxy socks://localhost:9050/" >> "$QUTE_FIFO"
touch $QUTE_DATA_DIR/userscripts/tor
end