summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/.config/qutebrowser/config.py19
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/dictionary-search3
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/explorer4
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/history10
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/user-password7
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/zathura-open6
6 files changed, 19 insertions, 30 deletions
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index ec12a62..e3fa7b1 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -4,8 +4,9 @@
c.downloads.location.prompt = False
c.editor.command = ['urxvt', '-e', 'nvim', '-f', '{}']
+c.fonts.hints = 'bold 12pt monospace'
c.hints.chars = 'aoeuidhtns'
-# c.hints.uppercase = True
+c.hints.uppercase = True
c.tabs.favicons.show = False
c.tabs.show = 'multiple'
c.tabs.tabs_are_windows = True
@@ -14,11 +15,11 @@ c.url.default_page = c.url.start_pages[0]
# Bindings for normal mode
config.bind(",b", 'spawn --userscript explorer -b')
-config.bind(",h", 'spawn --userscript explorer -h')
config.bind(",p", 'spawn --userscript explorer')
config.bind(",t", 'spawn --userscript explorer -t')
config.bind(",v", 'spawn -d mpv {url}')
config.bind(";v", 'hint links spawn -d mpv {hint-url}')
+config.bind(",x", 'spawn --userscript user-password')
config.bind("]d", 'set downloads.location.prompt True')
config.bind("[d", 'set downloads.location.prompt False')
config.bind(",do", 'download-open')
@@ -28,14 +29,15 @@ config.bind("f", 'hint all current')
# Bindings for insert mode
config.bind("<Ctrl-A>", 'fake-key <Home>', mode='insert')
+config.bind("<Ctrl-E>", 'fake-key <End>', mode='insert')
config.bind("<Ctrl-H>", 'fake-key <Backspace>', mode='insert')
config.bind("<Ctrl-W>", 'fake-key <Ctrl-Backspace>', mode='insert')
-config.bind("<Ctrl-E>", 'fake-key <End>', mode='insert')
config.bind("<Ctrl-F>", 'fake-key <Right>', mode='insert')
config.bind("<Ctrl-B>", 'fake-key <Left>', mode='insert')
config.bind("<Ctrl-N>", 'fake-key <Down>', mode='insert')
config.bind("<Ctrl-P>", 'fake-key <Up>', mode='insert')
-config.bind("<Ctrl-i>", 'open-editor', mode='insert')
+config.bind("<Ctrl-I>", 'open-editor', mode='insert')
+config.bind("<Ctrl-X>", 'spawn --userscript user-password', mode='insert')
# Bindings for command mode
config.bind('<Ctrl-W>', 'fake-key -g <Ctrl-Backspace>', mode='command')
@@ -45,11 +47,12 @@ config.bind('<Ctrl-N>', 'completion-item-focus next', mode='command')
# Search engines
c.url.searchengines = {
'DEFAULT': 'https://startpage.com/do/search?query={}',
- 'yt': 'https://www.youtube.com/results?search_query={}',
- 'ddg': 'https://duckduckgo.com/?q={}',
- 'google': 'https://www.google.com/search?hl=en&q={}',
'aw': 'https://wiki.archlinux.org/index.php?search={}',
+ 'ddg': 'https://duckduckgo.com/?q={}',
'dic': 'https://dictionary.cambridge.org/dictionary/english/{}',
- 'tr': 'https://translate.google.com/#en/fr/{}',
+ 'google': 'https://www.google.com/search?hl=en&q={}',
+ 'hn': 'https://hn.algolia.com/?query={}',
'scholar': 'https://scholar.google.com/scholar?q={}',
+ 'tr': 'https://translate.google.com/#en/fr/{}',
+ 'yt': 'https://www.youtube.com/results?search_query={}',
}
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search b/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search
deleted file mode 100755
index cb9ad7d..0000000
--- a/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-echo "open -t http://dictionary.cambridge.org/dictionary/english/$QUTE_SELECTED_TEXT" > "$QUTE_FIFO"
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/explorer b/qutebrowser/.local/share/qutebrowser/userscripts/explorer
index f134aa5..02d6812 100755
--- a/qutebrowser/.local/share/qutebrowser/userscripts/explorer
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/explorer
@@ -1,15 +1,13 @@
#!/usr/bin/env bash
scripts_dir="$HOME/.local/share/qutebrowser/userscripts"
-rofi_modi="quickmarks:$scripts_dir/quickmarks,tabs:$scripts_dir/tabs,history:$scripts_dir/history"
+rofi_modi="quickmarks:$scripts_dir/quickmarks,tabs:$scripts_dir/tabs"
rofi_comand="rofi -combi-modi $rofi_modi -modi $rofi_modi -show"
if [[ "$1" = "-t" ]]; then
$rofi_comand tabs
elif [[ "$1" = "-b" ]]; then
$rofi_comand quickmarks
-elif [[ "$1" = "-h" ]]; then
- $rofi_comand history
else
$rofi_comand combi
fi
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/history b/qutebrowser/.local/share/qutebrowser/userscripts/history
deleted file mode 100755
index 2122666..0000000
--- a/qutebrowser/.local/share/qutebrowser/userscripts/history
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-if [ -n "$1" ]
-then
- echo "open $(echo $1 | awk '{print $NF}')" >> $QUTE_FIFO
- exit;
-fi
-
-# List history
-cat ~/.local/share/qutebrowser/history | awk '{print $3 ": " $2}'
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/user-password b/qutebrowser/.local/share/qutebrowser/userscripts/user-password
new file mode 100755
index 0000000..33ca7b5
--- /dev/null
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/user-password
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+target=$(find $HOME/.password-store/ -name "*.gpg" -printf "%P\n" | dmenu -i -p "Get identifier for:")
+echo "fake-key '<Esc>'" >> $QUTE_FIFO
+echo "fake-key '$(basename $target .gpg)'" >> $QUTE_FIFO
+echo "fake-key '<Tab>'" >> $QUTE_FIFO
+echo "fake-key '$(pass show ${target%.gpg})'" >> $QUTE_FIFO
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open
deleted file mode 100755
index 088eff2..0000000
--- a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-fname=/tmp/${RANDOM}.pdf
-
-curl ${QUTE_URL%.pdf}.pdf > ~/test.pdf
-nohup zathura ~/test.pdf