make icon setting configurable
[uzbl-mobile] / examples / scripts / clipboard.sh
1 #!/bin/bash
2
3 # with this script you can store the current url in the clipboard, or go to the url which is stored in the clipboard.
4
5 fifo="$5"
6 action="$1"
7 url="$7"
8 selection=$(xclip -o)
9
10 case $action in
11   "yank" ) echo -n "$url" | xclip;;
12   "goto" ) echo "uri $selection" > "$fifo";;
13   * ) echo "clipboard.sh: invalid action";;
14 esac
15