qutebrowser: add bitwarden integration & polish

+ Add bitwarden integration
+ Polish xkcd userstyle (to better match the alucard theme)
+ Rethink qutebrowser keybinds. Some were redundant, others misplaced.
This commit is contained in:
Henrik Lissner 2021-02-06 01:26:06 -05:00
parent 54058c7e47
commit 8d39061f48
2 changed files with 20 additions and 14 deletions

View file

@ -105,15 +105,24 @@ c.window.title_format = '{current_title} - {host} - qutebrowser'
# #
## Keybindings ## Keybindings
config.bind('zz', 'close')
config.bind(';m', 'tab-mute')
config.bind(';v', 'spawn mpv {url}')
config.bind(';V', 'hint links spawn mpv {hint-url}')
# Universal Emacsien C-g alias for Escape # Universal Emacsien C-g alias for Escape
config.bind('<Ctrl-g>', 'clear-keychain ;; search ;; fullscreen --leave') config.bind('<Ctrl-g>', 'clear-keychain ;; search ;; fullscreen --leave')
for mode in ['caret', 'command', 'hint', 'insert', 'passthrough', 'prompt', 'register']: for mode in ['caret', 'command', 'hint', 'insert', 'passthrough', 'prompt', 'register']:
config.bind('<Ctrl-g>', 'leave-mode', mode=mode) config.bind('<Ctrl-g>', 'mode-leave', mode=mode)
# ...
config.bind('zz', 'close')
config.bind('tm', 'tab-mute')
config.bind('wi', 'devtools bottom')
# ;v already bound to 'spawn mpv {url}'
config.bind(';V', 'hint links spawn mpv {hint-url}')
# Bitwarden integration
config.bind(";p", ':spawn -u qute-bwmenu')
config.bind(";P", 'spawn bwmenu')
## Ex-commands
## Bindings for normal mode ## Bindings for normal mode
# config.bind("'", 'enter-mode jump_mark') # config.bind("'", 'enter-mode jump_mark')
@ -375,9 +384,6 @@ config.bind('<Ctrl-F>', 'rl-forward-word', mode='prompt')
## Bindings for register mode ## Bindings for register mode
# config.bind('<Escape>', 'leave-mode', mode='register') # config.bind('<Escape>', 'leave-mode', mode='register')
## Ex-commands
# c.aliases["m"] = ":tab-mute"
## Per-domain settings ## Per-domain settings
c.content.user_stylesheets = glob.glob(os.path.expanduser('~/.local/share/qutebrowser/userstyles.css')) c.content.user_stylesheets = glob.glob(os.path.expanduser('~/.local/share/qutebrowser/userstyles.css'))

View file

@ -1,7 +1,7 @@
[qb-domain$="xkcd.com"] { [qb-domain$="xkcd.com"] {
body { body {
background: #161616 !important; background: #282a36 !important;
color: #FAFAFA !important; color: #f8f8f2 !important;
} }
img, div[class="self"] { img, div[class="self"] {
@ -16,11 +16,11 @@
} }
.box { .box {
background: #000 !important; background: #1E2029 !important;
} }
#topLeft a { #topLeft a {
color: #CCCCCC !important; color: #e0e0e0 !important;
} }
ul.comicNav li a { ul.comicNav li a {
@ -49,7 +49,7 @@
[qb-domain="m-xkcd.com"] { [qb-domain="m-xkcd.com"] {
body { body {
background: #161616 !important; background: #282a36 !important;
} }
#title { #title {