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
a3dc5834
Commit
a3dc5834
authored
Dec 12, 2016
by
Dylan Araps
Committed by
GitHub
Dec 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #520 from dylanaraps/scrot2
Scrot: Use arrays for $scrot_program
parents
82584083
a6e2bc9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
neofetch
neofetch
+10
-10
No files found.
neofetch
View file @
a3dc5834
...
...
@@ -2383,22 +2383,22 @@ scrot_program() {
# falling back to OS specific screenshot tools.
if [[ -n "
$DISPLAY
" ]]; then
if [[ "
$scrot_cmd
" != "
auto
" ]] && type -p "
$scrot_cmd
" >/dev/null; then
scrot_program=
"
$scrot_cmd
"
scrot_program=
("
$scrot_cmd
")
elif type -p scrot >/dev/null; then
scrot_program=
"
scrot
"
scrot_program=
(scrot)
elif type -p maim >/dev/null; then
scrot_program=
"
maim
"
scrot_program=
(maim)
elif type -p import >/dev/null; then
scrot_program=
"
import
-window root
"
scrot_program=
(import -window root)
elif type -p imlib2_grab >/dev/null; then
scrot_program=
"
imlib2_grab
"
scrot_program=
(imlib2_grab)
elif type -p gnome-screenshot >/dev/null; then
scrot_program=
"
gnome
-screenshot -f
"
scrot_program=
(gnome-screenshot -f)
else
err "
Scrot
:
No screen capture tool found.
"
...
...
@@ -2406,15 +2406,15 @@ scrot_program() {
fi
else
case "
$os
" in
"
Mac
OS X
") scrot_program=
"
screencapture
-S
"
;;
"
Haiku
") scrot_program=
"
screenshot
-s
"
;;
"
Mac
OS X
") scrot_program=
(screencapture -S)
;;
"
Haiku
") scrot_program=
(screenshot -s)
;;
esac
fi
# Take the scrot.
$scrot_program
"
$1
"
"
${
scrot_program
[@]
}
"
"
$1
"
err "
Scrot
:
Screen captured using
$
scrot_program
"
err "
Scrot
:
Screen captured using
$
{
scrot_program
[0]
}
"
}
# TEXT FORMATTING
...
...
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