1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-02 19:43:44 +00:00
dotfiles/.config/qutebrowser/userscripts/switchtor

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