-
Notifications
You must be signed in to change notification settings - Fork 0
/
pentadactylrc
48 lines (39 loc) · 1.45 KB
/
pentadactylrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
" ~/.pentadactylrc
loadplugins '\.(js|penta)$'
group user
set guioptions=Csn
set hlfind
" Speed up scrolling
nmap -b h 5h
nmap -b j 5j
nmap -b k 5k
nmap -b l 5l
" Hide the status bar when using fullscreen
au fullscreen on set go-=s
au fullscreen off set go+=s
" Open the current URL as an argument to quvi
nmap <S-q> -s -js commands.execute("!quvi '" + content.location.href + "' &> /dev/null &");
" Custom hint modes
" Thanks to holomorph and John-Galt
js <<EOF
hints.addMode("q", "Launch video from hint", function (elem, loc)
commands.execute("!quvi '" + loc + "' &> /dev/null &"));
EOF
" Toggle bookmark toolbar
nmap s -e :toolbartoggle Bookmarks Toolbar
" Vimium styled hints
set hintkeys=fdsartgbvecwxqyiopmnhzuljk
hi Hint text-transform: uppercase;
hi Hint -a font-family: "Arial", "Sans";
hi Hint -a font-weight: bold;
hi Hint -a font-size: 11px;
hi Hint -a text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
hi Hint -a color: #302505;
hi Hint -a padding: 1px 3px 0px 3px;
hi Hint -a background: -moz-linear-gradient(top, #fff785, #ffc524);
hi Hint -a border: 1px #c38a22 solid;
hi Hint -a -moz-border-radius: 3px;
hi Hint -a -moz-box-shadow: 0 3px 7px 0px rgba(0, 0, 0, 0.3);
hi HintElem background-color: inherit !important;
hi HintActive background-color: inherit !important;
hi HintImage opacity: 0.5 !important;