keybind to start a new uzbl instance from the page in primary selection
authorDieter Plaetinck <dieter@plaetinck.be>
Mon, 8 Jun 2009 20:50:43 +0000 (22:50 +0200)
committerDieter Plaetinck <dieter@plaetinck.be>
Mon, 8 Jun 2009 20:50:43 +0000 (22:50 +0200)
examples/config/uzbl/config

index dcb00fd..e7c03dc 100644 (file)
@@ -147,6 +147,8 @@ bind    y2url     = sh 'echo -n $6 | xclip'
 bind    p         = sh 'echo "uri `xclip -selection primary -o`" > $4'
 # go to the page in clipboard
 bind    P         = sh 'echo "uri `xclip -selection clipboard -o`" > $4'
+# start a new uzbl instance from the page in primary selection
+bind    'p        = sh 'exec uzbl --uri $(xclip -o)'
 bind    ZZ        = exit
 bind    Xs         = js alert("hi");
 # example showing how to use sh