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
60beb88d
Commit
60beb88d
authored
Oct 22, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w3m-img: Add -bg support
parent
b12e5b1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
README.md
README.md
+2
-0
neofetch
neofetch
+4
-1
neofetch.1
neofetch.1
+4
-0
No files found.
README.md
View file @
60beb88d
...
...
@@ -440,6 +440,8 @@ alias neofetch2="neofetch \
window. This only works with w3m.
--yoffset px How close the image will be to the top edge of the
window. This only works with w3m.
--bg_color color Background color to display behind transparent image.
This only works with w3m.
--gap num Gap between image and text.
NOTE: --gap can take a negative value which will
move the text closer to the left side.
...
...
neofetch
View file @
60beb88d
...
...
@@ -2312,7 +2312,7 @@ displayimage() {
# appearing in specific terminal emulators.
sleep
0.05
printf
"%b%s
\n
"
"0;1;
$xoffset
;
$yoffset
;
$width
;
$height
;;;;;
$img
\n
4;
\n
3;"
|
\
$w3m_img_path
2>/dev/null
||
padding
=
"
\0
33[0C"
$w3m_img_path
-bg
"
$background_color
"
2>/dev/null
||
padding
=
"
\0
33[0C"
;;
"iterm2"
)
...
...
@@ -3037,6 +3037,8 @@ usage() { cat << EOF
window. This only works with w3m.
--yoffset px How close the image will be to the top edge of the
window. This only works with w3m.
--bg_color color Background color to display behind transparent image.
This only works with w3m.
--gap num Gap between image and text.
NOTE: --gap can take a negative value which will
move the text closer to the left side.
...
...
@@ -3176,6 +3178,7 @@ getargs() {
--crop_offset
)
crop_offset
=
"
$2
"
;;
--xoffset
)
xoffset
=
"
$2
"
;;
--yoffset
)
yoffset
=
"
$2
"
;;
--background_color
|
--bg_color
)
background_color
=
"
$2
"
;;
--gap
)
gap
=
"
$2
"
;;
--clean
)
rm
-rf
"
$thumbnail_dir
"
...
...
neofetch.1
View file @
60beb88d
...
...
@@ -198,6 +198,10 @@ window in pixel. This only works with w3m.
How close the image will be to the top edge
of the window. This only works with w3m.
.TP
.B \--bg_color 'color'
Background color to display behind transparent image.
This only works with w3m.
.TP
.B \--gap 'num'
Gap between image and text.
.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