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
a27382d2
Commit
a27382d2
authored
May 21, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image: Make the resolution of catimg configurable.
parent
0fe97207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
neofetch
neofetch
+11
-1
neofetch.1
neofetch.1
+3
-0
No files found.
neofetch
View file @
a27382d2
...
@@ -747,6 +747,14 @@ crop_offset="center"
...
@@ -747,6 +747,14 @@ crop_offset="center"
# --size
# --size
image_size="auto"
image_size="auto"
# Catimg block size.
# Control the resolution of catimg.
#
# Default: '2'
# Values: '1', '2'
# Flags: --catimg_size
catimg_size="2"
# Gap between image and text
# Gap between image and text
#
#
# Default: '3'
# Default: '3'
...
@@ -3842,7 +3850,7 @@ display_image() {
...
@@ -3842,7 +3850,7 @@ display_image() {
;;
;;
"catimg")
"catimg")
catimg -w "$((width * 2 / font_width))" "$image" ||\
catimg -w "$((width * 2 / font_width))"
-r "$catimg_size"
"$image" ||\
to_off "Image: catimg failed to display the image."
to_off "Image: catimg failed to display the image."
;;
;;
...
@@ -4778,6 +4786,7 @@ IMAGE:
...
@@ -4778,6 +4786,7 @@ IMAGE:
in some terminals emulators when using image mode.
in some terminals emulators when using image mode.
--size 00px | --size 00% How to size the image.
--size 00px | --size 00% How to size the image.
Possible values: auto, 00px, 00%, none
Possible values: auto, 00px, 00%, none
--catimg_size 1/2 Change the resolution of catimg.
--crop_mode mode Which crop mode to use
--crop_mode mode Which crop mode to use
Takes the values: normal, fit, fill
Takes the values: normal, fit, fill
--crop_offset value Change the crop offset for normal mode.
--crop_offset value Change the crop offset for normal mode.
...
@@ -4940,6 +4949,7 @@ get_args() {
...
@@ -4940,6 +4949,7 @@ get_args() {
# Image options
# Image options
"--loop") image_loop="on" ;;
"--loop") image_loop="on" ;;
"--image_size" | "--size") image_size="$2" ;;
"--image_size" | "--size") image_size="$2" ;;
"--catimg_size") catimg_size="$2" ;;
"--crop_mode") crop_mode="$2" ;;
"--crop_mode") crop_mode="$2" ;;
"--crop_offset") crop_offset="$2" ;;
"--crop_offset") crop_offset="$2" ;;
"--xoffset") xoffset="$2" ;;
"--xoffset") xoffset="$2" ;;
...
...
neofetch.1
View file @
a27382d2
...
@@ -276,6 +276,9 @@ in some terminals emulators when using image mode.
...
@@ -276,6 +276,9 @@ in some terminals emulators when using image mode.
How to size the image.
How to size the image.
Possible values: auto, 00px, 00%, none
Possible values: auto, 00px, 00%, none
.TP
.TP
\fB\-\-catimg_size\fR 1/2
Change the resolution of catimg.
.TP
\fB\-\-crop_mode\fR mode
\fB\-\-crop_mode\fR mode
Which crop mode to use
Which crop mode to use
Takes the values: normal, fit, fill
Takes the values: normal, fit, fill
...
...
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