diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-14 22:05:48 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-14 22:05:48 +0200 |
commit | e7bbad8f7540003eddc8c4ddec6b782185047af0 (patch) | |
tree | 4d6741fadffd854ed9bc1cea7c325ebc041ea9db /examples/data/uzbl/scripts/clipboard.sh | |
parent | e4ec794daa2a27f4476f53aacbf947f57a27ce5c (diff) | |
parent | 135b490546cd5833aec76588825eba6634f8fd21 (diff) |
merge 1 from the00z. examples/data/uzbl/scripts/yank.sh is still bash, this should become fixed in next merge commit
Diffstat (limited to 'examples/data/uzbl/scripts/clipboard.sh')
-rwxr-xr-x | examples/data/uzbl/scripts/clipboard.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/data/uzbl/scripts/clipboard.sh b/examples/data/uzbl/scripts/clipboard.sh index c64b65c..85ccbc6 100755 --- a/examples/data/uzbl/scripts/clipboard.sh +++ b/examples/data/uzbl/scripts/clipboard.sh @@ -1,14 +1,17 @@ -#!/bin/bash +#!/bin/sh # with this script you can store the current url in the clipboard, or go to the url which is stored in the clipboard. +clip=xclip + fifo="$5" action="$1" url="$7" -selection=$(xclip -o) + +selection=`$clip -o` case $action in - "yank" ) echo -n "$url" | xclip;; + "yank" ) echo -n "$url" | eval "$clip";; "goto" ) echo "uri $selection" > "$fifo";; * ) echo "clipboard.sh: invalid action";; esac |