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
d34f01f2
Commit
d34f01f2
authored
Mar 27, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrot: Make scrot easier to use
parent
464a810f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
config
config/config
+0
-10
neofetch
neofetch
+2
-4
No files found.
config/config
View file @
d34f01f2
...
@@ -681,16 +681,6 @@ scrot="off"
...
@@ -681,16 +681,6 @@ scrot="off"
# Flag: --scrot_cmd
# Flag: --scrot_cmd
scrot_cmd
=
"auto"
scrot_cmd
=
"auto"
# Screenshot Directory
# Where to save the screenshots
#
# Default: '~/Pictures/'
# Values: 'dir'
# Flag: --scrot_dir
#
# Note: Neofetch won't create the directory if it doesn't exist.
scrot_dir
=
"
$HOME
/Pictures/"
# Screenshot Filename
# Screenshot Filename
# What to name the screenshots
# What to name the screenshots
#
#
...
...
neofetch
View file @
d34f01f2
...
@@ -2516,11 +2516,7 @@ to_off() {
...
@@ -2516,11 +2516,7 @@ to_off() {
# SCREENSHOT
# SCREENSHOT
take_scrot
()
{
take_scrot
()
{
if
[[
-d
"
$scrot_dir
"
]]
;
then
scrot_program
"
${
scrot_dir
}${
scrot_name
}
"
2>/dev/null
scrot_program
"
${
scrot_dir
}${
scrot_name
}
"
2>/dev/null
else
printf
"%s
\n
"
"Screenshot:
$scrot_dir
doesn't exist. Edit the config file or create the directory to take screenshots."
fi
[[
"
$scrot_upload
"
==
"on"
]]
&&
scrot_upload
[[
"
$scrot_upload
"
==
"on"
]]
&&
scrot_upload
}
}
...
@@ -2568,6 +2564,8 @@ scrot_args() {
...
@@ -2568,6 +2564,8 @@ scrot_args() {
scrot_dir="
${
2
/
$scrot_name
}
"
scrot_dir="
${
2
/
$scrot_name
}
"
;;
;;
esac
esac
[[ -z "
$@
" ]] && scrot_dir="
${
PWD
:+
${
PWD
}
/
}
"
}
}
scrot_program() {
scrot_program() {
...
...
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