diff options
Diffstat (limited to 'config/uzbl')
-rw-r--r-- | config/uzbl/config | 578 | ||||
-rwxr-xr-x | config/uzbl/scripts/download.sh | 69 | ||||
-rwxr-xr-x | config/uzbl/scripts/gonew.pl | 16 | ||||
-rwxr-xr-x | config/uzbl/scripts/goto.pl | 16 | ||||
-rwxr-xr-x | config/uzbl/scripts/gowiki.pl | 16 | ||||
-rwxr-xr-x | config/uzbl/scripts/gowikio.pl | 16 | ||||
-rwxr-xr-x | config/uzbl/scripts/youtube.pl | 4 | ||||
-rw-r--r-- | config/uzbl/style.css | 34 |
8 files changed, 0 insertions, 749 deletions
diff --git a/config/uzbl/config b/config/uzbl/config deleted file mode 100644 index 600e5e6..0000000 --- a/config/uzbl/config +++ /dev/null @@ -1,578 +0,0 @@ -# Example uzbl config. All settings are optional. You can use uzbl without -# any config at all (but it won't do much). - - -# === Core settings ========================================================== - -# Polipo proxy for caching -#set proxy_url = http://127.0.0.1:8123 - -# common directory locations -set prefix @(echo $UZBL_PREFIX)@ -set data_home @(echo $XDG_DATA_HOME/uzbl)@ -set cache_home @(echo $XDG_CACHE_HOME/uzbl)@ -set config_home @(echo $XDG_CONFIG_HOME/uzbl)@ -set local_storage_path @data_home/databases/ - - -# colors -set color1 @(source ~/.colors; echo $COLOR1)@ -set color2 @(source ~/.colors; echo $COLOR2)@ -set color3 @(source ~/.colors; echo $COLOR3)@ -set color4 @(source ~/.colors; echo $COLOR4)@ -set color5 @(source ~/.colors; echo $COLOR5)@ -set color6 @(source ~/.colors; echo $COLOR6)@ -set color7 @(source ~/.colors; echo $COLOR7)@ -set color8 @(source ~/.colors; echo $COLOR8)@ -set color9 @(source ~/.colors; echo $COLOR9)@ -set color10 @(source ~/.colors; echo $COLOR10)@ -set color11 @(source ~/.colors; echo $COLOR11)@ -set color12 @(source ~/.colors; echo $COLOR12)@ -set color13 @(source ~/.colors; echo $COLOR13)@ -set color14 @(source ~/.colors; echo $COLOR14)@ -set color15 @(source ~/.colors; echo $COLOR15)@ - -# Interface paths. -set comm_dir @([ -n "$XDG_RUNTIME_DIR" ] && echo "$XDG_RUNTIME_DIR/uzbl" || echo "/tmp/uzbl-$USER")@ -set fifo_dir @comm_dir -set socket_dir @comm_dir - -# === General config aliases ================================================= - -# Config related events (use the event function): -# event MODE_CONFIG <mode> <key> = <value> -set mode_config event MODE_CONFIG -# event ON_EVENT <EVENT_NAME> <command> -set on_event event ON_EVENT -# event ON_SET <key/glob> <command> -set on_set event ON_SET -# event MODMAP <From> <To> -set modmap event MODMAP -# event IGNORE_KEY <glob> -set ignore_key event IGNORE_KEY - -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 @data_home:@prefix/share/uzbl/examples/data:scripts - -# === Hardcoded handlers ===================================================== - -set navigation_handler spawn_sync @scripts_dir/scheme.py -#set request_handler spawn_sync @scripts_dir/request.py -set authentication_handler spawn_sync @scripts_dir/auth.py -set download_handler spawn_sync @scripts_dir/download.sh - -# === Dynamic event handlers ================================================= - -# What to do when a website wants to open a new window: -# Open link in new window -@on_event NEW_WINDOW spawn_sh 'uzbl-browser ${0:+-u "$0"}' %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 @- if (@embedded) "NEW_TAB"; else "NEW_WINDOW" -@ %s - -# Load start handler -@on_event LOAD_START @set_status <span foreground="khaki">wait</span> -# Reset the keycmd on navigation -@on_event LOAD_START @set_mode - -# Load commit handlers -@on_event LOAD_COMMIT @set_status <span foreground="green">recv</span> - -# add some javascript to the page for other 'js' commands to access later. -@on_event LOAD_COMMIT js page string 'uzbl = {}' -@on_event LOAD_COMMIT js page file @scripts_dir/formfiller.js -@on_event LOAD_COMMIT js page file @scripts_dir/follow.js -@on_event LOAD_COMMIT js page file @scripts_dir/go_input.js -@on_event LOAD_COMMIT js page file @scripts_dir/navigation.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/per-site-settings - -# Load finish handlers -@on_event LOAD_FINISH @set_status <span foreground="gold">done</span> -@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 insert mode if a (editable) html form gains focus -@on_event FOCUS_ELEMENT spawn_sh 'if [ "$0" = INPUT -o "$0" = TEXTAREA -o "$0" = SELECT ]; then echo "@set_mode insert" > $UZBL_FIFO; fi' %s -# Switch to command mode if anything else is clicked -@on_event ROOT_ACTIVE @set_mode command -# Clear input when the page or an element gains focus. -@on_event ROOT_ACTIVE event KEYCMD_CLEAR -@on_event FOCUS_ELEMENT event KEYCMD_CLEAR - -@on_event AUTHENTICATE spawn @scripts_dir/auth.py "%1" "%2" "%3" - -# 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(curr, min, max, size){if(max == size) return '--'; var p=(curr/(max - size)); return Math.round(10000*p)/100;})(%1,%2,%3,%4)>\@% - -# === Behaviour and appearance =============================================== - -# Custom CSS can be defined here, including link follower hint styles -css add file://@config_home/style.css - -# If WebKits builtin authentication dialog should be used, if enabling remember -# to disable external authentication handlers -set enable_builtin_auth 0 - -set show_status 1 -set status_top 0 -set status_background #303030 - -set modcmd_style weight="bold" foreground="red" -set keycmd_style weight="light" foreground="red" -set prompt_style foreground="grey" -set cursor_style underline="single" -set completion_style foreground="green" -set hint_style weight="bold" - -set mode_section <span background="black" foreground="@color11">[\@[\@mode_indicator]\@]</span> -set keycmd_section [<span \@prompt_style>\@[\@keycmd_prompt]\@</span><span \@modcmd_style>\@modcmd</span><span \@keycmd_style>\@keycmd</span><span \@completion_style>\@completion_list</span>] -set progress_section <span foreground="@color2">\@[\@progress.output]\@</span> -set scroll_section <span foreground="@color14">\@[\@scroll_message]\@</span> -set uri_section <span foreground="\@< if(\@frozen) "@color4"; else "@color5"; >\@">\@[\@uri]\@</span> -set name_section <span foreground="@color7">\@[\@NAME]\@</span> -set status_section <span foreground="@color8">\@status_message</span> -set selected_section <span foreground="@color9">\@[\@SELECTED_URI]\@</span> - -set download_section <span foreground="white">\@downloads</span> - -set status_format <span font_family="monospace">@mode_section @keycmd_section @progress_section @name_section @status_section @scroll_section @selected_section @download_section</span> -set status_format_right <span font_family="monospace"><span foreground="#666">uri:</span> @uri_section</span> - -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 ======================================================== - -#set useragent Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) -set useragent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18 - -# === Configure cookie blacklist ============================================= - -set cookie_policy always - -# Accept 'session cookies' from uzbl.org (when you have a whitelist all other cookies are dropped) -#event WHITELIST_COOKIE domain '(^|\.)uzbl\.org$' expires '^$' - -# Drop google analytics tracking cookies (applied after whitelists, if any) -#event BLACKLIST_COOKIE name '^__utm.$' - -# === Javascript configuration ============================================== - -# Turn off javascript support -# set enable_scripts 0 - -# === Proxy configuration =================================================== - -# Direct uzbl at a proxy service (ex. privoxy) -# set proxy_url http://localhost:8118 - -# === Key binding configuration ============================================== -# --- Internal modmapping and ignoring --------------------------------------- - -#modmap <From> <To> -@modmap <Control> <Ctrl> -@modmap <ISO_Left_Tab> <Shift-Tab> -@modmap <space> <Space> -@modmap <KP_Enter> <Enter> - -#ignore_key <glob> -@ignore_key <ISO_*> -@ignore_key <Shift> -@ignore_key <Multi_key> -@ignore_key <Mod2> - -# --- Bind aliases ----------------------------------------------------------- - -# event BIND <bind cmd> = <command> -set bind event MODE_BIND global - -# event MODE_BIND <mode> <bind cmd> = <command> -set mode_bind event 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 page string uzbl.follow.clearHints() -@on_event ESCAPE search clear -@on_event ESCAPE js page string window.getSelection().removeAllRanges() -@bind <Escape> = event ESCAPE -@bind <Ctrl>[ = event ESCAPE - -# Commands for editing and traversing the keycmd. -@ebind <Return> = event KEYCMD_EXEC_CURRENT -@ebind <Home> = event SET_CURSOR_POS 0 -@ebind <End> = event SET_CURSOR_POS -1 -@ebind <Left> = event SET_CURSOR_POS - -@ebind <Right> = event SET_CURSOR_POS + -@ebind <BackSpace> = event KEYCMD_BACKSPACE -@ebind <Delete> = event KEYCMD_DELETE -@ebind <Tab> = event START_COMPLETION -# Readline-ish bindings. -@ebind <Ctrl>w = event KEYCMD_STRIP_WORD \ -./&?= -@ebind <Ctrl>u = event SET_KEYCMD -@ebind <Ctrl>a = event SET_CURSOR_POS 0 -@ebind <Ctrl>e = event SET_CURSOR_POS -1 - -@ebind <Up> = event HISTORY_PREV -@ebind <Down> = event HISTORY_NEXT -@ebind <Ctrl>r<search:>_ = event HISTORY_SEARCH %s -# Keycmd injection/append examples. -#@ebind <Ctrl>su = event INJECT_KEYCMD \@uri -#@ebind <Ctrl>st = event INJECT_KEYCMD \@title -#@ebind <Ctrl>du = event APPEND_KEYCMD \@uri -#@ebind <Ctrl>dt = event APPEND_KEYCMD \@title - -# --- Mouse bindings --------------------------------------------------------- - -# Middle click open in new window -@bind <Button2> = spawn_sh 'if [ "$0" ]; then echo "event REQ_NEW_WINDOW $0" > "$UZBL_FIFO"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"; fi' '\@SELECTED_URI' - -# --- Keyboard bindings ------------------------------------------------------ - -# 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 -@cbind w<wiki:>_ = spawn @config_home/scripts/gowiki.pl %s -@cbind W<wiki:>_ = spawn @config_home/scripts/gowikio.pl %s -@cbind a<Archwiki:>_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@<encodeURIComponent(%r)>\@&go=Go - - - -# 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 <Ctrl>f = scroll vertical 100% -@cbind <Ctrl>b = scroll vertical -100% -@cbind e = scroll vertical -50% -@cbind s = scroll vertical 50% -@cbind gg = scroll vertical begin -@cbind G = scroll vertical end -@cbind <Home> = scroll vertical begin -@cbind <End> = scroll vertical end -@cbind ^ = scroll horizontal begin -@cbind $ = scroll horizontal end -@cbind <Space> = scroll vertical end -#@cbind G<Go To:>_ = scroll vertical %r! -# The first '_' is literal, so type '_G' to trigger this binding. -@cbind _G<Go To:>_ = scroll horizontal %r! - -# Frozen binding -@cbind <Shift><Ctrl>F = toggle frozen - -# Navigation binds -@cbind b = back -@cbind m = forward -@cbind gb = uri \@< encodeURI(uzbl.navigation.prev()) >\@ -@cbind gf = uri \@< encodeURI(uzbl.navigation.next()) >\@ -@cbind S = stop -@cbind r = reload cached -@cbind R = reload full - -# 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 show_status - -# Page searching binds -@cbind /* = search find %s -@cbind ?* = search rfind %s -# Jump to next and previous items -@cbind n = search next -@cbind N = search prev - -# Print pages to a printer -@cbind <Ctrl>p = hardcopy page - -# Web searching binds -#@cbind ddg<DuckDuckGo:>_ = uri http://duckduckgo.com/?q=%s -@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 - -# Handy binds -# Set function shortcut -#@cbind s<var:>_<value:>_ = set %1 %2 -# Exit binding -@cbind ZZ = exit -# Dump config to stdout -@cbind !dump = spawn_sh 'echo dump_config > "$UZBL_FIFO"' -# Reload all variables in the config -@cbind !reload = spawn_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 <Ctrl><Mod1>t = spawn_sh 'xterm -e "socat unix-connect:\"$UZBL_SOCKET\" -"' -#@cbind <Ctrl><Mod1>t = spawn_sh 'urxvt -e socat unix-connect:"$UZBL_SOCKET" -' - -# Uri opening prompts -#@cbind o<uri:>_ = uri %s -@cbind o<goto:>_ = spawn @config_home/scripts/goto.pl %s -@cbind t<tab:>_ = spawn @config_home/scripts/gonew.pl %s - -# Or have it load the current uri into the keycmd for editing -@cbind O<uri:\@uri>_ = uri %s - -# Open youtube with mpv -@cbind Y = spawn @config_home/scripts/youtube.pl - -# Mode setting binds -@cbind i = @set_mode insert -@bind <Ctrl>i = @set_mode insert - -# Hard-bound bookmarks -@cbind gh = uri http://www.uzbl.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 = spawn_sh 'echo -n "$UZBL_URI" | xclip' -@cbind yU = spawn_sh 'echo -n "$0" | xclip' '\@SELECTED_URI' -@cbind yy = spawn_sh 'echo -n "$UZBL_TITLE" | xclip' -@cbind ys = spawn @config_home/scripts/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard - -# Selection bindings -@cbind <Ctrl>a = js (function () { var r = document.createRange(), s = window.getSelection(); r.selectNodeContents(document); s.removeAllRanges(); s.addRange(r); })(); -@cbind <Ctrl>c = sh 'echo '\@< window.getSelection().toString().replace(/'/g, "\\'"); >\@' | xclip -selection clipboard -i' - -# Clone current window -@cbind c = event REQ_NEW_WINDOW \@uri -# Go the page from primary selection -@cbind p = spawn_sh 'echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' -# Go to the page in clipboard -@cbind P = spawn_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 'p = spawn_sh 'echo "event REQ_NEW_WINDOW $(xclip -o)" > "$UZBL_FIFO"' -# paste primary selection into keycmd at the cursor position -@bind <Shift><Insert> = spawn_sh 'echo "event INJECT_KEYCMD $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' - -# Bookmark inserting binds -@cbind <Ctrl>m<tags:>_ = spawn_sh 'echo "$UZBL_URI $0" >> "@data_home/bookmarks"' '%s' -# Or use a script to insert a bookmark. -@cbind M = spawn @scripts_dir/insert_bookmark.sh - -# Bookmark/history loading -@cbind U = spawn @scripts_dir/load_url_from_history.sh -@cbind u = spawn @scripts_dir/load_url_from_bookmarks.sh - -# Temporary bookmarks -@cbind <Ctrl>d = spawn @scripts_dir/insert_temp.sh -@cbind D = spawn @scripts_dir/load_url_from_temps.sh - -# 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 - -# follow links -# The structure for these calls is to call a shell script (follow.sh) with the -# output of some JavaScript code (follow.js) which gets a URI from the page to -# act on. The first argument to followLinks() is the list of characters to use -# for labelling links, the second is the currently entered keys, and the third -# is the 'mode' to use. The modes are 'click', 'newwindow', and 'returnuri'. -# The 'click' and 'newwindow' modes are handled in follow.js completely. When -# using 'returnuri' the second argument to follow.sh is the action to use for -# the URI. Currently implemented are 'set' (uses the 'uri' command), -# 'newwindow' (uses the REQ_NEW_WINDOW event), and 'clipboard' (copies the URI -# to the clipboard). - -# follow hint keys: -# fl -> emulate a click on the link -# Fl -> open in a new window -# fL -> take the url and navigate directly to it -# FL -> copy the url to the clipboard -@cbind f* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followLinks("\@follow_hint_keys", "%s", 'click') >\@ -@cbind F* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followLinks("\@follow_hint_keys", "%s", 'newwindow') >\@ -#@cbind fL* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followLinks("\@follow_hint_keys", "%s", 'returnuri') >\@ set -#@cbind FL* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followLinks("\@follow_hint_keys", "%s", 'returnuri') >\@ clipboard -@cbind gi = spawn @scripts_dir/go_input.sh - -# follow selected link: -# fs -> emulate a click on the link -# Fs -> open in a new window -# fS -> take the url and navigate directly to it -# FS -> copy the url to the clipboard -@cbind d = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('click') >\@ -@cbind D = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('newwindow') >\@ -#@cbind Fs = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ set -#@cbind FS = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard -# -# follow by link text (i.e., <a>foo</a> is selected with "ftfoo" or "'foo") -# ft -> emulate a click on the link -# Ft -> open in a new window -# fT -> take the url and navigate directly to it -# FT -> copy the url to the clipboard -#@cbind ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'click') >\@ -#@cbind fT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'newwindow') >\@ -#@cbind Ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ set -#@cbind FT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ clipboard - -# 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 ze = @formfiller edit -@cbind zn = @formfiller new -@cbind zl = @formfiller load -@cbind zo = @formfiller once - -# === Short Cuts ============================================================= -@cbind gop = uri https://sites.google.com/a/skola.malmo.se/ib12-physics-hl/ -@cbind gob = uri https://sites.google.com/a/skola.malmo.se/ib12slbio/ -@cbind goc = uri https://sites.google.com/a/skola.malmo.se/hl-chemistry-ib12/ -@cbind goe = uri https://sites.google.com/a/skola.malmo.se/langlit-ib12/ -@cbind gos = uri https://sites.google.com/a/skola.malmo.se/swedish-b-ib12/ -@cbind got = uri https://sites.google.com/a/skola.malmo.se/wrtok/ -@cbind gom = uri https://sites.google.com/a/skola.malmo.se/ib-maths-hl/ -@cbind goo = uri http://organizer.eu5.org/ -@cbind goh = uri https://vaskozl.no-ip.biz/ -@cbind gog = uri https://www.gmail.com/ -@cbind gof = uri https://www.facebook.com/ -@cbind go9 = uri https://www.9gag.com/ - - - -# --- Uzbl tabbed binds ------------------------------------------------------ - -# Tab opening -@cbind gn = event NEW_TAB -@cbind gN = event NEW_TAB_NEXT -#@cbind go<uri:>_ = event NEW_TAB %s -#@cbind gO<uri:>_ = event NEW_TAB_NEXT %s - -# Closing / resetting -@cbind x = exit -@cbind gQ = event CLEAN_TABS - -# Tab navigating -@cbind g< = event FIRST_TAB -@cbind g> = event LAST_TAB -@cbind l = event NEXT_TAB -@cbind h = event PREV_TAB -#@cbind gi<index:>_ = event GOTO_TAB %s -@cbind <Ctrl><Left> = event MOVE_CURRENT_TAB_LEFT -@cbind <Ctrl><Right> = event MOVE_CURRENT_TAB_RIGHT -@cbind gm<index:>_ = event MOVE_CURRENT_TAB %s - -# Preset loading -set preset event PRESET_TABS -@cbind gs<preset save:>_ = @preset save %s -@cbind glo<preset load:>_ = @preset load %s -@cbind gd<preset del:>_ = @preset del %s -# This doesn't work right now. -#@cbind gli = @preset list - -# === Context menu items ===================================================== - -# Default context menu -menu add link Google "uri http://google.com" -menu add link "Go Home" "uri http://uzbl.org" -menu add_separator separator_1 -menu add link "Quit uzbl" exit - -# Link context menu -menu add link "Print Link" "print \@SELECTED_URI" - -# === 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="@color13" -@command status_background = #202020 -@command mode_indicator = Cmd -@command keycmd_events = 1 -@command forward_keys = 0 -@command modcmd_updates = 1 - -# Insert mode config. -@insert status_background = #303030 -@insert mode_indicator = Ins -@insert forward_keys = 1 -@insert keycmd_events = 0 -@insert modcmd_updates = 0 - -# Multi-stage-binding mode config. -@stack keycmd_style = foreground="@color13" -@stack status_background = #202020 -@stack mode_indicator = Bnd -@stack prompt_style = foreground="@color12" weight="light" -@stack keycmd_events = 1 -@stack modcmd_updates = 1 -@stack forward_keys = 0 - -set default_mode command - -# === SSL related configuration ============================================== - -# Set it to certificates store of your distribution, or your own CAfile. -set ssl_ca_file /etc/ssl/certs/ca-certificates.crt -set ssl_policy fail -# Command to toggle ssl_policy value: -@cbind !ssl = chain 'toggle ssl_policy fail ignore' 'reload' -# Example SSL error handler: -@on_event LOAD_ERROR js page string 'if (/SSL handshake failed/.test("%3")) {alert ("%3");}' - -# === Post-load misc commands ================================================ -spawn_sync_exec @scripts_dir/load_cookies.sh -spawn_sync_exec @scripts_dir/load_cookies.sh @data_home/session-cookies.txt - -# Set the "home" page. -uri uzbl.org/doesitwork/@COMMIT - -# vim: set fdm=syntax: diff --git a/config/uzbl/scripts/download.sh b/config/uzbl/scripts/download.sh deleted file mode 100755 index 398f271..0000000 --- a/config/uzbl/scripts/download.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -# uzbl's example configuration sets this script up as its download_handler. -# this script is run when uzbl encounters a URL that it can't display, and when -# a download is requested using the 'download' command. -# -# if the script prints a file path to stdout, uzbl will save the download to -# that path using it's internal downloader. -# -# if nothing is printed to stdout, the internal download will be cancelled. -# you could do your own download handling in your script that way. - -# if $5 is set, it is the path that was passed to uzbl's "download" command. -# we want to use that if it's available. -[ -n "$5" ] && echo "$5" && exit - -. "$UZBL_UTIL_DIR/uzbl-dir.sh" - -# the URL that is being downloaded -uri="$1" -shift - -safe_uri="$( echo "$uri" | sed -e 's/\W/-/g' )" - -# a filename suggested by the server or based on the URL -suggested_filename="${1:-$safe_uri}" -shift - -# the mimetype of the file being downloaded -content_type="$1" -shift - -# the size of the downloaded file in bytes. this is not always accurate, since -# the server might not have sent a size with its response headers. -total_size="$1" -shift - -case "$suggested_filename" in - # example: save torrents to a separate directory - *.torrent) - path="/home/vasko/Torrents/$suggested_filename" - ;; - # Default case - *) - path="/home/vasko/Downloads/$suggested_filename" - ;; -esac - -source ~/.colors; - -if ! /home/vasko/.ratpoison/ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io 2 "Download \"$suggested_filename\"?" false Yes true No false;then -path=''; -fi - -# Do nothing if we don't want to save the file -[ -z "$path" ] && exit 0 - -# Check if the file exists -if [ ! -e "$path" ]; then - echo "$path" - exit 0 -fi - -# Try to make a unique filename -count=1 -while [ -e "$path.$count" ]; do - count=$(( $count + 1 )) -done - -echo "$path.$count" diff --git a/config/uzbl/scripts/gonew.pl b/config/uzbl/scripts/gonew.pl deleted file mode 100755 index 33dac82..0000000 --- a/config/uzbl/scripts/gonew.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -my @cmd = @ARGV; -my $fifo = $ENV{'UZBL_FIFO'}; - - -#If there are no dots in the first word or more than one word is suppllied expect a phrase for google. Else go to the uri specified. -if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) -{ - # Replace this with your search engine - qx(uzbl-browser --uri "https://encrypted.google.com/search?q=@ARGV&hl=en"); -} -else -{ - qx(uzbl-browser --uri @cmd"); -} diff --git a/config/uzbl/scripts/goto.pl b/config/uzbl/scripts/goto.pl deleted file mode 100755 index b1630d4..0000000 --- a/config/uzbl/scripts/goto.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -my @cmd = @ARGV; -my $fifo = $ENV{'UZBL_FIFO'}; - - -#If there are no dots in the first word or more than one word is suppllied expect a phrase for google. Else go to the uri specified. -if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) -{ - # Replace this with your search engine - qx(echo "uri https://encrypted.google.com/search?q=@ARGV&hl=en" >> $fifo); -} -else -{ - qx(echo "uri @cmd" >> $fifo); -} diff --git a/config/uzbl/scripts/gowiki.pl b/config/uzbl/scripts/gowiki.pl deleted file mode 100755 index 61f636d..0000000 --- a/config/uzbl/scripts/gowiki.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -my @cmd = @ARGV; -my $fifo = $ENV{'UZBL_FIFO'}; - - -#If there are no dots in the first word or more than one word is suppllied expect a phrase for google. Else go to the uri specified. -if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) -{ - # Replace this with your search engine - qx(echo "uri http://127.0.0.1:8000/search?content=wikipedia_en_all_nopic_01_2014&pattern=@ARGV" >> $fifo); -} -else -{ - qx(echo "uri @cmd" >> $fifo); -} diff --git a/config/uzbl/scripts/gowikio.pl b/config/uzbl/scripts/gowikio.pl deleted file mode 100755 index 743c69c..0000000 --- a/config/uzbl/scripts/gowikio.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -my @cmd = @ARGV; -my $fifo = $ENV{'UZBL_FIFO'}; - - -#If there are no dots in the first word or more than one word is suppllied expect a phrase for google. Else go to the uri specified. -if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) -{ - # Replace this with your search engine - qx(echo "uri http://en.wikipedia.org/w/index.php?search=@ARGV" >> $fifo); -} -else -{ - qx(echo "uri @cmd" >> $fifo); -} diff --git a/config/uzbl/scripts/youtube.pl b/config/uzbl/scripts/youtube.pl deleted file mode 100755 index 5a0e99a..0000000 --- a/config/uzbl/scripts/youtube.pl +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env perl -my $url = $ENV{'UZBL_URI'}; -exec "mpv '$url'" - diff --git a/config/uzbl/style.css b/config/uzbl/style.css deleted file mode 100644 index 3f870a4..0000000 --- a/config/uzbl/style.css +++ /dev/null @@ -1,34 +0,0 @@ -#uzbl_link_hints > span { - z-index: 1000 !important; - - background-color: #333 !important; - margin: 0 !important; - padding: 3px !important; - - color: #ccc !important; - font-size: 9px !important; - line-height: 9px !important; - font-weight: bold !important; - font-variant: normal !important; - text-decoration: none !important; - - -webkit-transform: translate(-5px,-5px); - opacity: 0.8; - -webkit-border-radius: 6px !important; - /* Play around with this, pretty fun things to do :) */ - -webkit-transform: scale(1.2) rotate(0deg) translate(-6px,-5px) !important; -} - -/* we can have different colours for different types of hints! */ -#uzbl_link_hints.new-window > span { - background-color: #ffff00 !important; - color: black !important; -} - -.uzbl-follow-text-match { - outline: 2px solid invert; - background: #333 !important; - color: white !important; -} - -/* vim:set et ts=4: */ |