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