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
0998d629
Commit
0998d629
authored
Mar 19, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #162 from dylanaraps/scrot_fixes
Fixed bugs with scrot usage
parents
60ce0d14
cf3418d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
config
config/config
+3
-3
neofetch
neofetch
+10
-5
No files found.
config/config
View file @
0998d629
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Speed up script by not using unicode
# Speed up script by not using unicode
export
LC_ALL
=
C
export
LC_ALL
=
C
export
LANG
=
c
export
LANG
=
C
export
LANGUAGE
=
C
export
LANGUAGE
=
C
# Info Options {{{
# Info Options {{{
...
@@ -368,12 +368,12 @@ scrot_cmd="scrot -c -d 3"
...
@@ -368,12 +368,12 @@ scrot_cmd="scrot -c -d 3"
# Scrot dir
# Scrot dir
# Where to save the screenshots
# Where to save the screenshots
# --scrot_dir /path/to/screenshot/folder
# --scrot_dir /path/to/screenshot/folder
scrot_dir
=
"
$HOME
/Pictures"
scrot_dir
=
"
$HOME
/Pictures
/
"
# Scrot filename
# Scrot filename
# What to name the screenshots
# What to name the screenshots
# --scrot_name str
# --scrot_name str
scrot_name
=
"neofetch-
%Y-%m-%d-%H:%M
.png"
scrot_name
=
"neofetch-
$(
date
+%F-%T
)
.png"
# }}}
# }}}
...
...
neofetch
View file @
0998d629
...
@@ -388,12 +388,12 @@ scrot_cmd="scrot -c -d 3"
...
@@ -388,12 +388,12 @@ scrot_cmd="scrot -c -d 3"
# Scrot dir
# Scrot dir
# Where to save the screenshots
# Where to save the screenshots
# --scrot_dir /path/to/screenshot/folder
# --scrot_dir /path/to/screenshot/folder
scrot_dir
=
"
$HOME
/Pictures"
scrot_dir
=
"
$HOME
/Pictures
/
"
# Scrot filename
# Scrot filename
# What to name the screenshots
# What to name the screenshots
# --scrot_name str
# --scrot_name str
scrot_name
=
"neofetch-
%Y-%m-%d-%H:%M
.png"
scrot_name
=
"neofetch-
$(
date
+%F-%T
)
.png"
# }}}
# }}}
...
@@ -2052,9 +2052,8 @@ getimage () {
...
@@ -2052,9 +2052,8 @@ getimage () {
img="
$thumbnail_dir
/
$imgname
"
img="
$thumbnail_dir
/
$imgname
"
}
}
scrot_path="
$scrot_dir
/
$scrot_name
"
takescrot () {
takescrot () {
$scrot_cmd
"
$
scrot_path
"
$scrot_cmd
"
$
{
scrot_dir
}${
scrot_name
}
"
}
}
# }}}
# }}}
...
@@ -2721,7 +2720,13 @@ while [ "$1" ]; do
...
@@ -2721,7 +2720,13 @@ while [ "$1" ]; do
--ascii_logo_size) ascii_logo_size="
$2
" ;;
--ascii_logo_size) ascii_logo_size="
$2
" ;;
# Screenshot
# Screenshot
--scrot | -s) scrot="
on
"; [ "
$2
" ] && scrot_path="
$2
" ;;
--scrot | -s)
scrot="
on
"
if [ "
$2
" ]; then
scrot_name="
${
2
##*/
}
"
scrot_dir="
${
2
/
$scrot_name
}
"
fi
;;
--scrot_cmd) scrot_cmd="
$2
" ;;
--scrot_cmd) scrot_cmd="
$2
" ;;
# Stdout
# Stdout
...
...
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