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
ec8e4f5d
Commit
ec8e4f5d
authored
Jun 13, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove image_position
parent
43d4e1e8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
README.md
README.md
+0
-1
neofetch
neofetch
+0
-17
neofetch.1
neofetch.1
+0
-3
No files found.
README.md
View file @
ec8e4f5d
...
...
@@ -424,7 +424,6 @@ alias fetch2="fetch \
/path/to/img, /path/to/dir/, off
--size 00px | --size 00% How to size the image.
Possible values: auto, 00px, 00%, none
--image_position left/right Where to display the image: (Left/Right)
--crop_mode mode Which crop mode to use
Takes the values: normal, fit, fill
--crop_offset value Change the crop offset for normal mode.
...
...
neofetch
View file @
ec8e4f5d
...
...
@@ -330,11 +330,6 @@ thumbnail_dir="$HOME/.cache/thumbnails/neofetch"
# builtin detection doesn't work.
w3m_img_path
=
"/usr/lib/w3m/w3mimgdisplay"
# Image position
# Only works with the w3m backend
# --image_position left/right
image_position
=
"left"
# Crop mode
# --crop_mode normal/fit/fill
crop_mode
=
"normal"
...
...
@@ -2335,18 +2330,8 @@ getimage () {
width="
${
width
:-
$image_size
}
"
height="
${
height
:-
$image_size
}
"
# Where to draw the image
case "
$image_position
" in
"
left
")
# Padding is half the terminal width + gap
padding="
\0
33[
$((
width
/
font_width
+
gap
+
xoffset/font_width
))
C
"
;;
"
right
")
padding="
\0
33[0C
"
xoffset="
$((
columns
*
font_width
/
2
-
gap
))
"
;;
esac
# Make the directory if it doesn't exist
mkdir -p "
$thumbnail_dir
"
...
...
@@ -3018,7 +3003,6 @@ usage () { cat << EOF
/path/to/img, /path/to/dir/, off
--size 00px | --size 00% How to size the image.
Possible values: auto, 00px, 00%, none
--image_position left/right Where to display the image: (Left/Right)
--crop_mode mode Which crop mode to use
Takes the values: normal, fit, fill
--crop_offset value Change the crop offset for normal mode.
...
...
@@ -3164,7 +3148,6 @@ while [ "$1" ]; do
;;
--size
)
image_size
=
"
$2
"
;;
--image_position
)
image_position
=
"
$2
"
;;
--crop_mode
)
crop_mode
=
"
$2
"
;;
--crop_offset
)
crop_offset
=
"
$2
"
;;
--xoffset
)
xoffset
=
"
$2
"
;;
...
...
neofetch.1
View file @
ec8e4f5d
...
...
@@ -179,9 +179,6 @@ How to size the image.
.br
Possible values: auto, 00px, 00%, none
.TP
.B \--image_position 'left/right'
Where to display the image: (Left/Right)
.TP
.B \--crop_mode 'mode'
Which crop mode to use
.br
...
...
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