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
c8b7ed6d
Commit
c8b7ed6d
authored
Apr 26, 2017
by
dylan araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/dylanaraps/neofetch
parents
b0cd5f07
781a0fff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
2 deletions
+39
-2
CHANGELOG.md
CHANGELOG.md
+19
-0
config
config/config
+10
-0
neofetch
neofetch
+7
-2
neofetch.1
neofetch.1
+3
-0
No files found.
CHANGELOG.md
View file @
c8b7ed6d
## Contributors
## Contributors
-
**[@MatthewCox](https://github.com/MatthewCox)**
## Images
-
[
w3m
]
Added
`--loop`
flag which makes Neofetch draw the image once per second.
-
This is a workaround to the images disappearing on resize and workspace switch.
-
Use Ctrl+C to exit.
## Info
**Terminal Emulator**
-
[
Termite
]
Fix font mismatch.
**[@MatthewCox](https://github.com/MatthewCox)**
**GPU**
-
[
Linux
]
Fixed GPU sort.
config/config
View file @
c8b7ed6d
...
@@ -540,6 +540,7 @@ disk_display="off"
...
@@ -540,6 +540,7 @@ disk_display="off"
# Backend Settings
# Backend Settings
# Image backend.
# Image backend.
#
#
# Default: 'ascii'
# Default: 'ascii'
...
@@ -602,6 +603,15 @@ ascii_bold="on"
...
@@ -602,6 +603,15 @@ ascii_bold="on"
# Image Options
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop
=
"off"
# Thumbnail directory
# Thumbnail directory
#
#
# Default: '~/.cache/thumbnails/neofetch'
# Default: '~/.cache/thumbnails/neofetch'
...
...
neofetch
View file @
c8b7ed6d
...
@@ -1071,7 +1071,7 @@ get_gpu() {
...
@@ -1071,7 +1071,7 @@ get_gpu() {
"Linux"
)
"Linux"
)
# Read GPUs into array.
# Read GPUs into array.
IFS
=
$'
\n
'
IFS
=
$'
\n
'
gpus
=(
$(
lspci
-mm
|
awk
-F
'\\"|\\" \\"'
'
!a[$0]++ && /"Display|"3D|"VGA/ {print $3 " " $4}'
)
)
gpus
=(
$(
lspci
-mm
|
awk
-F
'\\"|\\" \\"'
'
/"Display|"3D|"VGA/ {print $3 " " $4}'
|
sort
-u
)
)
IFS
=
"
$old_ifs
"
IFS
=
"
$old_ifs
"
# Number the GPUs if more than one exists.
# Number the GPUs if more than one exists.
...
@@ -1756,7 +1756,7 @@ get_term_font() {
...
@@ -1756,7 +1756,7 @@ get_term_font() {
"termite")
"termite")
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && termite_config="${XDG_CONFIG_HOME}/termite/config"
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && termite_config="${XDG_CONFIG_HOME}/termite/config"
term_font="$(awk -F '
=
' '
/
\[
options
\]
/
{
opt
=
1
}
/^font/
{
if
(
opt
==
1
)
a
=
$2
;
opt
=
0
}
END
{
print a
}
' "/etc/xdg/termite/config" "$termite_config")"
term_font="$(awk -F '
=
' '
/
\[
options
\]
/
{
opt
=
1
}
/^
\s
*
font/
{
if
(
opt
==
1
)
a
=
$2
;
opt
=
0
}
END
{
print a
}
' "/etc/xdg/termite/config" "$termite_config")"
;;
;;
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
...
@@ -3967,6 +3967,7 @@ ASCII:
...
@@ -3967,6 +3967,7 @@ ASCII:
Possible values: bar, infobar, barinfo, off
Possible values: bar, infobar, barinfo, off
IMAGE:
IMAGE:
--loop Redraw the image constantly until Ctrl+C is used. This fixes issues in some terminals emulators when using image mode.
--size 00px | --size 00% How to size the image.
--size 00px | --size 00% How to size the image.
Possible values: auto, 00px, 00%, none
Possible values: auto, 00px, 00%, none
--crop_mode mode Which crop mode to use
--crop_mode mode Which crop mode to use
...
@@ -4151,6 +4152,7 @@ get_args() {
...
@@ -4151,6 +4152,7 @@ get_args() {
;;
;;
# Image options
# Image options
"--loop"
)
image_loop
=
"on"
;;
"--image_size"
|
"--size"
)
image_size
=
"
$2
"
;;
"--image_size"
|
"--size"
)
image_size
=
"
$2
"
;;
"--crop_mode"
)
crop_mode
=
"
$2
"
;;
"--crop_mode"
)
crop_mode
=
"
$2
"
;;
"--crop_offset"
)
crop_offset
=
"
$2
"
;;
"--crop_offset"
)
crop_offset
=
"
$2
"
;;
...
@@ -4255,6 +4257,9 @@ main() {
...
@@ -4255,6 +4257,9 @@ main() {
# Show error messages.
# Show error messages.
[[
"
$verbose
"
==
"on"
]]
&&
printf
"%b"
"
$err
"
>
&2
[[
"
$verbose
"
==
"on"
]]
&&
printf
"%b"
"
$err
"
>
&2
# If `--loop` was used, constantly redraw the image.
while
[[
"
$image_loop
"
==
"on"
&&
"
$image_backend
"
==
"w3m"
]]
;
do
display_image
;
sleep
1s
;
done
return
0
return
0
}
}
...
...
neofetch.1
View file @
c8b7ed6d
...
@@ -247,6 +247,9 @@ Hide the info text and only show the ascii logo.
...
@@ -247,6 +247,9 @@ Hide the info text and only show the ascii logo.
Possible values: bar, infobar, barinfo, off
Possible values: bar, infobar, barinfo, off
.SS "IMAGE:"
.SS "IMAGE:"
.TP
.TP
\fB\-\-loop\fR
Redraw the image constantly until Ctrl+C is used. This fixes issues in some terminals emulators when using image mode.
.TP
\fB\-\-size\fR 00px | \fB\-\-size\fR 00%
\fB\-\-size\fR 00px | \fB\-\-size\fR 00%
How to size the image.
How to size the image.
Possible values: auto, 00px, 00%, none
Possible values: auto, 00px, 00%, none
...
...
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