diff --git a/config/config b/config/config index c9da7910..8d5baf42 100644 --- a/config/config +++ b/config/config @@ -404,11 +404,6 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" # Possible values: imgur, teknik image_host="imgur" -# Imgur api key -# This is an api key for neofetch, you can sign up for your own -# here: http://api.imgur.com/oauth2/addclient -imgur_client_id="0e8b44d15e9fc95" - # Config Options diff --git a/neofetch b/neofetch index 8611efaf..f6fe2f83 100755 --- a/neofetch +++ b/neofetch @@ -2278,7 +2278,7 @@ scrot_upload() { ;; "imgur") - image_url="$(curl -sH "Authorization: Client-ID $imgur_client_id" -F image="@${image_file}" "https://api.imgur.com/3/upload")" + image_url="$(curl -sH "Authorization: Client-ID 0e8b44d15e9fc95" -F image="@${image_file}" "https://api.imgur.com/3/upload")" image_url="$(awk -F 'id:|,' '{printf $2}' <<< "${image_url//\"}")" [[ "$image_url" ]] && image_url="https://i.imgur.com/${image_url}.png" ;;