1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-19 21:32:48 +00:00

ditch splash for priviblur fully

This commit is contained in:
Phantop 2024-06-21 10:39:40 -04:00
parent a6e68998d1
commit 5d48489fad
3 changed files with 10 additions and 2 deletions

View file

@ -39,7 +39,7 @@ bind = {
'E': 'config-cycle -p content.javascript.enabled ;; reload', 'E': 'config-cycle -p content.javascript.enabled ;; reload',
's1': 'download-open', 's1': 'download-open',
'sa': 'open -t archive.is/submit/?url={url}', 'sa': 'open -t archive.is/submit/?url={url}',
'sb': 'open tumblash.fly.dev/?u={url}', 'sb': 'spawn -u priviblur',
'sc': 'toggle-dark', 'sc': 'toggle-dark',
'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'", 'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'",
'sg': 'debug-dump-page ~/Downloads/dump.html', 'sg': 'debug-dump-page ~/Downloads/dump.html',

View file

@ -73,7 +73,7 @@ m = {
"www.twitch.tv" : o(s, 'twineo.exozy.me'), "www.twitch.tv" : o(s, 'twineo.exozy.me'),
"discord.com" : o(s, 'canary.discord.com'), "discord.com" : o(s, 'canary.discord.com'),
"tumblr.com" : o(s, 'tumblash.fly.dev'), "tumblr.com" : o(s, 'priviblur.fly.dev'),
"www.tumblr.com" : o(s, 'priviblur.fly.dev'), "www.tumblr.com" : o(s, 'priviblur.fly.dev'),
"www.npr.org" : o(s, 'text.npr.org'), "www.npr.org" : o(s, 'text.npr.org'),
"www.goodreads.com" : o(s, 'bl.vern.cc'), "www.goodreads.com" : o(s, 'bl.vern.cc'),

View file

@ -0,0 +1,8 @@
#!/usr/bin/fish
set json (trurl --json $QUTE_URL | jq .[].parts)
set blog (echo $json | jq -r .host | cut -d. -f1)
set page (echo $json | jq -r .path)
set instances https://github.com/syeopite/priviblur/raw/master/instances.md
set instances priviblur.fly.dev (curl -L $instances | grep https | awk -F'[][]' '{print $2}')
set instance (random choice $instances)
echo "open $instance/$blog$page" >> $QUTE_FIFO