# Example uzbl config. All settings are optional. You can use uzbl without # any config at all (but it won't do much). # === Core settings ========================================================== # common directory locations set prefix = @(echo $PREFIX)@ set data_home = @(echo $XDG_DATA_HOME)@ set cache_home = @(echo $XDG_CACHE_HOME)@ set config_home = @(echo $XDG_CONFIG_HOME)@ # Interface paths. set fifo_dir = /tmp set socket_dir = /tmp set shell_cmd = sh -c # === General config aliases ================================================= # Config related events (use the request function): # request MODE_CONFIG = set mode_config = request MODE_CONFIG # request ON_EVENT set on_event = request ON_EVENT # request ON_SET set on_set = request ON_SET # request MODMAP set modmap = request MODMAP # request IGNORE_KEY set ignore_key = request IGNORE_KEY # request MODKEY_ADDITION set modkey_addition = request MODKEY_ADDITION # request "TOGGLE_MODES ... set toggle_modes = request TOGGLE_MODES set set_mode = set mode = set set_status = set status_message = # Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable" #set scripts_dir = /usr/share/uzbl/examples/data/scripts set scripts_dir = /home/digit/.config/uzbl/scripts # spawn shortcuts path original #set scripts_dir = $XDG_DATA_HOME/uzbl:@prefix/share/uzbl/examples/data:scripts # === Hardcoded handlers ===================================================== # These handlers can't be moved to the new event system yet as we don't # support events that can wait for a response from a script. #set cookie_handler = talk_to_socket $XDG_CACHE_HOME/uzbl/cookie_daemon_socket set scheme_handler = sync_spawn @scripts_dir/scheme.py set authentication_handler = sync_spawn @scripts_dir/auth.py #see dm-dm section to see what's the dealeo with this. set download_handler = spawn @dm_dm_start #set download_handler = sync_spawn @scripts_dir/download.sh # === Dynamic event handlers ================================================= @on_event NEW_WINDOW sh 'uzbl-browser ${1:+-u "$1"}' %r # Open in current window (also see the REQ_NEW_WINDOW event handler below) #@on_event NEW_WINDOW uri %s # Open in new tab. Other options are NEW_TAB_NEXT, NEW_BG_TAB and NEW_BG_TAB_NEXT. #@on_event NEW_WINDOW event NEW_TAB %s # What to do when the user requests a new window: # If your the NEW_WINDOW handler opens the uri in the current window, you'll # probably want to change this handler to open a new window or tab. @on_event REQ_NEW_WINDOW event NEW_WINDOW %s # Load start handler @on_event LOAD_START @set_status wait # Reset the keycmd on navigation @on_event LOAD_START @set_mode # Load commit handlers @on_event LOAD_COMMIT @set_status recv # add some javascript to the page for other 'js' and 'script' commands to access later. @on_event LOAD_COMMIT js uzbl = {}; @on_event LOAD_COMMIT script @scripts_dir/formfiller.js @on_event LOAD_COMMIT script @scripts_dir/follow.js # Userscripts/per-site-settings. See the script and the example configuration for details #@on_event LOAD_COMMIT spawn @scripts_dir/per-site-settings.py @data_home/uzbl/per-site-settings # Load finish handlers @on_event LOAD_FINISH @set_status done @on_event LOAD_FINISH spawn @scripts_dir/history.sh # Switch to insert mode if a (editable) html form is clicked @on_event FORM_ACTIVE @set_mode insert # Switch to command mode if anything else is clicked @on_event ROOT_ACTIVE @set_mode command # Example CONFIG_CHANGED event handler #@on_event CONFIG_CHANGED print Config changed: %1 = %2 # Scroll percentage calculation @on_event SCROLL_VERT set scroll_message = \@<(function(){var p='--';if(%3!=%2){p=(%1/(%3-%4));p=Math.round(10000*p)/100;};return p+'%';})()>\@ #=================================stuff digit added for a bit ~ here it gets sloppy. lol. #socialfixer.js check it out... if u can get this working, it aught aleviate much of the interface woes of fb. @on_event LOAD_COMMIT spawn @scripts_dir/socialfixer.js #adblock js http://www.uzbl.org/wiki/adblock.js @on_event LOAD_COMMIT script @scripts_dir/adblock.js #adblock py http://www.uzbl.org/wiki/adblock @on_event LOAD_COMMIT spawn @scripts_dir/adblock.py @on_event LOAD_PROGRESS js uzblAdBlock(); ##adblock privoxy http://andrwe.org/doku.php/scripting/bash/privoxy-blocklist #will need to move shit to the appropriate places. #set proxy_url = http://127.0.0.1:8118 # #someone who cares http://someonewhocares.org/hosts/ #some great ideas... block pages list for example. ##easylist adblockplus filterlist for use with the privoxy method #abp:subscribe?location=https%3A%2F%2Feasylist-downloads.adblockplus.org%2Feasylist.txt&title=EasyList ##fanboyslist adblockplus filterlist for use with the privoxy method #abp:subscribe?location=https%3A%2F%2Fsecure.fanboy.co.nz%2Ffanboy-adblock.txt&title=Fanboy%27s%20List #http://www.fanboy.co.nz/adblock/fanboy-adblock.txt #http://www.fanboy.co.nz/adblock/fanboy-tracking.txt #http://www.fanboy.co.nz/adblock/fanboy-addon.txt ## my cool add to adblock menu coolness... #add_menu adblock this = echo $thething >> ~/.local/share/uzbl/adblock #menu_add facebook = set uri = http://www.facebook.com #dynzoom http://www.uzbl.org/wiki/dynamic_zooming #@on_event GEOMETRY_CHANGED script @scripts_dir/dynzoom.js @on_event GEOMETRY_CHANGED spawn @scripts_dir/dynzoom.py \@geometry 1024 768 #flashblock http://www.uzbl.org/wiki/flashblock @on_event LOAD_COMMIT script @scripts_dir/flashblock.js # Switch to insert mode when javascript focuses text element http://www.uzbl.org/wiki/configtricks #@on_event LOAD_FINISH sh 'if [ "\@\@" = "text" ]; then echo "event FORM_ACTIVE" > $4; fi' #http://www.uzbl.org/wiki/change_style.sh #@on_event LOAD_COMMIT spawn @scripts_dir/change_style.sh #http://www.uzbl.org/wiki/change_style.sh #alternative style changer method. #set conf.d = $XDG_CONFIG_HOME/uzbl #@on_event LOAD_COMMIT set stylesheet_uri = file://@conf.d/css/\@(s=\@\@.css; [ -e @conf.d/css/$s ] || s=default.css; echo $s)\@ #OR #@on_event LOAD_COMMIT set stylesheet_uri = file://$XDG_CONFIG_HOME/uzbl/styles/\@(s=\@\@.css; [ -e $XDG_CONFIG_HOME/uzbl/styles/$s ] || s=default.css; echo $s)\@ # err.. dont use that, it's a half edit. #@on_event LOAD_COMMIT set stylesheet_uri = file://$XDG_CONFIG_HOME/uzbl/digitstyle.css; [ -e @conf.d/css/$s ] || s=default.css; echo $s)\@ # here be the hardcores: # hardcore intent style #@on_event LOAD_COMMIT set stylesheet_uri = file://$XDG_CONFIG_HOME/uzbl/clearintent.css; [ -e @conf.d/css/$s ] || s=default.css; echo $s)\@ # hardcore witch style #@on_event LOAD_COMMIT set stylesheet_uri = file://$XDG_CONFIG_HOME/uzbl/style/rowan-9.0.css; [ -e @conf.d/css/$s ] || s=default.css; echo $s)\@ ## new alternative style changer... http://pastebin.com/rC1kqv3w #@on_event LOAD_COMMIT spawn @scripts_dir/stylish.py # http://www.uzbl.org/wiki/noscript.js @on_event LOAD_COMMIT script @scripts_dir/noscript.js # === Behaviour and appearance =============================================== #my original stylesheet handling stuff #set stylesheet_uri = file://home/digit/.local/share/uzbl/userstyles set stylesheet_uri = file://@config_home/uzbl/styles/about:blank.css # Custom CSS can be defined here, including link follower hint styles #set stylesheet_uri = file://@config_home/uzbl/style.css #set stylesheet_uri = file://usr/share/uzbl/examples/config/digitstyle.css #set stylesheet_uri = file://@config_home/uzbl/digitstyle.css #set stylesheet_uri = file://@config_home/uzbl/styles/clearintent.css set stylesheet_uri = file://@config_home/uzbl/styles/rowan-9.0.css set show_status = 1 set status_top = 0 set status_background = #111 set page_background = #000 set modcmd_style = weight="bold" foreground="red" set keycmd_style = weight="light" foreground="red" set prompt_style = foreground="#ddd" set cursor_style = underline="single" set completion_style = foreground="green" set hint_style = weight="bold" set mode_section = [\@[\@mode_indicator]\@] set keycmd_section = [\@[\@keycmd_prompt]\@\@modcmd\@keycmd\@completion_list] set progress_section = \@[\@progress.output]\@ set scroll_section = \@[\@scroll_message]\@ set uri_section = \@[\@uri]\@ set name_section = \@[\@NAME]\@ set status_section = \@status_message set selected_section = \@[\@SELECTED_URI]\@ set download_section = \@downloads #my original #set status_format = @mode_section @keycmd_section @progress_section @uri_section @name_section @status_section @scroll_section @selected_section set status_format = @mode_section @keycmd_section @progress_section @name_section @status_section @scroll_section @selected_section @download_section set status_format_right = uri: @uri_section set title_format_long = \@keycmd_prompt \@raw_modcmd \@raw_keycmd \@TITLE - Uzbl browser <\@NAME> \@SELECTED_URI # Progress bar config # %d = done, %p = pending %c = percent done, %i = int done, %s = spinner, # %t = percent pending, %o = int pending, %r = sprite scroll set progress.width = 8 set progress.format = [%d>%p]%c set progress.done = = set progress.pending = # === Useragent setup ======================================================== #my original #set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}.@{WEBKIT_MICRO}) (@(+uname -sm)@ [@ARCH_UZBL]) (Commit @COMMIT) set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) # === Configure cookie blacklist ======================================================== # Accept 'session cookies' from uzbl.org (when you have a whitelist all other cookies are dropped) #request WHITELIST_COOKIE domain 'uzbl.org$' expires '^$' # Drop google analytics tracking cookies (applied after whitelists if any) #request BLACKLIST_COOKIE name '^__utm.$' #request BLACKLIST_COOKIE domain 'microsoft.com$' #request BLACKLIST_COOKIE domain 'oracle.com$' #request BLACKLIST_COOKIE domain '.gov$' #request BLACKLIST_COOKIE domain 'bing.$' #request BLACKLIST_COOKIE domain 'novell.com$' #request BLACKLIST_COOKIE domain 'sony.com$' # === Key binding configuration ============================================== # --- Internal modmapping and ignoring --------------------------------------- #modmap @modmap @modmap @modmap @modmap #modkey_addition @modkey_addition @modkey_addition @modkey_addition #ignore_key @ignore_key @ignore_key @ignore_key # --- Bind aliases ----------------------------------------------------------- # request BIND = set bind = request MODE_BIND global # request MODE_BIND = set mode_bind = request MODE_BIND # Insert mode binding alias set ibind = @mode_bind insert # Command mode binding alias set cbind = @mode_bind command # Non-insert mode bindings alias (ebind for edit-bind). set ebind = @mode_bind global,-insert # --- Global & keycmd editing binds ------------------------------------------ # Resets keycmd and returns to default mode. @on_event ESCAPE @set_mode @on_event ESCAPE event KEYCMD_CLEAR @on_event ESCAPE js uzbl.follow.clearHints() @bind = event ESCAPE @bind [ = event ESCAPE # Commands for editing and traversing the keycmd. @ebind = event KEYCMD_EXEC_CURRENT @ebind = event SET_CURSOR_POS 0 @ebind = event SET_CURSOR_POS -1 @ebind = event SET_CURSOR_POS - @ebind = event SET_CURSOR_POS + @ebind = event KEYCMD_BACKSPACE @ebind = event KEYCMD_DELETE @ebind = event START_COMPLETION # Readline-ish bindings. @ebind w = event KEYCMD_STRIP_WORD @ebind u = event SET_KEYCMD @ebind a = event SET_CURSOR_POS 0 @ebind e = event SET_CURSOR_POS -1 #@ebind = event HISTORY_PREV #@ebind = event HISTORY_NEXT @ebind r_ = event HISTORY_SEARCH %s # Keycmd injection/append examples. #@ebind su = event INJECT_KEYCMD \@uri #@ebind st = event INJECT_KEYCMD \@title #@ebind du = event APPEND_KEYCMD \@uri #@ebind dt = event APPEND_KEYCMD \@title # --- Mouse bindings --------------------------------------------------------- #my original # Middle click open in new window #@bind = sh 'if [ "$8" ]; then uzbl-browser -u "$8"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > $4; fi' \@SELECTED_URI @bind = sh 'if [ "$1" ]; then echo "event REQ_NEW_WINDOW $1" > "$UZBL_FIFO"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"; fi' '\@SELECTED_URI' @bind = scroll horizontal 20 @bind = scroll horizontal -20 @bind = back @bind = forward @bind = scroll horizontal 20 @bind = scroll horizontal -20 # --- Keyboard bindings ------------------------------------------------------ #copy @cbind c = sh "xclip -o | xclip -selection clipboard" #@cbind c = sh "xclip -selection secondary -o" #@cbind c = sh "xclip -selection secondary -i" #@cbind c = sh "xclip -selection -secondary -o" #@cbind c = sh "xclip -i | xclip -selection primary" #@cbind c = sh "xclip -selection -secondary -o | xclip -clipboard -o" #@cbind c = sh "xclip -o | xclip -selection clipboard" #aledged to work #@cbind c = sh "xclip -o | xclip -selection clipboard" #@bind c = sh "xclip -selection clipboard -i" #@cbind c = sh "xclip -o | xclip -selection clipboard" # With this command you can enter in any command at runtime when prefixed with # a colon. @cbind :_ = %s # open a new window or a new tab (see the on_event NEW_WINDOW settings above) #@cbind w = event REQ_NEW_WINDOW #cookie killer. @cbind ck = spawn @scripts_dir/cleancookies.py # Page movement binds @cbind j = scroll vertical 20 @cbind k = scroll vertical -20 @cbind h = scroll horizontal -20 @cbind l = scroll horizontal 20 @cbind = scroll vertical -97% @cbind = scroll vertical 97% @cbind = scroll vertical begin @cbind << = scroll vertical begin @cbind >> = scroll vertical end @cbind = scroll vertical end @cbind ^ = scroll horizontal begin @cbind $ = scroll horizontal end @cbind = scroll vertical end # Navigation binds @cbind b = back #@cbind = back @cbind ff = forward @cbind S = stop @cbind r = reload @cbind R = reload_ign_cache # Zoom binds @cbind + = zoom_in @cbind = = zoom_in @cbind - = zoom_out @cbind T = toggle_zoom_type @cbind 1 = set zoom_level = 0.3 @cbind 2 = set zoom_level = 0.4 @cbind 3 = set zoom_level = 0.5 @cbind 4 = set zoom_level = 0.7 @cbind 5 = set zoom_level = 0.8 @cbind 6 = set zoom_level = 0.9 @cbind 7 = set zoom_level = 1.0 @cbind 8 = set zoom_level = 1.1 @cbind 9 = set zoom_level = 1.4 @cbind 0 = set zoom_level = 2.5 # Appearance binds #depreciated statusbar toggle #@cbind t = toggle_status #new statusbar toggle method using new toggle method @cbind t = toggle show_status # Page searching binds @cbind /* = search %s @cbind ?* = search_reverse %s # Jump to next and previous items @cbind n = search @cbind N = search_reverse # Print pages to a printer #@cbind p = hardcopy # Web searching binds #@cbind gf_ = uri http://www.scroogle.org/cgi-bin/scraper.htm/search?q=\@\@ #@cbind gf_ = uri http://www.scroogle.org/cgi-bin/scraper.htm/search?q=%s @cbind gf_ = uri https://ssl.scroogle.org/cgi-bin/nbbwssl.cgi?Gw=\@\@&n=1&l=en @cbind gh_ = set inject_html =
@cbind gg_ = uri http://www.google.com/search?q=\@\@ @cbind dd_ = uri http://duckduckgo.com/?q=%s @cbind \\awiki_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@\@&go=Go @cbind \\wiki_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@\@&go=Go @cbind wiki_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@\@&go=Go #@cbind gbt_ = uri http://idkwtf2putheresomanytorrentsyouknow...@\@&go=Go @cbing db_ = uri http://imdb.com/@\@&go=Go @bind ee_ = uri http://tekk.com.ar/seeks/search.php/search?q=\@\@ # Handy binds # Set function shortcut @cbind s__ = set %1 = %2 # Exit binding @cbind ZZ = exit # Dump config to stdout @cbind !dump = sh 'echo dump_config > "$UZBL_FIFO"' # Reload all variables in the config @cbind !reload = sh "sed '/^# === Post-load misc commands/,$d' \"$UZBL_CONFIG\" | grep '^set ' > \"$UZBL_FIFO\"" # Use socat to directly inject commands into uzbl-core and view events # raised by uzbl-core: @cbind t = sh 'xterm -e "socat unix-connect:\"$UZBL_SOCKET\" -"' #@cbind t = sh 'urxvt -e socat unix-connect:"$UZBL_SOCKET" -' # Uri opening prompts @cbind o_ = uri %s # Or have it load the current uri into the keycmd for editing @cbind O_ = uri %s # Mode setting binds @cbind i = @set_mode insert @bind i = @set_mode insert # Hard-bound bookmarks @cbind uz = uri http://www.uzbl.org @cbind dgb = uri http://digitsgnublog.tk @cbind fi = uri http://fuge.it @cbind wa = uri http://wastedartist.com @cbind cb = uri http://crunchbanglinux.org/forums/ @cbind di = uri http://joindiaspora.com @cbind en = uri http://next-episode.net @cbind ey = uri http://educate-yourself.org @cbind cs = uri http://www.couchsurfing.org # New window binds @cbind gw = event REQ_NEW_WINDOW # SSL-ify bindings @cbind zs = uri \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ @cbind zS = event REQ_NEW_WINDOW \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ # Yanking & pasting binds @cbind yu = sh 'echo -n "$UZBL_URI" | xclip' @cbind yU = sh 'echo -n "$1" | xclip' \@SELECTED_URI @cbind yy = sh 'echo -n "$UZBL_TITLE" | xclip' @cbind yi = sh 'echo -n "$UZBL_URI" | xclip -selection clipboard' # video yanking and dl @cbind yT = sh 'youtube-dl "$UZBL_URI"' @cbind yr = sh 'quvi "$UZBL_URI"' @cbind yt = sh 'youtube-dl "$UZBL_URI" | mv $f "$UZBL_TITLE"' #video yanking and download to specific directories @cbind dlvid = sh 'cd cinema/Videos && youtube-dl "$UZBL_URI"' @cbind dlani = sh 'cd cinema/_anime && youtube-dl "$UZBL_URI"' @cbind dlchi = sh 'cd cinema/_Chi++ && youtube-dl "$UZBL_URI"' @cbind dlcom = sh 'cd cinema/_Comedy && youtube-dl "$UZBL_URI"' @cbind dldoc = sh 'cd cinema/_Documentarys\ Lectures\ etc && youtube-dl "$UZBL_URI"' @cbind dlema = sh 'cd cinema/_emancipationtech_bulk && youtube-dl "$UZBL_URI"' @cbind dlfea = sh 'cd cinema/_Features && youtube-dl "$UZBL_URI"' @cbind dlher = sh 'cd cinema/_herb && youtube-dl "$UZBL_URI"' @cbind dlabu = sh 'cd cinema/_abundance && youtube-dl "$UZBL_URI"' @cbind dlmus = sh 'cd cinema/_Music\ Videos && youtube-dl "$UZBL_URI"' @cbind dlpor = sh 'cd cinema/_Prawn && youtube-dl "$UZBL_URI"' @cbind dlsci = sh 'cd cinema/_scifiseries && youtube-dl "$UZBL_URI"' @cbind dlsof = sh 'cd cinema/_Software\ Tutorials && youtube-dl "$UZBL_URI"' @cbind dlswf = sh 'cd cinema/_nonvideoswf && youtube-dl "$UZBL_URI"' @cbind clive = sh 'clive "$UZBL_URI"' @cbind clmv = sh 'clive "$UZBL_URI" | mv $f "$UZBL_TITLE"' @cbind clvid = sh 'cd cinema/Videos && clive "$UZBL_URI"' @cbind clani = sh 'cd cinema/_anime && clive "$UZBL_URI"' @cbind clchi = sh 'cd cinema/_Chi++ && clive "$UZBL_URI"' @cbind clcom = sh 'cd cinema/_Comedy && clive "$UZBL_URI"' @cbind cldoc = sh 'cd cinema/_Documentarys\ Lectures\ etc && clive "$UZBL_URI"' @cbind clema = sh 'cd cinema/_emancipationtech_bulk && clive "$UZBL_URI"' @cbind clfea = sh 'cd cinema/_Features && clive "$UZBL_URI"' @cbind clher = sh 'cd cinema/_herb && clive "$UZBL_URI"' @cbind clabu = sh 'cd cinema/_abundance && clive "$UZBL_URI"' @cbind clmus = sh 'cd cinema/_Music\ Videos && clive "$UZBL_URI"' @cbind clpor = sh 'cd cinema/_Prawn && clive "$UZBL_URI"' @cbind clsci = sh 'cd cinema/_scifiseries && clive "$UZBL_URI"' @cbind clsof = sh 'cd cinema/_Software\ Tutorials && clive "$UZBL_URI"' @cbind clswf = sh 'cd cinema/_nonvideoswf && clive "$UZBL_URI"' #batch downloader. see script's introductory comments for more info : http://www.uzbl.org/wiki/batch_downloader @cbind download = spawn @scripts_dir/batch_download.sh %s --download --dir=$HOME/downloads --confirm # Clone current window #@cbind c = event REQ_NEW_WINDOW \@uri # Go the page from primary selection @cbind p = sh 'echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' # Go to the page in clipboard @cbind P = sh 'echo "uri $(xclip -selection clipboard -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' # Start a new uzbl instance from the page in primary selection #@cbind gp = sh 'echo "event REQ_NEW_WINDOW $(xclip -o)" > "$UZBL_FIFO"' # paste primary selection into keycmd at the cursor position @bind = sh 'echo "event INJECT_KEYCMD $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' # Bookmark inserting binds @cbind b_ = sh 'echo `printf "$UZBL_URI %s"` >> "$XDG_DATA_HOME"/uzbl/bookmarks' # Or use a script to insert a bookmark. @cbind B = spawn @scripts_dir/insert_bookmark.sh # Bookmark/history/queue loading #@cbind U = spawn @scripts_dir/load_url_from_history.sh #@cbind u = spawn @scripts_dir/load_url_from_bookmarks.sh #@cbind H = spawn @scripts_dir/pi_history.sh #@bind B = spawn @scripts_dir/load_url_from_bookmarks.sh @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 q< = spawn @scripts_dir/article_queue.py back @cbind ql = spawn @scripts_dir/article_queue.py list # Link following (similar to vimperator and konqueror) # Set custom keys you wish to use for navigation. Some common examples: set follow_hint_keys = 0123456789 #set follow_hint_keys = qwerty #set follow_hint_keys = asdfghjkl; #set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234 @cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 0) >\@ @cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 1) >\@ #@cbind fi = spawn @scripts_dir/go_input.sh # Form filler binds # This script allows you to configure (per domain) values to fill in form # fields (eg login information) and to fill in these values automatically. # This implementation allows you to save multiple profiles for each form # (think about multiple accounts on some website). set formfiller = spawn @scripts_dir/formfiller.sh @cbind za = @formfiller add @cbind ze = @formfiller edit @cbind zn = @formfiller new @cbind zl = @formfiller load # --- toggle commands ----------------------------- # you can give the command a list of values to toggle between # this keybinding will enable/disable a proxy #@cbind -pr = toggle proxy_url 'http://localhost:8123/' '' # if you have several proxies you could cycle between them by passing more # urls to the command. #toggle style @cbind y = toggle stylesheet_uri 'file://@config_home/uzbl/styles/lexi000.css' '' 'file://@config_home/uzbl/styles/rowan-9.0.css' 'file://@config_home/uzbl/styles/clearintent.css' 'file://@config_home/uzbl/styles/bird.css' ##'file://usr/share/xxxterm/style.css' #toggle scripts #there is already an old toggle scripts, but this section has been put here to pre-empt inclusion of more per-script based toggles # --- Uzbl tabbed binds ------------------------------------------------------ # Tab opening @cbind gn = event NEW_TAB @cbind gN = event NEW_TAB_NEXT @cbind go_ = event NEW_TAB %s @cbind gO_ = event NEW_TAB_NEXT %s @cbind gY = sh 'echo "event NEW_TAB `xclip -selection primary -o | sed s/\\\@/%40/g`" > $4' # Closing / resting @cbind gC = exit @cbind gQ = event CLEAN_TABS # Tab navigating @cbind g< = event FIRST_TAB @cbind g> = event LAST_TAB @cbind gt = event NEXT_TAB @cbind gT = event PREV_TAB @cbind gi_ = event GOTO_TAB %s # Preset loading set preset = event PRESET_TABS @cbind gs_ = @preset save %s @cbind glo_ = @preset load %s @cbind gd_ = @preset del %s #they say this doesnt work right now #@cbind gli = @preset list # === Context menu items ===================================================== # Default context menu menu_add seeks = set uri = http://tekk.com.ar/seeks menu_add seeks node list = set uri = http://seeks-project.info/wiki/index.php/List_of_Web_Seeks_nodes menu_add Google = set uri = http://google.com menu_add omp = set uri = http://ompldr.org/big menu_add Go Home = set uri = http://uzbl.org menu_add uzbl scripts = set uri = http://www.uzbl.org/wiki/scripts menu_add dlb = set uri = http://digitslinuxblog.blogspot.com/ menu_add wastedartist = set uri = http://wastedartist.com menu_add facebook = set uri = http://www.facebook.com menu_separator separator_1 menu_add pioneer = set uri = http://www.spacesimcentral.com/forum/viewforum.php?f=35 menu_separator separator_1 menu_add 1channel dot ch = set uri = http://1channel.ch/?tv menu_add sidereel = set uri = http://www.sidereel.com menu_add ipt = set uri = http://www.iptorrents.ru menu_add tpb = set uri = http://www.thepiratebay.com menu_separator separator_1 menu_add gentoo forum = set uri = http://forum.gentoo.org #menu_add ipt = set uri = http://icmag.org menu_add couchsurfing = set uri = http://www.couchsurfing.org #add more forums dickwadd! menu_separator separator_1 menu_add Keybindings = spawn @scripts_dir/show_keybindings.sh "Group" menu_separator separator_1 menu_add scripts off = disable_scripts = 1 menu_add scripts on = disable_scripts = 0 menu_separator separator_1 menu_add clear cookies = exec ~/bin/ckiall menu_add clear main cookies = exec ~/bin/ckiurgent #menu_add Quit uzbl = exit # Link context menu menu_link_add Print Link = print \@SELECTED_URI menu_link_add suck mah dick = # === Mode configuration ===================================================== # Define some mode specific uzbl configurations. set command = @mode_config command set insert = @mode_config insert set stack = @mode_config stack # Command mode config. @command keycmd_style = foreground="red" @command status_background = #450029 @command mode_indicator = Cmd @command keycmd_events = 1 @command forward_keys = 0 @command modcmd_updates = 1 # Insert mode config. @insert status_background = #fa0 @insert mode_indicator = Ins @insert forward_keys = 1 @insert keycmd_events = 0 @insert modcmd_updates = 0 # Multi-stage-binding mode config. @stack status_background = #425719 @stack keycmd_events = 1 @stack modcmd_updates = 1 @stack forward_keys = 0 @stack keycmd_style = foreground="red" @stack prompt_style = foreground="#888" weight="light" @stack mode_indicator = Bnd set default_mode = command # === Post-load misc commands ================================================ sync_spawn_exec @scripts_dir/load_cookies.sh sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt # Set the "home" page. #set uri = uzbl.org/doesitwork/@COMMIT #set uri = http://wastedartist.com/distros/witch/witch.html set uri = http://www.cannabiscollege.com/contactus.html # vim: set fdm=syntax: # === Digit is a Genius, for thinking of 9menu. ================================================ @cbind m = spawn @scripts_dir/brsrmnu # ====and will be a bigger one once he gets 9menu working as cool as dmenu, like with dm-dm type stuff on the go. # === dm-dm stuff (dmenu download manager) =================================== #set home_bin = /home/bin #set scripts_dir = @home_bin[:morepathsaddhere] set dm_dm_start = dm-dm.sh -s #set already at start. #set download_handler = spawn @dm_dm_start @cbind !downloads = sh 'dm-dm.sh g' # === Firefox-like Additional Comands - uncoment as needed ================================================ #newtab/window @bind t = event REQ_NEW_WINDOW #close window @cbind w = exit #close all uzbls @bind q = exec pkill uzbl #bookmarks @bind d = spawn @scripts_dir/insert_bookmark.sh @cbind D = spawn @scripts_dir/load_url_from_bookmarks.sh #@bind k = # Web searching binds #@bind k_ = uri http://www.scroogle.org/cgi-bin/scraper.htm/search?q=\@\@ @bind k_ = uri http://www.scroogle.org/cgi-bin/scraper.htm/search?q=%s #@bind k_ = uri http://www.google.com/search?q=\@\@ #@bind k_ = uri http://duckduckgo.com/?q=%s #@bind k_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@\@&go=Go #@bind k_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@\@&go=Go #search for string of text, aka find. #@cbind f* = search %s #aw... couldnt get that to work like that with ctrl. ^ #@cbind f* = search %s # Uri opening prompts @bind l_ = uri %s # Or have it load the current uri into the keycmd for editing #@bind l_ = uri %s # using shift @bind L_ = uri %s #reminder #rebind cursor keys to do same as hjkl do, in uzbl, for greater foxability. @cbind = scroll vertical 20 @cbind = scroll vertical -20 @cbind = scroll horizontal -20 @cbind = scroll horizontal 20