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
ca54e76f
Commit
ca54e76f
authored
Feb 09, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Images: Added termpix backend
parent
2b2a9c19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
neofetch
neofetch
+8
-4
neofetch.1
neofetch.1
+8
-2
No files found.
neofetch
View file @
ca54e76f
...
...
@@ -1985,7 +1985,7 @@ image_backend() {
"ascii") get_ascii ;;
"off") image_backend="off" ;;
"caca" | "catimg" | "jp2a" | "iterm2" | "tycat" | "w3m" | "sixel")
"caca" | "catimg" | "jp2a" | "iterm2" | "t
ermpix" | "t
ycat" | "w3m" | "sixel")
get_image_source
if [[ ! -f "$image" ]]; then
...
...
@@ -2010,7 +2010,7 @@ image_backend() {
*)
err "
Image: Unknown image backend specified
'$image_backend'
.
"
err "
Image: Valid backends are:
'ascii'
,
'caca'
,
'catimg'
,
'jp2a'
,
'iterm2'
,
'off'
,
'sixel'
,
'tycat'
,
'w3m'
)
"
err "
Image: Valid backends are:
'ascii'
,
'caca'
,
'catimg'
,
'jp2a'
,
'iterm2'
,
'off'
,
'sixel'
,
't
ermpix'
,
't
ycat'
,
'w3m'
)
"
err "
Image: Falling back to ascii mode.
"
get_ascii
;;
...
...
@@ -2398,6 +2398,10 @@ display_image() {
img2sixel
-w
"
$width
"
"
$image
"
||
to_off
"Image: libsixel failed to display the image."
;;
"termpix"
)
termpix
--width
"
$((
width
/
font_width
))
"
"
$image
"
||
to_off
"Image: termpix failed to display the image."
;;
"iterm2"
)
printf
"%b
\a\n
"
"
\0
33]1337;File=width=
${
width
}
px;height=
${
height
}
px;inline=1:
$(
base64
<
"
$image
"
)
"
;;
...
...
@@ -3813,6 +3817,7 @@ IMAGE BACKEND:
--iterm2 source Shortcut to use 'iterm2' backend.
--jp2a source Shortcut to use 'jp2a' backend.
--sixel source Shortcut to use 'sixel' backend.
--termpix source Shortcut to use 'termpix' backend.
--tycat source Shortcut to use 'tycat' backend.
--w3m source Shortcut to use 'w3m' backend.
--off Shortcut to use 'off' backend.
...
...
@@ -4015,7 +4020,7 @@ get_args() {
# Image backend
"--backend"
)
image_backend
=
"
$2
"
;;
"--source"
)
image_source
=
"
$2
"
;;
"--ascii"
|
"--caca"
|
"--catimg"
|
"--jp2a"
|
"--iterm2"
|
"--off"
|
"--sixel"
|
"--tycat"
|
"--w3m"
)
"--ascii"
|
"--caca"
|
"--catimg"
|
"--jp2a"
|
"--iterm2"
|
"--off"
|
"--sixel"
|
"--t
ermpix"
|
"--t
ycat"
|
"--w3m"
)
image_backend
=
"
${
1
/--
}
"
case
"
$2
"
in
"-"
*
|
""
)
;;
...
...
@@ -4112,7 +4117,6 @@ main() {
printf
"
\0
33[?25l
\0
33[?7l"
fi
# get_image_backend
image_backend
old_functions
get_cache_dir
...
...
neofetch.1
View file @
ca54e76f
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
.TH NEOFETCH "1" "
Jan
uary 2017" "Neofetch 3.0.2" "User Commands"
.TH NEOFETCH "1" "
Febr
uary 2017" "Neofetch 3.0.2" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
...
...
@@ -175,7 +175,7 @@ Possible values: bar, infobar, barinfo, off
.TP
\fB\-\-backend\fR backend
Which image backend to use.
Possible values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
Possible values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', '
sixel', '
tycat', 'w3m'
.TP
\fB\-\-source\fR source
Which image or ascii file to use.
...
...
@@ -196,6 +196,12 @@ Shortcut to use 'iterm2' backend.
\fB\-\-jp2a\fR source
Shortcut to use 'jp2a' backend.
.TP
\fB\-\-sixel\fR source
Shortcut to use 'sixel' backend.
.TP
\fB\-\-termpix\fR source
Shortcut to use 'termpix' backend.
.TP
\fB\-\-tycat\fR source
Shortcut to use 'tycat' backend.
.TP
...
...
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