Merge branch 'patch-4' of https://github.com/windeb204/voidrice into windeb204-patch-4
This commit is contained in:
commit
b416dffafb
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
||||||
# if a music file or pdf, it will download,
|
# if a music file or pdf, it will download,
|
||||||
# otherwise it opens link in browser.
|
# otherwise it opens link in browser.
|
||||||
|
|
||||||
|
# If -c passed, read from clipboard
|
||||||
|
while getopts 'c' o; do case "${o}" in
|
||||||
|
c) set "$(xclip -o)";;
|
||||||
|
esac done
|
||||||
|
|
||||||
# If no url given. Opens browser. For using script as $BROWSER.
|
# If no url given. Opens browser. For using script as $BROWSER.
|
||||||
[ -z "$1" ] && { "$BROWSER"; exit; }
|
[ -z "$1" ] && { "$BROWSER"; exit; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue