Add ability to get link from clipboard if none provided.
This commit is contained in:
parent
e8f3cca8a9
commit
6a1c7bdc46
@ -21,7 +21,9 @@ menu () {
|
||||
main () {
|
||||
load_config
|
||||
|
||||
menu $@
|
||||
[ $# -eq 0 ] && link=$(xclip -sel c -o) || link="$@"
|
||||
|
||||
menu $link
|
||||
}
|
||||
|
||||
main $@
|
||||
|
Loading…
Reference in New Issue
Block a user