doc/todo updates
[uzbl-00z.git] / examples / scripts / clipboard.sh
blobe13f053be4957a84b3105615735655f3334a8916
1 #!/bin/bash
3 # with this script you can store the current url in the clipboard, or go to the url which is stored in the clipboard.
5 fifo="$5"
6 action="$1"
7 url="$7"
8 selection=$(xclip -o)
10 case $action in
11 "yank" ) echo -n "$url" | xclip;;
12 "goto" ) echo "act uri $selection" > "$fifo";;
13 * ) echo "clipboard.sh: invalid action";;
14 esac