org-config

General config files, using org-babel
git clone https://git.jamzattack.xyz/org-config
Log | Files | Refs

vimb.org (3460B)


      1 # -*- org-use-property-inheritance: t; -*-
      2 #+TITLE: vimb
      3 #+PROPERTY: header-args: :mkdirp yes
      4 
      5 * Config
      6 :PROPERTIES:
      7 :header-args: :tangle "xdg-config/vimb/config" :mkdirp yes
      8 :END:
      9 
     10 ** Bindings
     11 
     12 *** movement
     13 
     14 Emacsy C-{p,n} instead of {j,k}
     15 
     16 #+begin_src conf
     17   nnoremap <C-p> k
     18   nnoremap <C-n> j
     19   nnoremap <backspace> <C-b>
     20 #+end_src
     21 
     22 *** C-g
     23 
     24 C-g instead of <Esc> everywhere.
     25 
     26 #+begin_src conf
     27   nmap <C-g> <Esc>
     28   imap <C-g> <Esc>
     29   cmap <C-g> <Esc>
     30 #+end_src
     31 
     32 *** stylesheet
     33 
     34 Turn custom stylesheet on/off with C-s
     35 
     36 #+begin_src conf
     37   nnoremap <C-s> :set stylesheet!<CR>
     38 #+end_src
     39 
     40 *** EWW-like navigation
     41 
     42 **** history
     43 
     44 | l | back    |
     45 | r | forward |
     46 | u | up      |
     47 
     48 #+begin_src conf
     49   nnoremap l <C-o>
     50   nnoremap r <C-i>
     51   nnoremap u gu
     52 #+end_src
     53 
     54 **** reloading, choosing url
     55 
     56 | G | Enter search/URL     |
     57 | g | reload without cache |
     58 | R | reload with cache    |
     59 
     60 #+begin_src conf
     61   nnoremap G o
     62   nnoremap g R
     63   nnoremap R r
     64 #+end_src
     65 
     66 **** clipboard
     67 
     68 | w | copy current url     |
     69 | W | hint for url to copy |
     70 
     71 #+begin_src conf
     72   nnoremap w y
     73   nnoremap W ;y
     74 #+end_src
     75 
     76 ** Settings
     77 
     78 *** Dvorak hints
     79 
     80 I use dvorak, so I want the hinting keys to be on the home row.
     81 
     82 #+begin_src conf
     83   set hint-keys=uhetonas
     84 #+end_src
     85 
     86 *** Colours & font
     87 **** Input
     88 
     89 #+begin_src conf
     90   set input-css=color:black;background-color:#ffffd0;font:8pt monospace;
     91   set input-error-css=color:black;background-color:#a00000;font:8pt monospace;
     92 #+end_src
     93 
     94 **** Status
     95 
     96 #+begin_src conf
     97   set status-css=color:#ffffd0;background-color:black;font:8pt monospace;
     98   set status-ssl-css=color:#ffffd0;background-color:black;font:8pt monospace;
     99   set status-ssl-invalid-css=color:#a00000;background-color:#ebdbb1;font:8pt monospace;
    100 #+end_src
    101 
    102 **** Completion
    103 
    104 #+begin_src conf
    105   set completion-css=color:black;background-color:#ffffd0;font:8pt monospace
    106   set completion-hover-css=color:black;background-color:#dddda0;font:8pt monospace
    107   set completion-selected-css=color:#ffffd0;background-color:black;font:8pt monospace
    108 #+end_src
    109 
    110 **** Don't enable stylesheet on startup
    111 
    112 #+begin_src conf
    113   set stylesheet=false
    114 #+end_src
    115 
    116 * COMMENT Style
    117 :PROPERTIES:
    118 :header-args: :tangle "xdg-config/vimb/style.css" :mkdirp yes
    119 :END:
    120 
    121 ** General
    122 
    123 background and foreground colour
    124 
    125 #+begin_src css
    126   ,*,div,pre,textarea,body,input,td,tr,p {
    127       background-color: #ffffd0 !important;
    128       /* background-image: none ; */
    129       color: black !important;
    130   }
    131 #+end_src
    132 
    133 *** Headings
    134 
    135 #+begin_src css
    136   h1,h2,h3,h4 {
    137       background-color: #ffffd0 !important;
    138       color: black !important;
    139   }
    140 #+end_src
    141 
    142 *** Links
    143 
    144 #+begin_src css
    145   a {
    146       color: #458588 !important;
    147   }
    148 
    149   a:hover,a:focus {
    150       color: #b8bb26 !important;
    151   }
    152 
    153   a:visited {
    154       color: #b16286 !important;
    155   }
    156 #+end_src
    157 
    158 ** Vimb
    159 
    160 make hints a bit more readable
    161 
    162 #+begin_src css
    163   span[vimbhint^='label'] {
    164       background-color: black !important;
    165       border: 1px solid #dddda0 !important;
    166       color: #dddda0 !important;
    167       font: bold 10pt monospace !important;
    168       opacity: 1 !important;
    169       padding: .1em .1em !important;
    170       /* text-transform: uppercase !important; */
    171   }
    172 
    173   span[vimbhint='label focus'] {
    174       font: bold 10pt monospace !important;
    175   }
    176 
    177   ,*[vimbhint^='hint'] {
    178       background-color: #00000000 !important;
    179       /* color: #dddda0 !important; */
    180   }
    181 
    182   ,*[vimbhint='hint focus'] {
    183       background-color: #806699cc !important;
    184       /* color: #dddda0 !important; */
    185   }
    186 #+end_src
    187