blob: 85ccbc6e774fba8691e63320433f3fb9c306b63a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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=`$clip -o`
case $action in
"yank" ) echo -n "$url" | eval "$clip";;
"goto" ) echo "uri $selection" > "$fifo";;
* ) echo "clipboard.sh: invalid action";;
esac
|