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
6711ebc9
Commit
6711ebc9
authored
Dec 16, 2017
by
dylan araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image: Added pixterm backend.
parent
8762403d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
config.conf
config/config.conf
+1
-1
neofetch
neofetch
+15
-5
neofetch.1
neofetch.1
+5
-2
No files found.
config/config.conf
View file @
6711ebc9
...
...
@@ -543,7 +543,7 @@ disk_display="off"
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 't
ermpix', 'pixterm', 't
ycat', 'w3m'
# Flag: --backend
image_backend
=
"ascii"
...
...
neofetch
View file @
6711ebc9
...
...
@@ -2374,7 +2374,8 @@ image_backend() {
"ascii"
)
get_ascii
;;
"off"
)
image_backend
=
"off"
;;
"caca"
|
"catimg"
|
"jp2a"
|
"iterm2"
|
"termpix"
|
"tycat"
|
"w3m"
|
"sixel"
)
"caca"
|
"catimg"
|
"jp2a"
|
"iterm2"
|
"termpix"
|
\
"tycat"
|
"w3m"
|
"sixel"
|
"pixterm"
)
get_image_source
if
[[
!
-f
"
$image
"
]]
;
then
...
...
@@ -2400,7 +2401,7 @@ image_backend() {
*
)
err
"Image: Unknown image backend specified '
$image_backend
'."
err
"Image: Valid backends are: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2',
'off', 'sixel', 'termpix', 'tycat', 'w3m')"
'off', 'sixel', '
pixterm', '
termpix', 'tycat', 'w3m')"
err
"Image: Falling back to ascii mode."
get_ascii
;;
...
...
@@ -2800,8 +2801,16 @@ display_image() {
to_off
"Image: jp2a failed to display the image."
;;
"pixterm"
)
pixterm
-tc
"
$((
width
/
font_width
))
"
\
-tr
"
$((
height
/
font_height
))
"
\
"
$image
"
||
\
to_off
"Image: pixterm failed to display the image."
;;
"sixel"
)
img2sixel
-w
"
$width
"
"
$image
"
||
to_off
"Image: libsixel failed to display the image."
img2sixel
-w
"
$width
"
"
$image
"
||
\
to_off
"Image: libsixel failed to display the image."
;;
"termpix"
)
...
...
@@ -4430,6 +4439,7 @@ IMAGE BACKEND:
--catimg source Shortcut to use 'catimg' backend.
--iterm2 source Shortcut to use 'iterm2' backend.
--jp2a source Shortcut to use 'jp2a' backend.
--pixterm source Shortcut to use 'pixterm' backend.
--sixel source Shortcut to use 'sixel' backend.
--termpix source Shortcut to use 'termpix' backend.
--tycat source Shortcut to use 'tycat' backend.
...
...
@@ -4645,8 +4655,8 @@ get_args() {
# Image backend
"--backend"
)
image_backend
=
"
$2
"
;;
"--source"
)
image_source
=
"
$2
"
;;
"--ascii"
|
"--caca"
|
"--catimg"
|
"--jp2a"
|
"--iterm2"
|
"--off"
|
"--
sixel
"
|
\
"--termpix"
|
"--tycat"
|
"--w3m"
)
"--ascii"
|
"--caca"
|
"--catimg"
|
"--jp2a"
|
"--iterm2"
|
"--off"
|
"--
pixterm
"
|
\
"--
sixel"
|
"--
termpix"
|
"--tycat"
|
"--w3m"
)
image_backend
=
"
${
1
/--
}
"
case
"
$2
"
in
"-"
*
|
""
)
;;
...
...
neofetch.1
View file @
6711ebc9
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.
4
.
.TH NEOFETCH "1" "
September 2017" "Neofetch 3.3.0
" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.
5
.
.TH NEOFETCH "1" "
December 2017" "Neofetch 3.3.1-git
" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
...
...
@@ -207,6 +207,9 @@ Shortcut to use 'iterm2' backend.
\fB\-\-jp2a\fR source
Shortcut to use 'jp2a' backend.
.TP
\fB\-\-pixterm\fR source
Shortcut to use 'pixterm' backend.
.TP
\fB\-\-sixel\fR source
Shortcut to use 'sixel' 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