49 lines
2.2 KiB
Python
49 lines
2.2 KiB
Python
def init(c):
|
|
c.bind(',v', 'spawn io.freetubeapp.FreeTube {url}')
|
|
c.bind(',V', 'hint links spawn io.freetubeapp.FreeTube {hint-url}')
|
|
|
|
# external
|
|
c.bind(',eb', 'spawn chromium {url}')
|
|
c.bind(',eB', 'hint links spawn chromium {hint-url}')
|
|
c.bind(',ef', 'spawn firefox {url}')
|
|
c.bind(',eF', 'hint links spawn firefox {hint-url}')
|
|
c.bind(',es', 'spawn xdg-open steam://openurl/{url}')
|
|
|
|
|
|
c.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')
|
|
c.bind(',rr', 'open {url:scheme}://unddit.com{url:path}{url:query}')
|
|
c.bind(',rt', 'open {url:scheme}://teddit.net{url:path}{url:query}')
|
|
|
|
gpg_key = '723B78C0BF8D8C721D2C4EEF41E544A54E2533B2'
|
|
|
|
c.bind(',p', 'spawn --userscript qutebrowser-keepassxc --key ' + gpg_key, mode='normal')
|
|
c.bind(',Pu', 'spawn --userscript qutebrowser-keepassxc --only-username --key ' + gpg_key, mode='normal')
|
|
c.bind(',Pi', 'spawn --userscript qutebrowser-keepassxc --only-password --key ' + gpg_key, mode='normal')
|
|
c.bind(',Po', 'spawn --userscript qutebrowser-keepassxc --only-otp --key ' + gpg_key, mode='normal')
|
|
c.bind(',Pp', 'spawn --userscript qutebrowser-keepassxc --autotype --key ' + gpg_key, mode='normal')
|
|
|
|
# output
|
|
c.bind(',oq', 'spawn --userscript qr {url}')
|
|
c.bind(',oQ', 'hint links spawn --userscript qr {hint-url}')
|
|
c.bind(',oj', 'spawn --userscript format_json dracula')
|
|
# cookies
|
|
c.bind(',cd', 'jseval document.cookie = "XDEBUG_SESSION=phpstorm; expires=Fri, 01 Jan 9999 00:00:00 GMT; path=/"')
|
|
# query
|
|
c.bind(',qd', 'jseval let sp = new URLSearchParams(window.location.search); sp.append("filter-source", "1"); sp.append("filter-source", "2"); window.location.search = sp.toString();')
|
|
|
|
c.bind('<Alt-9>', 'tab-focus 9')
|
|
|
|
c.bind('<Ctrl-Tab>', 'tab-next')
|
|
c.bind('<Ctrl-Shift-Tab>', 'tab-prev')
|
|
|
|
c.unbind('M')
|
|
c.bind('M', 'spawn --userscript qutebrowser-linkwarden', mode='normal')
|
|
|
|
try:
|
|
import unalix
|
|
c.unbind('yy')
|
|
c.unbind('yY')
|
|
c.bind('yy', 'spawn --userscript qutebrowser-clear-url', mode='normal')
|
|
c.bind('yY', 'spawn --userscript qutebrowser-clear-url -s', mode='normal')
|
|
except:
|
|
pass
|