From: Dieter Plaetinck Date: Sun, 17 May 2009 17:26:03 +0000 (+0200) Subject: more more fancy xclip related things in sample configs X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=8516adf58ac158a3ad4fb66adf1df08c55c716a9;p=uzbl-mobile more more fancy xclip related things in sample configs --- diff --git a/examples/configs/sampleconfig b/examples/configs/sampleconfig index e5ae9a2..ada1134 100644 --- a/examples/configs/sampleconfig +++ b/examples/configs/sampleconfig @@ -84,6 +84,12 @@ bind u = spawn /usr/share/uzbl/examples/scripts/load_url_from_bookmar # with the sample yank script, you can yank one of the arguments into clipboard/selection bind yurl = spawn /usr/share/uzbl/examples/scripts/yank.sh 8 primary bind ytitle = spawn /usr/share/uzbl/examples/scripts/yank.sh 9 clipboard +# does the same as yurl but without needing a script +bind y2url = sh 'echo -n $6 | xclip' +# go the page from primary selection +bind p = sh "echo act uri `xclip -selection primary -o` > $4" +# go to the page in clipboard +bind P = sh "echo act uri `xclip -selection clipboard -o` > $4" bind ZZ = exit bind S = script alert("hi"); # example showing how to use sh diff --git a/examples/configs/sampleconfig-dev b/examples/configs/sampleconfig-dev index ec2dbbb..337da7b 100644 --- a/examples/configs/sampleconfig-dev +++ b/examples/configs/sampleconfig-dev @@ -85,6 +85,12 @@ bind u = spawn ./examples/scripts/load_url_from_bookmarks.sh # with the sample yank script, you can yank one of the arguments into clipboard/selection bind yurl = spawn ./examples/scripts/yank.sh 8 primary bind ytitle = spawn ./examples/scripts/yank.sh 9 clipboard +# does the same as yurl but without needing a script +bind y2url = sh 'echo -n $6 | xclip' +# go the page from primary selection +bind p = sh "echo act uri `xclip -selection primary -o` > $4" +# go to the page in clipboard +bind P = sh "echo act uri `xclip -selection clipboard -o` > $4" bind ZZ = exit bind S = script alert("hi"); # example showing how to use sh