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
2b9167e8
Commit
2b9167e8
authored
Feb 24, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--size: Handle px suffix
parent
53379563
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
1.3.md
1.3.md
+3
-0
README.md
README.md
+1
-1
config
config/config
+1
-1
fetch
fetch
+3
-2
No files found.
1.3.md
View file @
2b9167e8
...
@@ -16,6 +16,9 @@ is now calculated by fetch automatically.
...
@@ -16,6 +16,9 @@ is now calculated by fetch automatically.
```
sh
```
sh
# Image takes up 70% of the terminal size.
# Image takes up 70% of the terminal size.
fetch
--size
70%
fetch
--size
70%
# Size the image in pixels.
fetch
--size
200px
```
```
### Packages
### Packages
...
...
README.md
View file @
2b9167e8
...
@@ -273,7 +273,7 @@ alias fetch2="fetch \
...
@@ -273,7 +273,7 @@ alias fetch2="fetch \
--image type Image source. Where and what image we display.
--image type Image source. Where and what image we display.
Possible values: wall, shuffle, ascii,
Possible values: wall, shuffle, ascii,
/path/to/img, off
/path/to/img, off
--size 20
| --size 20%
Size to make the image, takes pixels or a percentage.
--size 20
px | --size 20%
Size to make the image, takes pixels or a percentage.
--image_backend w3m/iterm2 Which program to use to draw images.
--image_backend w3m/iterm2 Which program to use to draw images.
--shuffle_dir path/to/dir Which directory to shuffle for an image.
--shuffle_dir path/to/dir Which directory to shuffle for an image.
--image_position left/right Where to display the image: (Left/Right)
--image_position left/right Where to display the image: (Left/Right)
...
...
config/config
View file @
2b9167e8
...
@@ -255,7 +255,7 @@ crop_offset="center"
...
@@ -255,7 +255,7 @@ crop_offset="center"
# Image size
# Image size
# The image is half the terminal width by default.
# The image is half the terminal width by default.
# --size auto, px, 00%
# --size auto,
00
px, 00%
image_size
=
"auto"
image_size
=
"auto"
# Right gap between image and text
# Right gap between image and text
...
...
fetch
View file @
2b9167e8
...
@@ -275,7 +275,7 @@ crop_offset="center"
...
@@ -275,7 +275,7 @@ crop_offset="center"
# Image size
# Image size
# The image is half the terminal width by default.
# The image is half the terminal width by default.
# --size auto, px, 00%
# --size auto,
00
px, 00%
image_size
=
"auto"
image_size
=
"auto"
# Right gap between image and text
# Right gap between image and text
...
@@ -1739,6 +1739,7 @@ getimage () {
...
@@ -1739,6 +1739,7 @@ getimage () {
image_size=
$((
percent
*
term_height
/
100
))
image_size=
$((
percent
*
term_height
/
100
))
;;
;;
esac
esac
image_size=
${
image_size
/px
}
# Where to draw the image
# Where to draw the image
case "
$image_position
" in
case "
$image_position
" in
...
@@ -2266,7 +2267,7 @@ usage () { cat << EOF
...
@@ -2266,7 +2267,7 @@ usage () { cat << EOF
--image type Image source. Where and what image we display.
--image type Image source. Where and what image we display.
Possible values: wall, shuffle, ascii,
Possible values: wall, shuffle, ascii,
/path/to/img, off
/path/to/img, off
--size 20
| --size 20%
Size to make the image, takes pixels or a percentage.
--size 20
px | --size 20%
Size to make the image, takes pixels or a percentage.
--image_backend w3m/iterm2 Which program to use to draw images.
--image_backend w3m/iterm2 Which program to use to draw images.
--shuffle_dir path/to/dir Which directory to shuffle for an image.
--shuffle_dir path/to/dir Which directory to shuffle for an image.
--image_position left/right Where to display the image: (Left/Right)
--image_position left/right Where to display the image: (Left/Right)
...
...
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