mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Give linkhandler option to read from clipboard
This commit is contained in:
parent
d283f12ef9
commit
6d0ad93751
@ -6,6 +6,11 @@
|
||||
# if a music file or pdf, it will download,
|
||||
# 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.
|
||||
[ -z "$1" ] && { "$BROWSER"; exit; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user