aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-04-20 21:29:48 -0400
committerGravatar Ben Boeckel <MathStuf@gmail.com>2011-04-20 21:29:48 -0400
commita4ec13b670c5e27483aa388a1ef03a15b8bba935 (patch)
tree2a2328d75851752d3d4b1bca6d16a834ca59f107 /examples
parent1b171ea59fffa3df92aa4b3b1604c911a77b9c3a (diff)
Add binding to copy a link to the clipboard
Diffstat (limited to 'examples')
-rw-r--r--examples/config/config1
-rwxr-xr-xexamples/data/scripts/follow.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/config/config b/examples/config/config
index b8312e5..8ed533f 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -346,6 +346,7 @@ set follow_hint_keys = 0123456789
@cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'click') >\@
@cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'newwindow') >\@
@cbind fL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ set
+@cbind FL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ clipboard
@cbind fi = spawn @scripts_dir/go_input.sh
# Form filler binds
diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh
index 01a4f91..262aec3 100755
--- a/examples/data/scripts/follow.sh
+++ b/examples/data/scripts/follow.sh
@@ -23,5 +23,8 @@ case "$result" in
set)
printf 'uri '"$uri"'\nset mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO"
;;
+ clipboard)
+ printf "$uri" | xclip
+ ;;
esac
esac