aboutsummaryrefslogtreecommitdiff
path: root/Browser
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2016-06-06 17:48:25 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2016-06-06 17:48:25 +0100
commit4e68e6cb1bea76d152fac3df4ab58d8fbf98e367 (patch)
tree639d198c777eaf20e4135a63c44a2dd345198256 /Browser
parent60cb259e103b3e1a8f7c43ed8dd2250137d47578 (diff)
downloaddotfiles-4e68e6cb1bea76d152fac3df4ab58d8fbf98e367.tar.gz
dotfiles-4e68e6cb1bea76d152fac3df4ab58d8fbf98e367.tar.bz2
dotfiles-4e68e6cb1bea76d152fac3df4ab58d8fbf98e367.zip
use aria2c to downloa, mupdf to open and status
Diffstat (limited to 'Browser')
-rw-r--r--Browser/vimb/config23
-rw-r--r--Browser/vimb/config.static7
2 files changed, 18 insertions, 12 deletions
diff --git a/Browser/vimb/config b/Browser/vimb/config
index 04f5185..4955cb1 100644
--- a/Browser/vimb/config
+++ b/Browser/vimb/config
@@ -5,17 +5,20 @@ set scripts=false
set spacial-navigation=true
shortcut-add wiki=https://en.wikipedia.org/w/index.php?search=$0
-shortcut-add gl=https://encrypted.google.com/#q=$0
+shortcut-add gl=https://encrypted.google.com/search?hl=en&source=hp&biw=&bih=&q=$0&btnG=Google+Search&gbv=1
shortcut-add dl=https://duckduckgo.com/lite/?q=$0
shortcut-add map=https://maps.google.com/maps?saddr=$0&daddr=$1
shortcut-add gh=https://github.com/$0/$1
shortcut-add arrp=https://www.archlinux.org/packages/?q=$0
shortcut-add arwk=https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=$0&go=Go
shortcut-add aur=https://aur.archlinux.org/packages/?K=$0
-shortcut-default dl
+shortcut-default gl
set download-path=~/Downloads
+set download-use-external=true
+set download-command=/usr/bin/bash -c 'ratpoison -c "echo Starting download" && cd / && aria2c "%s" --referer="$VIMB_URI" --out="$VIMB_FILE" --user-agent="$VIMB_USER_AGENT" --load-cookies="$VIMB_COOKIES" && if [ ${VIMB_FILE: -4} == ".pdf" ]; then mupdf "$VIMB_FILE";else ratpoison -c "echo Complete `basename $VIMB_FILE`";fi'
+
set cookie-accept=always
set cookie-expire-time=0
set cookie-timeout=0
@@ -32,11 +35,11 @@ nmap ) <C-N>
nmap S :set scripts=false<CR> r :shellcmd mpv --no-terminal "%s"<CR> :set scripts=true<CR>
-set status-color-bg=#150620
-set status-color-fg=#e06131
-set status-ssl-color-bg=#150620
-set status-ssl-color-fg=#e06131
-set completion-bg-active=#150620
-set completion-bg-normal=#150620
-set completion-fg-active=#a03714
-set completion-fg-normal=#e06131
+set status-color-bg=#201405
+set status-color-fg=#b3d184
+set status-ssl-color-bg=#201405
+set status-ssl-color-fg=#b3d184
+set completion-bg-active=#201405
+set completion-bg-normal=#201405
+set completion-fg-active=#6faf63
+set completion-fg-normal=#b3d184
diff --git a/Browser/vimb/config.static b/Browser/vimb/config.static
index e5ce804..d670e39 100644
--- a/Browser/vimb/config.static
+++ b/Browser/vimb/config.static
@@ -5,17 +5,20 @@ set scripts=false
set spacial-navigation=true
shortcut-add wiki=https://en.wikipedia.org/w/index.php?search=$0
-shortcut-add gl=https://encrypted.google.com/#q=$0
+shortcut-add gl=https://encrypted.google.com/search?hl=en&source=hp&biw=&bih=&q=$0&btnG=Google+Search&gbv=1
shortcut-add dl=https://duckduckgo.com/lite/?q=$0
shortcut-add map=https://maps.google.com/maps?saddr=$0&daddr=$1
shortcut-add gh=https://github.com/$0/$1
shortcut-add arrp=https://www.archlinux.org/packages/?q=$0
shortcut-add arwk=https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=$0&go=Go
shortcut-add aur=https://aur.archlinux.org/packages/?K=$0
-shortcut-default dl
+shortcut-default gl
set download-path=~/Downloads
+set download-use-external=true
+set download-command=/usr/bin/bash -c 'ratpoison -c "echo Starting download" && cd / && aria2c "%s" --referer="$VIMB_URI" --out="$VIMB_FILE" --user-agent="$VIMB_USER_AGENT" --load-cookies="$VIMB_COOKIES" && if [ ${VIMB_FILE: -4} == ".pdf" ]; then mupdf "$VIMB_FILE";else ratpoison -c "echo Complete `basename $VIMB_FILE`";fi'
+
set cookie-accept=always
set cookie-expire-time=0
set cookie-timeout=0