From 6094a9fa1548a1b6ca510d0707f1d317121f75ea Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 3 Mar 2022 23:15:35 +0530 Subject: config sync --- config/nvim | 2 +- config/qutebrowser/config.py | 20 ++++++++++++-------- config/qutebrowser/quickmarks | 5 ++--- 3 files changed, 15 insertions(+), 12 deletions(-) (limited to 'config') diff --git a/config/nvim b/config/nvim index 2d3c26c..c410b87 160000 --- a/config/nvim +++ b/config/nvim @@ -1 +1 @@ -Subproject commit 2d3c26c0b4d116f3e5690660f90de36706c2e7d1 +Subproject commit c410b8783002949856b47053b183d937c6f494ef diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index a6d7ef6..ad412f2 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -16,12 +16,12 @@ localleader = ' ' config.load_autoconfig() # Helper Functions {{{ -# def toggle_stylesheets(stylesheets): - # return 'config-cycle content.user_stylesheets \'' \ - # + json.dumps(c.content.user_stylesheets) \ - # + '\' \'' \ - # + json.dumps(c.content.user_stylesheets + stylesheets) \ - # + '\'' +def toggle_stylesheets(stylesheets): + return 'config-cycle content.user_stylesheets \'' \ + + json.dumps(c.content.user_stylesheets) \ + + '\' \'' \ + + json.dumps(c.content.user_stylesheets + stylesheets) \ + + '\'' def bind(key, command, mode): # noqa: E302 """Bind key to command in mode.""" @@ -72,6 +72,7 @@ c.content.autoplay = True c.url.open_base_url = True c.scrolling.bar = 'always' +c.tabs.mousewheel_switching = False c.scrolling.smooth = True c.keyhint.delay = 250 c.input.partial_timeout = 0 @@ -105,7 +106,10 @@ imap('', 'edit-text') nmap('', 'edit-text') nmap(localleader+'e', 'edit-url') -nmap('', 'enter-mode passthrough') +# Pass through actions +nmap('', 'mode-enter passthrough') +pmap('', 'tab-next') +pmap('', 'tab-prev') # pmap('', 'enter-mode normal') # Default nunmap("+") @@ -144,7 +148,7 @@ c.content.user_stylesheets = [ ] # Dark mode -# c.aliases['toggle-darkmode'] = toggle_stylesheets(['styles/dark.css']) +c.aliases['toggle-darkmode'] = toggle_stylesheets(['styles/dark.css']) nmap(localleader + 'td', ':toggle-darkmode') # }}} diff --git a/config/qutebrowser/quickmarks b/config/qutebrowser/quickmarks index fcddad6..8ac3fb0 100644 --- a/config/qutebrowser/quickmarks +++ b/config/qutebrowser/quickmarks @@ -1,4 +1,3 @@ Whatsapp https://web.whatsapp.com/ -Gmail:personal https://mail.google.com/mail/u/0/#inbox -Gmail:work https://mail.google.com/mail/u/1/#inbox -Gmail:colabra https://mail.google.com/mail/u/3 +Gmail:personal https://mail.google.com/mail/u/0 +Gmail:colabra https://mail.google.com/mail/u/1 -- cgit v1.3.1