Una vez que hemos instalado UZBL, vamos a configurar.
1) Los ficheros de configuración de Uzbl van en ~/.config/uzbl/, el propio programa crea ese directorio cuando lo ejecutas por primera vez.
2) La historia, las cockies, los scripts, etc. van en ~/.local/share/uzbl/. Y los scripts van en ~/.local/share/uzbl/scripts/.
3) El fichero de configuración principal se llama config, y está en ~/.config/uzbl/. En él están definidos todos los atajos de teclado, y prácticamente todo el comportamiento de Uzbl. Es posible crear otro fichero, por ejemplo uzbl.name, en el que se cambian algunas cosas, por ejemplo, añadir algunos atajos para diccionarios, wikis, etc. (ver abajo). Para que lo lea, en la última linea de config añadimos:
include /home/name/.config/uzbl/config.name
Y listo.
# # === Keyboard bindings ====================================================== # With this command you can enter in any command at runtime when prefixed with # a colon. #@cbind :_ = %s # --- Page movement binds --- #@cbind j = scroll vertical 20 #@cbind k = scroll vertical -20 #@cbind h = scroll horizontal -20 #@cbind l = scroll horizontal 20 #@cbind <Page_Up> = scroll vertical -100% #@cbind <Page_Down> = scroll vertical 100% #@cbind << = scroll vertical begin #@cbind >> = scroll vertical end #@cbind ^ = scroll horizontal begin #@cbind $ = scroll horizontal end #@cbind <Space> = scroll vertical end # Para que espacio avance por pantallas y no salte al final de la página @cbind <Space> = scroll vertical 100% # --- Navigation binds --- #@cbind b = back #@cbind m = forward #@cbind S = stop #@cbind r = reload #@cbind R = reload_ign_cache # --- Zoom binds --- #@cbind + = zoom_in #@cbind - = zoom_out #@cbind T = toggle_zoom_type #@cbind 1 = set zoom_level = 1.0 #@cbind 2 = set zoom_level = 2.0 # --- Appearance binds --- #@cbind t = toggle_status # --- Page searching binds --- #@cbind /* = search %s #@cbind ?* = search_reverse %s # Jump to next and previous items #@cbind n = search #@cbind N = search_reverse # Para que al abrir una nueva página no vuelva a abrir la web de Uzbl, sino una en blanco @cbind w = event REQ_NEW_WINDOW about:blank # Para abrir mi página local con enlaces con el atajo 'ga' @cbind ga = uri file:///home/ama/.config/uzbl/ama.html # --- Web searching binds --- @cbind gg<Google:>_ = uri http://www.google.com/search?q=\@<encodeURIComponent(%r)>\@ @cbind \\awiki<Archwiki:>_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@<encodeURIComponent(%r)>\@&go=Go @cbind \\wiki<Wikipedia:>_=uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go @cbind \\wike<Wikipedia:>_=uri http://es.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go @cbind \\aweb<AllTheWeb:>_ = uri http://www.alltheweb.com/q=\@<encodeURIComponent(%r)>\@&go=Go @cbind \\arc<Archive.org:>_ = uri http://www.archive.org/search.php?query=\@<encodeURIComponent(%r)>\@&go=Go @cbind \\dic<dictionary.com:>_ = uri http://www.dictionary.com/browse/\@<encodeURIComponent(%r)>\@ @cbind \\abbr<abbreviations.com:>_ = uri http://www.abbreviations.com/\@<encodeURIComponent(%r)>\@ @cbind \\ext<filext.com:>_ = uri http://filext.com/file-extension/\@<encodeURIComponent(%r)>\@ @cbind \\dthes<thesaurus.com:>_ = uri http://thesaurus.com/browse/\@<encodeURIComponent(%r)>\@ @cbind \\aurb<urbandictionary:>_ = uri http://www.urbandictionary.com/define.php?term=\@<encodeURIComponent(%r)>\@ @cbind \\cald<CALD:>_ = uri http://dictionary.cambridge.org/search/british/?q=\@<encodeURIComponent(%r)>\@ @cbind \\def<Definitions.net:>_ = uri http://www.definitions.net/definition/\@<encodeURIComponent(%r)>\@ @cbind \\drae<DRAE:>_ = uri http://buscon.rae.es/draeI/SrvltConsulta?TIPO_BUS=3&LEMA=\@<encodeURIComponent(%r)>\@ @cbind \\abio<b10:>_ = uri http://bioinfo10.ugr.es:4080/\@ @cbind \\clave<clave:>_ = uri http://clave.librosvivos.net/\@ @cbind \\conj<Conjugate:>_ = uri http://www.wordreference.com/conj/ESverbs.asp?v=\@<encodeURIComponent(%r)>\@ # --- article_queue binds --- @cbind qpu = spawn @scripts_dir/article_queue.py push @cbind qpo = spawn @scripts_dir/article_queue.py pop @cbind qp _ = spawn @scripts_dir/article_queue.py pop %s @cbind qap = spawn @scripts_dir/article_queue.py append @cbind qsh = spawn @scripts_dir/article_queue.py shift @cbind q> = spawn @scripts_dir/article_queue.py forward @cbind qx = spawn @scripts_dir/article_queue.py forward @cbind q< = spawn @scripts_dir/article_queue.py back @cbind qz = spawn @scripts_dir/article_queue.py back @cbind ql = spawn @scripts_dir/article_queue.py list @cbind del = js javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(); # === Post-load misc commands =============================================== # Set the "home" page. Cambiada a mi página local de enlaces. set uri = file:///home/ama/.config/uzbl/ama.html
Hola,
la verdad que lo probe hace algunos meses, y no me dio resultado a mí. Sin embargo es concepto esta interesante.
Saludos.