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
83dcdb42
Commit
83dcdb42
authored
Oct 02, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add args to --upload and --su
parent
c08fc746
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
config
config/config
+1
-1
neofetch
neofetch
+6
-1
No files found.
config/config
View file @
83dcdb42
...
@@ -406,7 +406,7 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
...
@@ -406,7 +406,7 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
# Image upload host
# Image upload host
# Where to upload the image.
# Where to upload the image.
# Possible values:
teknik,
# Possible values:
imgur, teknik
image_host
=
"imgur"
image_host
=
"imgur"
# Imgur api key
# Imgur api key
...
...
neofetch
View file @
83dcdb42
...
@@ -2961,7 +2961,7 @@ usage() { cat << EOF
...
@@ -2961,7 +2961,7 @@ usage() { cat << EOF
--scrot | -s /path/to/img Take a screenshot, if path is left empty the screen-
--scrot | -s /path/to/img Take a screenshot, if path is left empty the screen-
shot function will use \
$scrot_dir
and \
$scrot_name
.
shot function will use \
$scrot_dir
and \
$scrot_name
.
--upload | -su Same as --scrot but uploads the scrot to a website.
--upload | -su Same as --scrot but uploads the scrot to a website.
--image_host Website to upload scrots to. Takes:
teknik,
--image_host Website to upload scrots to. Takes:
imgur, teknik
--scrot_cmd cmd Screenshot program to launch
--scrot_cmd cmd Screenshot program to launch
Other:
Other:
...
@@ -3127,6 +3127,11 @@ getargs() {
...
@@ -3127,6 +3127,11 @@ getargs() {
--upload
|
-su
)
--upload
|
-su
)
scrot
=
"on"
scrot
=
"on"
scrot_upload
=
"on"
scrot_upload
=
"on"
if
[
"
$2
"
]
;
then
scrot_name
=
"
${
2
##*/
}
"
scrot_dir
=
"
${
2
/
$scrot_name
}
"
fi
;;
;;
--image_host
)
image_host
=
"
$2
"
;;
--image_host
)
image_host
=
"
$2
"
;;
--scrot_cmd
)
scrot_cmd
=
"
$2
"
;;
--scrot_cmd
)
scrot_cmd
=
"
$2
"
;;
...
...
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