Update configs

This commit is contained in:
Tobias Reisinger 2024-07-02 15:42:26 +02:00
parent cc39076825
commit b033291384
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 54 additions and 30 deletions

View file

@ -1,14 +1,21 @@
import os
def init(c):
c.unbind('d') # I prefer ctrl+w to close tabs. I hit d by mistake too often.
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}')
browser_chromium = os.getenv('BROWSER_CHROMIUM', 'chromium')
c.bind(',eb', f'spawn {browser_chromium} {{url}}')
c.bind(',eB', f'hint links spawn {browser_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(',ep', 'spawn kdeconnect-cli -n Fairphone3 --share {url}')
c.bind(',et', 'spawn ts-control message {url}')
c.bind(',eT', 'hint links spawn ts-control message {hint-url}')
c.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')
@ -16,12 +23,11 @@ def init(c):
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')
c.bind(',p', f'spawn --userscript qutebrowser-keepassxc --key {gpg_key}', mode='normal')
c.bind(',Pu', f'spawn --userscript qutebrowser-keepassxc --only-username --key {gpg_key}', mode='normal')
c.bind(',Pi', f'spawn --userscript qutebrowser-keepassxc --only-password --key {gpg_key}', mode='normal')
c.bind(',Po', f'spawn --userscript qutebrowser-keepassxc --only-otp --key {gpg_key}', mode='normal')
c.bind(',Pp', f'spawn --userscript qutebrowser-keepassxc --autotype --key {gpg_key}', mode='normal')
# output
c.bind(',oq', 'spawn --userscript qr {url}')