add flag to use --true-color with termpix backend

This commit is contained in:
Jason Gantenberg 2023-10-09 19:39:33 -04:00
parent ccd5d9f526
commit 0dc33b95c1
2 changed files with 15 additions and 2 deletions

View file

@ -896,6 +896,13 @@ image_size="auto"
# Flags: --catimg_size
catimg_size="2"
# Termpix uses true colors?
# Apply termpix's --true-color flag.
#
# Default: ''
# Flag: --true-color
true_color=
# Gap between image and text
#
# Default: '3'
@ -4503,6 +4510,7 @@ display_image() {
termpix \
--width "$((width / font_width))" \
--height "$((height / font_height))" \
$true_color \
"$image"
;;
@ -5214,6 +5222,7 @@ IMAGE:
closer to the left side.
--clean Delete cached files and thumbnails.
--true-color Use termpix --true-color flag.
OTHER:
--config /path/to/config Specify a path to a custom config file
@ -5373,6 +5382,7 @@ get_args() {
"--catimg_size") catimg_size="$2" ;;
"--crop_mode") crop_mode="$2" ;;
"--crop_offset") crop_offset="$2" ;;
"--true-color") true_color="--true-color" ;;
"--xoffset") xoffset="$2" ;;
"--yoffset") yoffset="$2" ;;
"--background_color" | "--bg_color") background_color="$2" ;;

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3.
.TH NEOFETCH "1" "April 2021" "Neofetch 7.1.0" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1.
.TH NEOFETCH "1" "October 2023" "Neofetch 7.1.0" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
@ -395,6 +395,9 @@ closer to the left side.
.TP
\fB\-\-clean\fR
Delete cached files and thumbnails.
.TP
\fB\-\-true\-color\fR
Use termpix \fB\-\-true\-color\fR flag.
.SS "OTHER:"
.TP
\fB\-\-config\fR \fI\,/path/to/config\/\fP