mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-27 23:46:42 +00:00
Qute: switchtor
This commit is contained in:
parent
e662692ead
commit
bbd49a5129
|
@ -24,6 +24,7 @@ settings:
|
||||||
<Ctrl+r>: spawn --userscript readability
|
<Ctrl+r>: spawn --userscript readability
|
||||||
<Ctrl+w>: tab-close
|
<Ctrl+w>: tab-close
|
||||||
sd: spawn -u open_download
|
sd: spawn -u open_download
|
||||||
|
st: spawn -u switchtor
|
||||||
passthrough:
|
passthrough:
|
||||||
<Ctrl+Shift+Escape>exit: leave-mode
|
<Ctrl+Shift+Escape>exit: leave-mode
|
||||||
<Shift+Escape>: null
|
<Shift+Escape>: null
|
||||||
|
@ -166,6 +167,8 @@ settings:
|
||||||
https://discordapp.com: true
|
https://discordapp.com: true
|
||||||
content.pdfjs:
|
content.pdfjs:
|
||||||
global: true
|
global: true
|
||||||
|
content.persistent_storage:
|
||||||
|
global: ask
|
||||||
content.plugins:
|
content.plugins:
|
||||||
global: false
|
global: false
|
||||||
content.print_element_backgrounds:
|
content.print_element_backgrounds:
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
readability.html
|
readability.html
|
||||||
|
tor
|
||||||
|
|
8
.local/share/qutebrowser/userscripts/switchtor
Executable file
8
.local/share/qutebrowser/userscripts/switchtor
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue