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
59af9f0a
Unverified
Commit
59af9f0a
authored
Feb 19, 2020
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:dylanaraps/neofetch
parents
3d803834
d29abf1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
neofetch
neofetch
+12
-12
No files found.
neofetch
View file @
59af9f0a
...
@@ -1267,6 +1267,7 @@ get_model() {
...
@@ -1267,6 +1267,7 @@ get_model() {
FreeMiNT)
FreeMiNT)
model=$(sysctl -n hw.model)
model=$(sysctl -n hw.model)
model=${model/ (_MCH *)}
;;
;;
esac
esac
...
@@ -1810,11 +1811,11 @@ get_wm() {
...
@@ -1810,11 +1811,11 @@ get_wm() {
freemint_wm=(/proc/*)
freemint_wm=(/proc/*)
case ${freemint_wm[*]} in
case ${freemint_wm[*]} in
*xaaes*) wm=XaAES ;;
*xaaes*
| *xaloader*
) wm=XaAES ;;
*myaes*) wm=MyAES ;;
*myaes*)
wm=MyAES ;;
*naes*) wm=N.AES ;;
*naes*)
wm=N.AES ;;
geneva) wm=Geneva ;;
geneva)
wm=Geneva ;;
*) wm="Atari AES" ;;
*)
wm="Atari AES" ;;
esac
esac
;;
;;
esac
esac
...
@@ -2571,7 +2572,7 @@ get_memory() {
...
@@ -2571,7 +2572,7 @@ get_memory() {
"FreeMiNT")
"FreeMiNT")
mem="$(awk -F ':|kB' '/MemTotal:|MemFree:/ {printf $2, " "}' /kern/meminfo)"
mem="$(awk -F ':|kB' '/MemTotal:|MemFree:/ {printf $2, " "}' /kern/meminfo)"
mem_free="${mem/* }"
mem_free="${mem/* }"
mem_total="${mem/
*
}"
mem_total="${mem/
$mem_free
}"
mem_used="$((mem_total - mem_free))"
mem_used="$((mem_total - mem_free))"
mem_total="$((mem_total / 1024))"
mem_total="$((mem_total / 1024))"
mem_used="$((mem_used / 1024))"
mem_used="$((mem_used / 1024))"
...
@@ -2838,6 +2839,10 @@ get_resolution() {
...
@@ -2838,6 +2839,10 @@ get_resolution() {
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
;;
;;
"FreeMiNT")
# Need to block X11 queries
;;
*)
*)
if type -p xrandr >/dev/null && [[ $DISPLAY && -z $WAYLAND_DISPLAY ]]; then
if type -p xrandr >/dev/null && [[ $DISPLAY && -z $WAYLAND_DISPLAY ]]; then
case $refresh_rate in
case $refresh_rate in
...
@@ -3722,10 +3727,6 @@ get_cols() {
...
@@ -3722,10 +3727,6 @@ get_cols() {
unset -v blocks blocks2 cols
unset -v blocks blocks2 cols
# TosWin2 on FreeMiNT is terrible at this,
# so we'll reset colors arbitrarily.
[[ "$term" == "TosWin2" ]] && printf '\e[30;47m'
# Tell info() that we printed manually.
# Tell info() that we printed manually.
prin=1
prin=1
}
}
...
@@ -6776,8 +6777,7 @@ EOF
...
@@ -6776,8 +6777,7 @@ EOF
;;
;;
"FreeMiNT"*)
"FreeMiNT"*)
# Don't explicitly set colors since
set_colors 7
# TosWin2 doesn't reset well.
read -rd '' ascii_data <<'EOF'
read -rd '' ascii_data <<'EOF'
${c1} ##
${c1} ##
## #########
## #########
...
...
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