mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-27 07:26:43 +00:00
Qute: switchtor
This commit is contained in:
parent
e662692ead
commit
bbd49a5129
|
@ -24,6 +24,7 @@ settings:
|
|||
<Ctrl+r>: spawn --userscript readability
|
||||
<Ctrl+w>: tab-close
|
||||
sd: spawn -u open_download
|
||||
st: spawn -u switchtor
|
||||
passthrough:
|
||||
<Ctrl+Shift+Escape>exit: leave-mode
|
||||
<Shift+Escape>: null
|
||||
|
@ -166,6 +167,8 @@ settings:
|
|||
https://discordapp.com: true
|
||||
content.pdfjs:
|
||||
global: true
|
||||
content.persistent_storage:
|
||||
global: ask
|
||||
content.plugins:
|
||||
global: false
|
||||
content.print_element_backgrounds:
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
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