Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
cf049925
Commit
cf049925
authored
Nov 23, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrot Upload: [imgur] Hardcode client id
parent
2cfbec35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
config
config/config
+0
-5
neofetch
neofetch
+1
-1
No files found.
config/config
View file @
cf049925
...
...
@@ -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
...
...
neofetch
View file @
cf049925
...
...
@@ -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
"
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment