Compare commits

...

112 Commits

Author SHA1 Message Date
Dylan Araps
b4921092c8 version: bump 2018-04-06 08:33:12 +10:00
Dylan Araps
519af6c5c5 docs: CHANGELOG 2018-04-06 08:15:30 +10:00
Dylan Araps
e1ad97b837 Merge pull request #941 from khoacao96/patch-1
Fix a typo
2018-04-06 07:13:04 +10:00
Khoa D. Cao
2e83e6f775 Fix a typo 2018-04-05 19:06:38 +07:00
Dylan Araps
9f48d18332 cpu: Fix #939 2018-04-05 07:54:37 +10:00
Dylan Araps
f82a87dadb Merge branch 'master' of github.com:dylanaraps/neofetch 2018-04-02 16:22:04 +10:00
Dylan Araps
286310acc9 misc: cleanup 2018-04-02 16:21:50 +10:00
Dylan Araps
ece67e3691 Merge pull request #936 from aidanharris/xterm-font
Correctly handle XTerm.vt100.faceName
2018-04-02 10:38:41 +10:00
Aidan Harris
641202155c Remove trim 2018-04-02 01:22:03 +01:00
Dylan Araps
adbe230f82 gpu: More junk 2018-04-02 10:12:35 +10:00
Dylan Araps
564fdaeabf cpu: More junk 2018-04-02 10:11:11 +10:00
Dylan Araps
155c1398b9 cpu: More junk 2018-04-02 10:09:45 +10:00
Aidan Harris
380e793c62 Correctly handle XTerm.vt100.faceName 2018-04-02 01:07:43 +01:00
Dylan Araps
3b55335089 Merge branch 'master' of github.com:dylanaraps/neofetch 2018-04-02 10:05:23 +10:00
Dylan Araps
790401c6ea OS: Fix ChromeOS detection. 2018-04-02 10:05:12 +10:00
Dylan Araps
dedf90970d Merge pull request #935 from aidanharris/fix-kitty-regex
Fix kitty font_size regex
2018-04-02 09:33:47 +10:00
Dylan Araps
648b5fb75e cpu: Fixed incorrect name. Closes #926 2018-04-02 07:51:27 +10:00
Dylan Araps
3734821eb5 general: Added option to manually specify music player. Closes #934 2018-04-02 07:42:22 +10:00
Dylan Araps
a1044d728f general: Swap echo to printf 2018-04-01 14:30:06 +10:00
Aidan Harris
7fbab49ec3 Fix kitty font_size regex 2018-03-27 21:28:45 +01:00
Herdiansyah
81db772a5d Merge pull request #929 from konimex/win10fix
OS: Separate Windows 10 and ChromeOS into its own if clause
2018-03-24 15:48:40 +07:00
Muhammad Herdiansyah
741493714b docs: CHANGELOG 2018-03-24 15:33:08 +07:00
Muhammad Herdiansyah
39cd3ede32 Distro: Separate ChromeOS detection 2018-03-24 15:30:00 +07:00
Muhammad Herdiansyah
deae19ac50 docs: CHANGELOG 2018-03-21 06:45:37 +07:00
Robert
97c02742c1 Distro: Add support for openSUSE Tumbleweed
Closes #930
2018-03-21 06:38:33 +07:00
Muhammad Herdiansyah
e4abb3a984 docs: CHANGELOG 2018-03-20 07:41:05 +07:00
Herdiansyah
79dcb5cfa8 Merge pull request #924 from MitchWeaver/master
fix pacman name conflict bug
2018-03-20 07:34:21 +07:00
Muhammad Herdiansyah
3b34a78c4c OS: Separate Windows 10 into its own if clause 2018-03-20 07:10:37 +07:00
Mitch Weaver
e39cbbff32 fix pacman name conflict bug
change to type paclog-pkglist

typo
2018-03-08 03:30:41 +01:00
Dylan Araps
7d231b88fa misc: cleanup 2018-03-08 11:11:42 +11:00
Dylan Araps
24671c6d09 Merge pull request #919 from MindTooth/add_kitty
Added font support for kitty terminal
2018-03-08 11:10:38 +11:00
Dylan Araps
02fff35f35 Merge pull request #923 from MitchWeaver/master
add new DragonFly BSD logo, move old logo to dragonfly_old, add drago…
2018-03-05 12:29:29 +11:00
Mitch Weaver
9694f80f28 add new DragonFly BSD logo, move old logo to dragonfly_old, add dragonfly_small 2018-03-05 01:12:44 +01:00
Dylan Araps
5e2a67053e Merge pull request #920 from MindTooth/fix_indent
Fix minor indent bug
2018-02-28 07:55:23 +11:00
Dylan Araps
4f04acbb00 docs: CHANGELOG 2018-02-28 07:55:07 +11:00
Dylan Araps
169de34ee6 image: [catimg] Don't force res. Closes #921 2018-02-28 07:54:35 +11:00
Birger J. Nordølum
0cbdd6963e Added font support for kitty terminal 2018-02-27 14:15:00 +01:00
Birger J. Nordølum
0a9c58655a Fix minor indent bug 2018-02-27 13:57:03 +01:00
Dylan Araps
1ef776519e docs: CHANGELOG 2018-02-21 09:55:58 +11:00
Dylan Araps
8fcc6f3728 Merge pull request #917 from mstraube/hyperbola
OS: Add support for Hyperbola GNU/Linux-libre
2018-02-21 09:54:41 +11:00
Michael Straube
4f9fe67a43 OS: Add support for Hyperbola GNU/Linux-libre 2018-02-20 16:27:54 +01:00
Dylan Araps
8a17129ad2 docs: CHANGELOG 2018-02-12 13:07:49 +11:00
Dylan Araps
6d549cd459 wm: Added support for non-EWMH WMs 2018-02-12 13:07:21 +11:00
Dylan Araps
d32fdce506 docs: CHANGELOG 2018-02-12 08:43:43 +11:00
Dylan Araps
4dd9cc15f0 misc: prompt 2018-02-12 08:43:22 +11:00
Dylan Araps
c9146d9eee OS: Added support for postmarketos 2018-02-12 08:41:12 +11:00
Dylan Araps
91d2edf7c8 docs: CHANGELOG 2018-02-11 08:52:37 +11:00
Dylan Araps
56821a30e4 term_font: Add more paths for Alacritty. Closes #911 2018-02-11 08:51:58 +11:00
Dylan Araps
023e3ee891 docs: Changelog 2018-02-11 08:45:55 +11:00
Dylan Araps
97660df3b8 OS: Added support for magpieOS. Closes #912, #908 2018-02-11 08:44:22 +11:00
Dylan Araps
899a8d7ce5 docs: CHANGELOG 2018-02-06 12:30:07 +11:00
Dylan Araps
877a975a32 OS: Added support for ArchMerge. Closes #907 2018-02-06 12:29:02 +11:00
Dylan Araps
a2f44749af misc: cleanup 2018-02-03 09:10:57 +11:00
Dylan Araps
b6b1dfc2fb Merge pull request #904 from JadeMatrix/master
macOS fixes & improvements
2018-02-03 09:07:10 +11:00
Dylan Araps
2ba3fc014e misc: cleanup 2018-02-03 09:05:41 +11:00
Dylan Araps
269255daab Merge pull request #901 from robertwolter/master
Support for Anarchy Linux, Calculate Linux and NuTyX
2018-02-03 09:03:24 +11:00
Robert
175adb7560 Add files via upload 2018-02-02 17:00:44 +01:00
Robert
09a3b135a0 Add files via upload 2018-02-02 16:51:53 +01:00
Robert
8f25d0190b Add files via upload 2018-02-02 16:49:32 +01:00
Joseph Durel
279a1e58bc Full if → single line for macOS Light theme 2018-02-01 23:46:50 -05:00
Joseph Durel
eb062afe95 Align heredoc AppleScript strings to osascript calls 2018-02-01 23:43:17 -05:00
Joseph Durel
d8addb3e3b Change echoprintf for consistency 2018-02-01 23:28:02 -05:00
Joseph Durel
9e4434e5e5 Add missing double-quotes in uppercase() fix 2018-02-01 22:26:18 -05:00
Joseph Durel
80d7cef7a0 Add macOS Light/Dark theme detection 2018-02-01 22:01:35 -05:00
Joseph Durel
3344bbf8c7 Fix uppercase() outputting nothing under bash < v4 2018-02-01 22:01:22 -05:00
Joseph Durel
be893d48c3 Detect iTunes/Spotify successfully when the other is not running 2018-02-01 21:58:06 -05:00
Joseph Durel
b76513d7b6 Change osascript calls to use heredocs so they don't extend beyond 100 chars 2018-02-01 20:06:13 -05:00
Dylan Araps
bac9dcf3f4 song: Use grep instead of awk. 2018-02-02 09:46:18 +11:00
Dylan Araps
7a543e8fa6 general: Revert problamatic lines to over 100 chars long. 2018-02-02 09:24:48 +11:00
Dylan Araps
2cecb142e1 misc: cleanup 2018-02-01 12:14:03 +11:00
Robert
aa074c3f4b Add files via upload 2018-01-31 15:17:12 +01:00
Robert
40c079eb19 Create nutyx 2018-01-31 15:05:07 +01:00
Robert
9b7066ad5e Create calculate 2018-01-31 15:04:10 +01:00
Robert
2071fe608c anarchy 2018-01-31 15:03:18 +01:00
Dylan Araps
7000e63807 Merge pull request #899 from matoro/master
battery: fix battery detection on Windows
2018-01-30 11:44:18 +11:00
matoro
613ab7439a fix unicode quotes 2018-01-29 19:16:08 -05:00
matoro
d4177592c1 simplify check as per review 2018-01-29 17:52:57 -05:00
matoro
33fce46525 fix battery detection on Windows 2018-01-29 10:30:53 -05:00
Herdiansyah
59c0d73625 Update CHANGELOG.md 2018-01-23 07:25:51 +07:00
Herdiansyah
aeec963430 Merge pull request #896 from rage311/master
Fixes for OpenBSD CPU temperature and memory used values
2018-01-23 07:21:03 +07:00
rage311
64c80b7fc1 Broke up line that was over 100 chars long 2018-01-22 12:13:16 -07:00
rage311
c9f910f526 Changed OpenBSD temperature extraction from grep/cut to awk 2018-01-17 12:52:24 -07:00
rage311
840a653458 Changed OpenBSD cpu temp logic to grep specifically for lm0 or cpu0 2018-01-16 13:33:58 -07:00
rage311
9984c51882 Fixed indentation inconsistency 2018-01-16 12:48:33 -07:00
rage311
96676ca4d5 Fixed OpenBSD mem_used value 2018-01-16 12:46:25 -07:00
rage311
c81e01405e Changed OpenBSD CPU temp retrieval to take into account machines that only expose cpu0.temp0 instead of lm0.temp0 2018-01-16 12:36:29 -07:00
Dylan Araps
5889f1fe8b Merge pull request #894 from dawidd6/openwrt_release
distro: fix OpenWrt/LEDE detection
2018-01-14 10:12:57 +11:00
Dawid Dziurla
1506d3840f indent if conditions + remove some trailing spaces 2018-01-13 16:53:20 +01:00
Dawid Dziurla
8e21a69ea0 distro: fix OpenWrt/LEDE detection 2018-01-12 21:18:13 +01:00
Dylan Araps
fb33604a22 Merge branch 'master' of github.com:dylanaraps/neofetch 2018-01-09 11:25:48 +11:00
Dylan Araps
dac53545f7 merge master 2018-01-09 11:25:24 +11:00
Herdiansyah
34a07a33b2 Merge pull request #891 from szfcbr/irix32
OS: detect 32-bit IRIX
2018-01-05 13:31:37 +07:00
szfcbr
1000547569 OS: detect 32-bit IRIX 2018-01-05 07:07:59 +01:00
szfcbr
d296741ac2 Revert "OS: detect 32-bit IRIX"
This reverts commit a9ed7835d5.
2018-01-05 07:05:47 +01:00
Herdiansyah
48c970d6e1 Merge pull request #892 from szfcbr/tcsh
Shells: add support for tcsh
2018-01-05 12:54:52 +07:00
szfcbr
6c3b0136de Shells: add support for tcsh 2018-01-05 06:32:14 +01:00
szfcbr
a9ed7835d5 OS: detect 32-bit IRIX 2018-01-05 05:44:44 +01:00
Dylan Araps
0c8b0974fe docs: README 2018-01-04 18:17:42 +11:00
Dylan Araps
d2f0255327 Merge pull request #889 from ArmstrongJ/freemint
Support for FreeMiNT on Atari computers and clones/VMs
2018-01-04 18:16:28 +11:00
Jeffrey Armstrong
0f4fcc46df Minor comment updates in FreeMiNT sections. 2018-01-03 20:16:08 -05:00
Jeffrey Armstrong
82875114fe Additional FreeMiNT simplifications. Added careful fix for CPU clocking check on FreeMiNT. 2018-01-02 20:33:54 -05:00
Dylan Araps
dc936b5b23 docs: README 2018-01-03 11:52:48 +11:00
Dylan Araps
7798974bc0 docs: README 2018-01-03 11:51:33 +11:00
Dylan Araps
a0bd43f1f8 docs: README 2018-01-03 11:37:03 +11:00
Jeffrey Armstrong
69c219e351 Formatting fixes and awk improvements for FreeMiNT. Changed method for finding DE and WM processes in FreeMiNT. 2018-01-01 12:20:07 -05:00
Jeffrey Armstrong
21f1faec62 Support added for FreeMiNT on Atari computers and clones/VMs 2017-12-31 14:50:28 -05:00
Dylan Araps
dc929a6594 memory: Fix crash on OpenBSD 2017-12-26 07:38:11 +11:00
Dylan Araps
21cc7bab93 general: Fix prompt on openBSD 2017-12-26 07:20:50 +11:00
Dylan Araps
beee0203d0 general: Fix prompt on openBSD 2017-12-25 19:27:57 +11:00
Dylan Araps
5ffd5149b4 memory [openbsd]: Fix crash 2017-12-25 19:25:54 +11:00
Dylan Araps
a53cbdbc14 general: Fix prompt on openBSD 2017-12-25 11:04:50 +11:00
Dylan Araps
8c277ac74a general: Swap sequences from \033 to \e 2017-12-25 08:39:47 +11:00
17 changed files with 677 additions and 131 deletions

View File

@@ -6,51 +6,86 @@
- [**@dawidd6**](https://github.com/dawidd6)
- [**@MitchWeaver**](https://github.com/MitchWeaver)
- [**@StarryTony**](https://github.com/StarryTony)
- [**@rage311**](https://github.com/rage311)
- [**@matoro**](https://github.com/matoro)
- [**@szfcbr**](https://github.com/szfcbr)
- [**@ArmstrongJ**](https://github.com/ArmstrongJ)
- [**@robertwolter**](https://github.com/robertwolter)
- [**@JadeMatrix**](https://github.com/JadeMatrix)
- [**@MindTooth**](https://github.com/MindTooth)
- [**@aidanharris**](https://github.com/aidanharris)
- [**@khoacao96**](https://github.com/khoacao96)
## OS
- Fixed detection bug with Gentoo.
- Fixed detection bug with TrueOS. [**@dawidd6**](https://github.com/dawidd6)
- Added support for ArchMerge.
- Added support for MagpieOS.
- Added support for PostMarketOS.
- Added support for Hyperbola GNU/Linux-libre [**@mstraube**](https://github.com/mstraube)
- Added support for macOS High Sierra. [**@yslgirl**](https://github.com/yslgirl)
- Added support for Container Linux by CoreOS. [**@chrisweeksnz**](https://github.com/chrisweeksnz)
- Added support for 2017 iOS devices. [**@iandrewt**](https://github.com/iandrewt)
- Added support for LEDE. [**@dawidd6**](https://github.com/dawidd6)
- Added support for Pop!\_OS. [**@jliles**](https://github.com/jliles)
- Added support for Lunar Linux.
- Added support for 32-bit IRIX. [**@szfcbr**](https://github.com/szfcbr)
- Added support for FreeMINT. [**@ArmstrongJ**](https://github.com/ArmstrongJ)
- Added support for Anarchy Linux. [**@robertwolter**](https://github.com/robertwolter)
- Added support for Calculate Linux. [**@robertwolter**](https://github.com/robertwolter)
- Added support for NuTyX. [**@robertwolter**](https://github.com/robertwolter)
- Added suport for openSUSE Tumbleweed. [**@robertwolter**](http://github.com/robertwolter)
- Fixed detection bug with Gentoo.
- Fixed detection bug with OpenWRT. [**@dawidd6**](https://github.com/dawidd6)
- Fixed detection bug with LEDE. [**@dawidd6**](https://github.com/dawidd6)
- Fixed detection bug with TrueOS. [**@dawidd6**](https://github.com/dawidd6)
- Fixed detection bug with Windows Subsystem for Linux and Crouton when an OS without lsb_release is installed.
- Fixed ChromeOS detection.
## General
- Added more info to verbose mode for debugging.
- Fixed bug in prompt location calculation.
- Fixed prompt bug in OpenBSD.
- Fixed broken AppleScript blocks. [**@JadeMatrix**](https://github.com/JadeMatrix)
- Fixed function not working in bash 3. [**@JadeMatrix**](https://github.com/JadeMatrix)
- Swapped sequences from `\033` to `\e`.
- Fixed Pacman name conflict with the game. [**@MitchWeaver**](https://github.com/MitchWeaver)
- Removed the last `echo` in the script.
- Fixed typo. [**@khoacao96**](https://github.com/khoacao96)
## Ascii
- Added color updates for Kubuntu logo. **Maulik Mistry**
- Added new DragonflyBSD log. [**@MitchWeaver**](https://github.com/MitchWeaver)
## Images
- [MacOS/iTerm2] Fixed thumbnail not appearing. [**@StarryTony**](https://github.com/StarryTony)
- Fixed bug with getting wallpaper from feh.
- Fixed bug with getting wallpaper from feh.
- Added `pixterm` backend.
- Don't force resolution in `catimg`.
## Info
**Desktop Environment**
- Added GNOME version.
- Added support for TDE.
**Window Manager**
- Added support for most (*if not all*) current Wayland compositors/window manager's.
- Added support for some non-EWMH window managers.
- [macOS] Fixed `chunkwm` being detected as `Kwm`. [**@iandrewt**](https://github.com/iandrewt)
**Window Manager Theme**
- Fixed `sawfish` detection.
- [macOS] Now detects Light/Dark theme. [**@JadeMatrix**](https://github.com/JadeMatrix)
**Install Date**
@@ -64,15 +99,22 @@
- [linux] Detect the correct temperature file to use.
- [windows] Removed `$temp` usage as it's an envar.
- [OpenBSD] Fixed CPU temperature that fails to appear in some systems. [**@rage311**](https://github.com/rage311)
**GPU**
- [linux] Added driver version to NVIDIA output.
- [linux] Added driver version to Intel output.
- [macOS] Added NVIDIA support. [**@iandrewt**](https://github.com/iandrewt)
**Memory**
- [OpenBSD] Fixed memory usage values. [**@rage311**](https://github.com/rage311)
**Package Manager**
- Added detection for Sabotage Linux's `butch` [**@MitchWeaver**](https://github.com/MitchWeaver)
- Changed `pacman` detection to fix issues in other distros. [**@MitchWeaver**](https://github.com/MitchWeaver)
**Resolution**
@@ -80,7 +122,9 @@
**Song**
- Added option to manually specify the player to use.
- Added support for Elisa. [**@mstraube**](https://github.com/mstraube)
- macOS detection is now more reliable. [**@JadeMatrix**](https://github.com/JadeMatrix)
**Model**
@@ -89,3 +133,18 @@
**Disk**
- Update Haiku's detection. [**@dawidd6**](https://github.com/dawidd6)
**Battery**
- Fixed Windows detection. [**@matoro**](https://github.com/matoro)
**Shell**
- Added support for `tcsh`. [**@szfcbr**](https://github.com/szfcbr)
**Terminal Font**
- Added more paths for Alacritty.
- Added font support for Kitty. [**@MindTooth**](https://github.com/MindTooth)
- Fixed Kitty `font_size` regex. [**@aidanharris**](https://github.com/aidanharris)
- Added support for `XTerm.vt11.facename`. [**@aidanharris**](https://github.com/aidanharris)

View File

@@ -1,22 +1,28 @@
# Neofetch
<a href="https://repology.org/metapackage/neofetch">
<img src="https://repology.org/badge/vertical-allrepos/neofetch.svg" alt="Packaging status" align="right" height="400px">
</a>
[![Gitter](https://badges.gitter.im/dylanaraps/fetch.svg)](https://gitter.im/dylanaraps/fetch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Build Status](https://travis-ci.org/dylanaraps/neofetch.svg?branch=master)](https://travis-ci.org/dylanaraps/neofetch)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md)
[![Latest release](https://img.shields.io/github/release/dylanaraps/neofetch.svg)](https://github.com/dylanaraps/neofetch/releases)
[![Donate](https://img.shields.io/badge/donate-patreon-yellow.svg)](https://www.patreon.com/dyla)
Neofetch is a CLI system information tool written in BASH. Neofetch displays information about your system next to an image, your OS logo, or any ASCII file of your choice. The main purpose of Neofetch is to be used in screenshots to show other users what OS/Distro you're running, what Theme/Icons you're using etc.
Neofetch is highly customizable through the use of command line flags or the user config file. There are over 50 config options to mess around with and there's the `print_info()` function and friends which let you add your own custom info.
Neofetch can be used on any OS that has BASH 3.2+, it's just a matter of adding support. If your OS/Distro isn't in the list below, feel free to open an issue on the repo and I'll gladly add support. Neofetch currently supports `Linux`, `MacOS`, `iOS`, `BSD`, `Solaris`, `Android`, `Haiku`, `GNU Hurd`, `MINIX`, `AIX`, `IRIX`, and `Windows (Cygwin/MSYS2/MinGW/Windows 10 Linux subsystem)`.
Neofetch can be used on any OS that has BASH 3.2+, it's just a matter of adding support. If your OS/Distro isn't in the list below, feel free to open an issue on the repo and I'll gladly add support. Neofetch currently supports `Linux`, `MacOS`, `iOS`, `BSD`, `Solaris`, `Android`, `Haiku`, `GNU Hurd`, `MINIX`, `AIX`, `IRIX`, `FreeMint`, and `Windows (Cygwin/MSYS2/MinGW/Windows 10 Linux subsystem)`.
For more information:
**https://github.com/dylanaraps/neofetch/wiki**
![neofetch screenshot](https://u.teknik.io/KlBsD.png)
<img src="https://i.imgur.com/lUrkQBN.png" alt="neofetch" align="right" width="434px">
<img src="https://i.imgur.com/GFmC5Ad.png" alt="neofetch" width="434px">
## Dependencies
@@ -89,3 +95,6 @@ Donations will allow me to spend more time working on `neofetch`.
If you like `neofetch` and want to give back in some way you can donate here:
**https://patreon.com/dyla**
<sup><sub>hey rtexel</sub></sup>

28
ascii/distro/anarchy Normal file
View File

@@ -0,0 +1,28 @@
${c2}..${c1}
${c2}..${c1}
${c2}:..${c1}
${c2}:+++.${c1}
.:::++${c2}++++${c1}+::.
.:+######${c2}++++${c1}######+:.
.+#########${c2}+++++${c1}##########:.
.+##########${c2}+++++++${c1}##${c2}+${c1}#########+.
+###########${c2}+++++++++${c1}############:
+##########${c2}++++++${c1}#${c2}++++${c1}#${c2}+${c1}###########+
+###########${c2}+++++${c1}###${c2}++++${c1}#${c2}+${c1}###########+
:##########${c2}+${c1}#${c2}++++${c1}####${c2}++++${c1}#${c2}+${c1}############:
###########${c2}+++++${c1}#####${c2}+++++${c1}#${c2}+${c1}###${c2}++${c1}######+
.##########${c2}++++++${c1}#####${c2}++++++++++++${c1}#######.
.##########${c2}+++++++++++++++++++${c1}###########.
#####${c2}++++++++++++++${c1}###${c2}++++++++${c1}#########+
:###${c2}++++++++++${c1}#########${c2}+++++++${c1}#########:
+######${c2}+++++${c1}##########${c2}++++++++${c1}#######+
+####${c2}+++++${c1}###########${c2}+++++++++${c1}#####+
:##${c2}++++++${c1}############${c2}++++++++++${c1}##:
.${c2}++++++${c1}#############${c2}++++++++++${c1}+.
:${c2}++++${c1}###############${c2}+++++++${c1}::
.${c2}++. .:+${c1}##############${c2}+++++++${c1}..
${c2}.:.${c1} ..::++++++::..:${c2}++++${c1}+.
${c2}.${c1} ${c2}.:+++${c1}.
${c2}.:${c1}:
${c2}..${c1}
${c2}..${c1}

20
ascii/distro/archmerge Normal file
View File

@@ -0,0 +1,20 @@
${c1} y:
sMN-
+MMMm`
/MMMMMd`
:NMMMMMMy
-NMMMMMMMMs
.NMMMMMMMMMM+
.mMMMMMMMMMMMM+
oNMMMMMMMMMMMMM+
`+:-+NMMMMMMMMMMMM+
.sNMNhNMMMMMMMMMMMM/
`hho/sNMMMMMMMMMMMMMMM/
`.`omMMmMMMMMMMMMMMMMMMM+
.mMNdshMMMMd+::oNMMMMMMMMMo
.mMMMMMMMMM+ `yMMMMMMMMMs
.NMMMMMMMMM/ yMMMMMMMMMy
-NMMMMMMMMMh `mNMMMMMMMMd`
/NMMMNds+:.` `-/oymMMMm.
+Mmy/. `:smN:
/+. -o.

20
ascii/distro/calculate Normal file
View File

@@ -0,0 +1,20 @@
${c1} ......
,,+++++++,.
.,,,....,,,${c2}+**+,,.${c1}
............,${c2}++++,,,${c1}
...............
......,,,........
.....+*#####+,,,*+.
.....,*###############,..,,,,,,..
......,*#################*..,,,,,..,,,..
.,,....*####################+***+,,,,...,++,
.,,..,..*#####################*,
,+,.+*..*#######################.
,+,,+*+..,########################*
.,++++++. ..+##**###################+
..... ..+##***#################*.
.,.*#*****##############*.
..,,*********#####****+.
${c2}.,++*****+++${c1}*****************${c2}+++++,.${c1}
${c2},++++++**+++++${c1}***********${c2}+++++++++,${c1}
${c2}.,,,,++++,.. .,,,,,.....,+++,.,,${c1}

View File

@@ -1,18 +1,15 @@
${c1} |
.-.
${c3} ()${c1}I${c3}()
${c1} "==.__:-:__.=="
"==.__/~|~\__.=="
"==._( Y )_.=="
${c2}.-'~~""~=--...,__${c1}\/|\/${c2}__,...--=~""~~'-.
( ..=${c1}\\=${c1}/${c2}=.. )
`'-. ,.-"`;${c1}/=\\${c2};"-.,_ .-'`
`~"-=-~` .-~` ${c1}|=|${c2} `~-. `~-=-"~`
.-~` /${c1}|=|${c2}\ `~-.
.~` / ${c1}|=|${c2} \ `~.
.-~` .' ${c1}|=|${c2} `. `~-.
(` _,.-="` ${c1} |=|${c2} `"=-.,_ `)
`~"~"` ${c1} |=|${c2} `"~"~`
${c1} /=\\
\\=/
^
${c2},--, ${c1}| ${c2},--,
${c2}| `-, ${c1},^, ${c2},-' |
${c2} `, `-, ${c3}(/ \) ${c2},-' ,'
${c2} `-, `-,${c1}/ \${c2},-' ,-'
${c2} `------${c1}( )${c2}------'
${c2} ,----------${c1}( )${c2}----------,
${c2} | _,-${c1}( )${c2}-,_ |
${c2} `-,__,-' ${c1}\ /${c2} `-,__,-'
${c1} | |
| |
| |
| |
| |
| |
`|'

View File

@@ -0,0 +1,18 @@
${c1} |
.-.
${c3} ()${c1}I${c3}()
${c1} "==.__:-:__.=="
"==.__/~|~\__.=="
"==._( Y )_.=="
${c2}.-'~~""~=--...,__${c1}\/|\/${c2}__,...--=~""~~'-.
( ..=${c1}\\=${c1}/${c2}=.. )
`'-. ,.-"`;${c1}/=\\${c2};"-.,_ .-'`
`~"-=-~` .-~` ${c1}|=|${c2} `~-. `~-=-"~`
.-~` /${c1}|=|${c2}\ `~-.
.~` / ${c1}|=|${c2} \ `~.
.-~` .' ${c1}|=|${c2} `. `~-.
(` _,.-="` ${c1} |=|${c2} `"=-.,_ `)
`~"~"` ${c1} |=|${c2} `"~"~`
${c1} /=\\
\\=/
^

View File

@@ -0,0 +1,4 @@
${c2}(\${c3}"${c2}/)
${c2}(/${c1}|${c2}\)
${c1} |
|

15
ascii/distro/gem Normal file
View File

@@ -0,0 +1,15 @@
${c1} ##
## #########
#### ##
#### #### ##
#### #### ## ##
#### #### ## ##
#### #### ## ## ##
#### ######
###### ## ## ####
#### ################
#### ## ####
## #### ######
## ## #### ####
## ## ## ## ## ####
#### ## ## ##

16
ascii/distro/hyperbola Normal file
View File

@@ -0,0 +1,16 @@
${c1} WW
KX W
WO0W NX0O
NOO0NW WNXK0OOKW
W0OOOOOOOOOOOOKN
N0OOOOOOO0KXW
WNXXXNW
NXK00000KN
WNK0OOOOOOOOOO0W
NK0OOOOOOOOOOOOOO0W
X0OOOOOOO00KK00OOOOOK
X0OOOO0KNWW WX0OO0W
X0OO0XNW KOOW
N00KNW KOW
NKXN W0W
WW W

20
ascii/distro/magpieos Normal file
View File

@@ -0,0 +1,20 @@
${c1} ;00000 :000Ol
.x00kk00: O0kk00k;
l00: :00. o0k :O0k.
.k0k. x${c2}d$dddd${c1}k' .d00;
k0k. ${c2}.dddddl ${c1}o00,
o00. ${c2}':cc:. ${c1}d0O
.00l ,00.
l00. d0x
k0O .:k0o
O0k ;dO0000d.
k0O .O0O${c2}xxxxk${c1}00:
o00. k0O${c2}dddddd${c1}occ
'00l x0O${c2}dddddo${c3};..${c1}
x00. .x00${c2}kxxd${c3}:..${c1}
.O0x .:oxxx${c4}Okl.${c1}
.x0d ${c4},xx,${c1}
.:o. ${c4}.xd ckd${c1}
.. ${c4}dxl .xx;
:xxolldxd'
;oxdl.

23
ascii/distro/nutyx Normal file
View File

@@ -0,0 +1,23 @@
${c1} .
.
...
...
.... .........--.
..-++-----....--++++++---.
.-++++++-. .-++++++++++++-----..
.--... .++..-+++--.....-++++++++++--..
. .-+-. .**- .... ..-+----..
.+++. .*+. + -++-----.
.+++++- ++. .*+. .....-+++-----.
-+++-++. .+. .-+***++***++--++++. .
-+-. -- -. -*- ...... ..--.
.-. .+- . -+.
. .+- +.
-- --
-+----. .-
-++-.+. .
.++. --
+. ----.
. .+. ..
- .
.

17
ascii/distro/postmarketos Normal file
View File

@@ -0,0 +1,17 @@
${c1} ss
`hMMh`
.dMMMMd.
-NMMMMMMN-
/MMMMMMMMMN/
hMMMMMMMMMMMo
y+`mMMmdNMMMMMMy
`dMM-.-:- .mMMMMMMh`
.mMMMMMMd` `dMMMMMMm.
:NMMMMMMy yMMMMMMN:
/MMMMMMMo oMMMmdmN/
oMMMMMMM/ /MN.-/:-.
`yMMMMMMN- -:.NMMMMy`
`dMMMMMMM- -/////////////dMMMMMMd`
-mMMMMMMMMN+`sMMMMMMMMMMMMMMMMMMMMm-
:NMMMMMMMMMMM/ yMMMMMMMMMMMMMMMMMMMMN:
+MMMMMMMMMMMh.:mMMMMMMMMMMMMMMMMMMMMMMM+

13
ascii/distro/tumbleweed Normal file
View File

@@ -0,0 +1,13 @@
${c2} ......
.,cdxxxoc,. .:kKMMMNWMMMNk:.
cKMMN0OOOKWMMXo. ; ;0MWk:. .:OMMk.
;WMK;. .lKMMNM, :NMK, .OMW;
cMW; 'WMMMN ,XMK, oMM'
.MMc ..;l. xMN: KM0
'MM. 'NMO oMM
.MM, .kMMl xMN
KM0 .kMM0. .dl:,.. .WMd
.XM0. ,OMMK, OMMMK. .XMK
oWMO:. .;xNMMk, NNNMKl. .xWMx
:ONMMNXMMMKx; . ,xNMWKkxllox0NMWk,
..... .:dOOXXKOxl,

View File

@@ -348,6 +348,45 @@ disk_subtitle="mount"
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# Google Play
# Spotify
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# elisa
# exaile
# gnome-music
# guayadeque
# iTunes$
# juk
# lollypop
# mocp
# mopidy
# mpd
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# spotify
# tomahawk
# xmms2d
# yarock
music_player="auto"
# Print the Artist and Title on separate lines
#
# Default: 'off'
@@ -645,7 +684,7 @@ crop_offset="center"
# --size
image_size="auto"
# Ggap between image and text
# Gap between image and text
#
# Default: '3'
# Values: 'num', '-num'
@@ -729,4 +768,4 @@ stdout="off"
#
# NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility.
config_version="3.3.1-git"
config_version="3.4.0"

452
neofetch
View File

@@ -9,7 +9,7 @@
# https://github.com/dylanaraps/
# Neofetch version.
version="3.3.1-git"
version="3.4.0"
bash_version="${BASH_VERSION/.*}"
sys_locale="${LANG:-C}"
@@ -27,7 +27,7 @@ export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec:${PATH}"
shopt -s nocasematch
# Reset colors and bold.
reset="\033[0m"
reset="\\e[0m"
# DETECT INFORMATION
@@ -43,7 +43,8 @@ get_os() {
"Haiku") os="Haiku" ;;
"MINIX") os="MINIX" ;;
"AIX") os="AIX" ;;
"IRIX64") os="IRIX" ;;
"IRIX"*) os="IRIX" ;;
"FreeMiNT") os="FreeMiNT" ;;
*)
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
@@ -57,22 +58,7 @@ get_distro() {
case "$os" in
"Linux" | "BSD" | "MINIX")
if [[ "$(< /proc/version)" == *"Microsoft"* ||
"$kernel_version" == *"Microsoft"* ]]; then
case "$distro_shorthand" in
"on") distro="$(lsb_release -sir) [Windows 10]" ;;
"tiny") distro="Windows 10" ;;
*) distro="$(lsb_release -sd) on Windows 10" ;;
esac
elif [[ "$(< /proc/version)" == *"chrome-bot"* || -f "/dev/cros_ec" ]]; then
case "$distro_shorthand" in
"on") distro="$(lsb_release -sir) [Chrome OS]" ;;
"tiny") distro="Chrome OS" ;;
*) distro="$(lsb_release -sd) on Chrome OS" ;;
esac
elif [[ -f "/etc/redstar-release" ]]; then
if [[ -f "/etc/redstar-release" ]]; then
case "$distro_shorthand" in
"on" | "tiny") distro="Red Star OS" ;;
*) distro="Red Star OS $(awk -F'[^0-9*]' '$0=$2' /etc/redstar-release)"
@@ -121,8 +107,16 @@ get_distro() {
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
distro="Android $(getprop ro.build.version.release)"
elif [[ -f "/etc/os-release" || -f "/usr/lib/os-release" ]]; then
files=("/etc/os-release" "/usr/lib/os-release")
# Chrome OS doesn't conform to the /etc/*-release standard.
# While the file is a series of variables they can't be sourced
# by the shell since the values aren't quoted.
elif [[ -f "/etc/lsb-release" && "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
distro="$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)"
elif [[ -f "/etc/os-release" || \
-f "/usr/lib/os-release" || \
-f "/etc/openwrt_release" ]]; then
files=("/etc/os-release" "/usr/lib/os-release" "/etc/openwrt_release")
# Source the os-release file
for file in "${files[@]}"; do
@@ -160,6 +154,23 @@ get_distro() {
[[ -f "/etc/pacbsd-release" ]] && distro="PacBSD"
fi
fi
if [[ "$(< /proc/version)" == *"Microsoft"* ||
"$kernel_version" == *"Microsoft"* ]]; then
case "$distro_shorthand" in
"on") distro+=" [Windows 10]" ;;
"tiny") distro="Windows 10" ;;
*) distro+=" on Windows 10" ;;
esac
elif [[ "$(< /proc/version)" == *"chrome-bot"* || -f "/dev/cros_ec" ]]; then
case "$distro_shorthand" in
"on") distro+=" [Chrome OS]" ;;
"tiny") distro="Chrome OS" ;;
*) distro+=" on Chrome OS" ;;
esac
fi
distro="$(trim_quotes "$distro")"
distro="${distro/'NAME='}"
;;
@@ -230,6 +241,10 @@ get_distro() {
"IRIX")
distro="IRIX ${kernel_version}"
;;
"FreeMiNT")
distro="FreeMiNT"
;;
esac
distro="${distro//Enterprise Server}"
@@ -238,7 +253,7 @@ get_distro() {
# Get OS architecture.
case "$os" in
"Solaris" | "AIX" | "Haiku" | "IRIX") machine_arch="$(uname -p)" ;;
"Solaris" | "AIX" | "Haiku" | "IRIX" | "FreeMiNT") machine_arch="$(uname -p)" ;;
*) machine_arch="$(uname -m)" ;;
esac
@@ -340,6 +355,10 @@ get_model() {
"AIX")
model="$(/usr/bin/uname -M)"
;;
"FreeMiNT")
model="$(sysctl -n hw.model)"
;;
esac
# Remove dummy OEM info.
@@ -403,7 +422,7 @@ get_uptime() {
seconds="${seconds/.*}"
;;
"Mac OS X" | "iPhone OS" | "BSD")
"Mac OS X" | "iPhone OS" | "BSD" | "FreeMiNT")
boot="$(sysctl -n kern.boottime)"
boot="${boot/'{ sec = '}"
boot="${boot/,*}"
@@ -473,16 +492,9 @@ get_uptime() {
}
get_packages() {
# Remove /usr/games from $PATH.
# This solves issues with neofetch opening the "pacman" game.
local PATH=":${PATH}:"
local PATH="${PATH/':/usr/games:'/:}"
local PATH="${PATH%:}"
local PATH="${PATH#:}"
case "$os" in
"Linux" | "BSD" | "iPhone OS" | "Solaris")
type -p pacman >/dev/null && \
type -p paclog-pkglist >/dev/null && \
packages="$(pacman -Qq --color never | wc -l)"
type -p dpkg >/dev/null && \
@@ -604,6 +616,11 @@ get_packages() {
"IRIX")
packages="$(($(versions -b | wc -l)-3))"
;;
"FreeMiNT")
type -p rpm >/dev/null && \
packages="$((packages+=$(rpm -qa | wc -l)))"
;;
esac
((packages == 0)) && unset packages
@@ -626,6 +643,10 @@ get_shell() {
shell="${shell/version}"
;;
"tcsh")
shell+="$("$SHELL" -c 'printf "%s" "$tcsh"')"
;;
*)
shell+="$("$SHELL" --version 2>&1)"
shell="${shell/ "${shell_name}"}"
@@ -653,6 +674,21 @@ get_de() {
esac
;;
"FreeMiNT")
get_wm
for files in /proc/*; do
case "$files" in
*thing*) de="Thing" ;;
*jinnee*) de="Jinnee" ;;
*tera*) de="Teradesk" ;;
*neod*) de="NeoDesk" ;;
*zdesk*) de="zDesk" ;;
*mdesk*) de="mDesk" ;;
esac
done
;;
*)
((wm_run != 1)) && get_wm
@@ -727,7 +763,7 @@ get_wm() {
-e "westford" \
-e "weston")"
elif [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
elif [[ "$DISPLAY" && "$os" != "Mac OS X" && "$os" != "FreeMiNT" ]]; then
id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
id="${id##* }"
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
@@ -738,6 +774,13 @@ get_wm() {
# Window Maker does not set _NET_WM_NAME
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
# Fallback for non-EWMH WMs.
[[ -z "$wm" ]] && \
wm="$(ps -e | grep -m 1 -o -F \
-e "catwm" \
-e "monsterwm" \
-e "tinywm")"
else
case "$os" in
"Mac OS X")
@@ -763,6 +806,18 @@ get_wm() {
[[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)"
wm="${wm:+$wm, }Explorer"
;;
"FreeMiNT")
wm="Atari AES"
for files in /proc/*; do
case "$files" in
*xaaes*) wm="XaAES" ;;
*myaes*) wm="MyAES" ;;
*naes*) wm="N.AES" ;;
geneva) wm="Geneva" ;;
esac
done
;;
esac
fi
@@ -879,14 +934,19 @@ get_wm_theme() {
;;
"Quartz Compositor")
wm_theme="$(PlistBuddy -c "Print AppleAquaColorVariant" \
"${HOME}/Library/Preferences/.GlobalPreferences.plist")"
global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist"
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")"
if [[ -z "$wm_theme" ]] || ((wm_theme == 1)); then
wm_theme="Blue"
[[ -z "$wm_theme" ]] && wm_theme="Light"
if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then
wm_theme_color="Blue"
else
wm_theme="Graphite"
wm_theme_color="Graphite"
fi
wm_theme="$wm_theme_color ($wm_theme)"
;;
*"Explorer")
@@ -1039,8 +1099,9 @@ get_cpu() {
deg="${deg/C}"
;;
"OpenBSD"* | "Bitrig"*)
deg="$(sysctl -n hw.sensors.lm0.temp0)"
deg="${deg/ degC}"
deg="$(sysctl hw.sensors | \
awk -F '=| degC' '/lm0.temp|cpu0.temp/ {print $2; exit}')"
deg="${deg/00/0}"
;;
esac
;;
@@ -1104,6 +1165,11 @@ get_cpu() {
# Get CPU cores.
cores="$(sysconf NPROC_ONLN)"
;;
"FreeMiNT")
cpu="$(awk -F':' '/CPU:/ {printf $2}' /kern/cpuinfo)"
speed="$(awk -F '[:.M]' '/Clocking:/ {printf $2}' /kern/cpuinfo)"
;;
esac
# Remove un-needed patterns from cpu output.
@@ -1118,13 +1184,14 @@ get_cpu() {
cpu="${cpu//Six-Core}"
cpu="${cpu//Eight-Core}"
cpu="${cpu//, * Compute Cores}"
cpu="${cpu//Core}"
cpu="${cpu//Core / }"
cpu="${cpu//(\"AuthenticAMD\"*)}"
cpu="${cpu//with Radeon * Graphics}"
cpu="${cpu//, altivec supported}"
cpu="${cpu//FPU*}"
cpu="${cpu//Chip Revision*}"
cpu="${cpu//Technologies, Inc}"
cpu="${cpu//Core2/Core 2}"
# Trim spaces from core and speed output
cores="${cores//[[:space:]]}"
@@ -1188,7 +1255,8 @@ get_cpu_usage() {
"Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;;
"iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;;
"AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;;
"IRIX") cores="$(sysconf NPROC_ONLN)"
"IRIX") cores="$(sysconf NPROC_ONLN)" ;;
"FreeMiNT") cores="$(sysctl -n hw.ncpu)"
esac
fi
@@ -1251,6 +1319,7 @@ get_gpu() {
gpu="${gpu/'(R)'}"
gpu="${gpu/'Corporation'}"
gpu="${gpu/ \(*}"
gpu="${gpu/Integrated Graphics Controller}"
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
;;
@@ -1411,7 +1480,11 @@ get_memory() {
# Mem used.
case "$kernel_name" in
"OpenBSD"*) mem_used="$(($(vmstat | awk 'END{printf $4}') / 1024))" ;;
"OpenBSD"*)
mem_used="$(vmstat | awk 'END{printf $3}')"
mem_used="${mem_used/M}"
;;
*) mem_used="$((mem_total - mem_free))" ;;
esac
;;
@@ -1442,6 +1515,16 @@ get_memory() {
mem_free="$((mem_stat[5] / 1024))"
mem_used="$((mem_total - mem_free))"
;;
"FreeMiNT")
mem="$(awk -F ':|kB' '/MemTotal:|MemFree:/ {printf $2, " "}' /kern/meminfo)"
mem_free="${mem/* }"
mem_total="${mem/ *}"
mem_used="$((mem_total - mem_free))"
mem_total="$((mem_total / 1024))"
mem_used="$((mem_used / 1024))"
;;
esac
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
@@ -1454,10 +1537,39 @@ get_memory() {
}
get_song() {
player="$(ps x | awk '!(/ awk|Helper|Cache|ibus|indicator/) && /mpd|mopidy|cmus|mocp|spotify|\
Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|\
xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|\
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 " " $6; exit}')"
player="$(ps -e | grep -m 1 -o \
-e "Google Play" \
-e "Spotify" \
-e "amarok" \
-e "audacious" \
-e "banshee" \
-e "bluemindo" \
-e "clementine" \
-e "cmus" \
-e "deadbeef" \
-e "deepin-music" \
-e "elisa" \
-e "exaile" \
-e "gnome-music" \
-e "guayadeque" \
-e "iTunes$" \
-e "juk" \
-e "lollypop" \
-e "mocp" \
-e "mopidy" \
-e "mpd" \
-e "pogo" \
-e "pragha" \
-e "qmmp" \
-e "quodlibet" \
-e "rhythmbox" \
-e "spotify" \
-e "tomahawk" \
-e "xmms2d" \
-e "yarock")"
[[ "$music_player" && "$music_player" != "auto" ]] && \
player="$music_player"
get_song_dbus() {
# Multiple players use an almost identical dbus command to get the information.
@@ -1509,15 +1621,29 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 "
"Linux") get_song_dbus "spotify" ;;
"Mac OS X")
song="$(osascript -e 'tell application "Spotify" to artist of current track as \
string & " - " & name of current track as string')"
song="$(osascript <<END
if application "Spotify" is running then
tell application "Spotify"
artist of current track as string & \
" - " & name of current track as string
end tell
end if
END
)"
;;
esac
;;
"itunes"*)
song="$(osascript -e 'tell application "iTunes" to artist of current track as \
string & " - " & name of current track as string')"
song="$(osascript <<END
if application "iTunes" is running then
tell application "iTunes"
artist of current track as string & \
" - " & name of current track as string
end tell
end if
END
)"
;;
"banshee"*)
@@ -1830,6 +1956,10 @@ get_term() {
*) term="${TERM_PROGRAM/\.app}" ;;
esac
# Most likely TosWin2 on FreeMiNT - quick check
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && \
term="TosWin2"
# Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do
if [[ "$SSH_CONNECTION" ]]; then
@@ -1861,16 +1991,28 @@ get_term_font() {
case "$term" in
"alacritty"*)
if [[ -f "${XDG_CONFIG_HOME}/alacritty.yml" ]]; then
alacritty_file="${XDG_CONFIG_HOME}/alacritty.yml"
elif [[ -f "${XDG_CONFIG_HOME}/alacritty/alacritty.yml" ]]; then
alacritty_file="${XDG_CONFIG_HOME}/alacritty/alacritty.yml"
elif [[ -f "${HOME}/.alacritty.yml" ]]; then
alacritty_file="${HOME}/.alacritty.yml"
fi
term_font="$(awk -F ':|#' '/normal:/ {getline; print}' \
"${XDG_CONFIG_HOME}/alacritty/alacritty.yml")"
"$alacritty_file")"
term_font="${term_font/*family:}"
term_font="${term_font/$'\n'*}"
term_font="${term_font/\#*}"
;;
"Apple_Terminal")
term_font="$(osascript -e 'tell application "Terminal" to \
font name of window frontmost')"
term_font="$(osascript <<END
tell application "Terminal" to font name of window frontmost
END
)"
;;
"iTerm2")
@@ -1881,8 +2023,11 @@ get_term_font() {
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local current_profile_name profiles_count profile_name diff_font none_ascii
current_profile_name="$(osascript -e 'tell application "iTerm2" to profile name \
of current session of current window')"
current_profile_name="$(osascript <<END
tell application "iTerm2" to profile name \
of current session of current window
END
)"
# Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html
@@ -1932,6 +2077,26 @@ get_term_font() {
term_font="$(trim_quotes "$term_font")"
;;
"kitty"*)
if [[ -f "${KITTY_CONFIG_DIRECTORY}/kitty/kitty.conf" ]]; then
kitty_file="${KITTY_CONFIG_DIRECTORY}/kitty/kitty.conf"
elif [[ -f "${XDG_CONFIG_HOME}/kitty/kitty.conf" ]]; then
kitty_file="${XDG_CONFIG_HOME}/kitty/kitty.conf"
elif [[ -f "${HOME}/.config/kitty/kitty.conf" ]]; then
kitty_file="${HOME}/.config/kitty/kitty.conf"
elif [[ -f "${HOME}/Library/Preferences/kitty/kitty.conf" ]]; then
kitty_file="${HOME}/Library/Preferences/kitty/kitty.conf"
fi
term_font="$(awk '/font_family/ { $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 } \
/\s?font_size\s/ { size = $2 } END { print font " " size}' \
"${kitty_file}")"
;;
"konsole"*)
# Get Process ID of current konsole window / tab
child="$(get_ppid "$$")"
@@ -2029,12 +2194,24 @@ get_term_font() {
;;
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
term_font="$(grep -i "${term/d}\**\.*font" < <(xrdb -query))"
xrdb="$(xrdb -query)"
term_font="$(grep -i "${term/d}\**\.*font" <<< "$xrdb")"
term_font="${term_font/*"*font:"}"
term_font="${term_font/*".font:"}"
term_font="${term_font/*"*.font:"}"
term_font="$(trim "$term_font")"
if [[ -z "$term_font" && "$term" == "xterm" ]]; then
term_font="$(grep -E '^XTerm.vt100.faceName' <<< "$xrdb")"
term_font="${term_font/*"faceName:"}"
fi
# xft: isn't required at the beginning so we prepend it if it's missing
if [[ "${term_font:0:1}" != "-" && \
"${term_font:0:4}" != "xft:" ]]; then
term_font="xft:$term_font"
fi
# Xresources has two different font formats, this checks which
# one is in use and formats it accordingly.
case "$term_font" in
@@ -2189,7 +2366,7 @@ get_battery() {
"Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="%"
batttery="$(trim "$battery")%"
;;
"Haiku")
@@ -2356,9 +2533,9 @@ get_cols() {
# Generate the string.
for ((start; start<=end; start++)); do
case "$start" in
[0-6]) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
*) blocks2+="\033[38;5;${start}m\033[48;5;${start}m${block_width}" ;;
[0-6]) blocks+="${reset}\\e[3${start}m\\e[4${start}m${block_width}" ;;
7) blocks+="${reset}\\e[3${start}m\\e[4${start}m${block_width}" ;;
*) blocks2+="\\e[38;5;${start}m\\e[48;5;${start}m${block_width}" ;;
esac
done
@@ -2371,16 +2548,21 @@ get_cols() {
# Add newlines to the string.
cols="${cols%%'nl'}"
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
cols="${cols//nl/\\n\\\e[${text_padding}C${zws}}"
# Add block height to info height.
info_height="$((info_height+=block_height+2))"
printf "%b\n" "\033[${text_padding}C${zws}${cols}"
printf "%b\n" "\\e[${text_padding}C${zws}${cols}"
fi
unset -v blocks blocks2 cols
# TosWin2 on FreeMiNT is terrible at this,
# so we'll reset colors arbitrarily.
[[ "$term" == "TosWin2" ]] && \
printf "%b\n" "\\e[30;47m"
# Tell info() that we printed manually.
prin=1
}
@@ -2433,7 +2615,7 @@ image_backend() {
esac
# Set cursor position next image/ascii.
[[ "$image_backend" != "off" ]] && printf "%b" "\033[${lines:-0}A\033[9999999D"
[[ "$image_backend" != "off" ]] && printf "%b" "\\e[${lines:-0}A\\e[9999999D"
}
get_ascii() {
@@ -2521,7 +2703,10 @@ get_image_source() {
get_wallpaper() {
case "$os" in
"Mac OS X")
image="$(osascript -e 'tell application "System Events" to picture of current desktop')"
image="$(osascript <<END
tell application "System Events" to picture of current desktop
END
)"
;;
"Windows")
@@ -2621,14 +2806,14 @@ get_term_size() {
# so we have to use a slightly different sequence to
# get the terminal size.
if [[ -n "$TMUX" ]]; then
printf "%b" "\033Ptmux;\033\033[14t\033\033[c\033\\"
printf "%b" "\\ePtmux;\\e\\e[14t\\e\\e[c\\e\\"
read_flags=(-d c)
elif [[ "$image_backend" == "tycat" ]]; then
printf "%b" "\033}qs\000"
printf "%b" "\\e}qs\000"
else
printf "%b" "\033[14t\033[c"
printf "%b" "\\e[14t\\e[c"
read_flags=(-d c)
fi
@@ -2647,7 +2832,7 @@ get_term_size() {
term_width="${term_size[2]/t*}"
fi
# Get terminal width/height if \033[14t is unsupported.
# Get terminal width/height if \\e[14t is unsupported.
if [[ -z "$term_width" ]] || (( "$term_width" < 50 )); then
if type -p xdotool >/dev/null 2>&1; then
current_window="$(xdotool getactivewindow)"
@@ -2817,7 +3002,7 @@ display_image() {
;;
"catimg")
catimg -w "$((width * 2 / font_width))" -r 0 "$image" ||\
catimg -w "$((width * 2 / font_width))" "$image" ||\
to_off "Image: catimg failed to display the image."
;;
@@ -2845,10 +3030,10 @@ display_image() {
"iterm2")
image="$(base64 < "$image")"
iterm_cmd="\033]1337;File=width=${width}px;height=${height}px;inline=1:${image}"
iterm_cmd="\\e]1337;File=width=${width}px;height=${height}px;inline=1:${image}"
# Tmux requires an additional escape sequence for this to work.
[[ -n "$TMUX" ]] && iterm_cmd="\033Ptmux;\033${iterm_cmd}\033\\"
[[ -n "$TMUX" ]] && iterm_cmd="\\ePtmux;\\e${iterm_cmd}\\e\\"
printf "%b\a\n" "$iterm_cmd"
;;
@@ -2884,7 +3069,7 @@ to_ascii() {
get_ascii
# Set cursor position next image/ascii.
printf "%b" "\033[${lines:-0}A\033[9999999D"
printf "%b" "\\e[${lines:-0}A\\e[9999999D"
}
to_off() {
@@ -3044,7 +3229,7 @@ prin() {
string="${2:-$1}"
local subtitle_color="$info_color"
fi
string="$(trim "${string//$'\033[0m'}")"
string="$(trim "${string//$'\\e[0m'}")"
# Log length if it doesn't exist.
if [[ -z "$length" ]]; then
@@ -3057,7 +3242,7 @@ prin() {
string="${subtitle_color}${bold}${string}"
# Print the info.
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${string}${reset} "
printf "%b\n" "${text_padding:+\\e[${text_padding}C}${zws}${string}${reset} "
# Calculate info height.
((++info_height))
@@ -3069,7 +3254,7 @@ prin() {
get_underline() {
if [[ "$underline_enabled" == "on" ]]; then
printf -v underline "%${length}s"
printf "%b%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline_color}" \
printf "%b%b\n" "${text_padding:+\\e[${text_padding}C}${zws}${underline_color}" \
"${underline// /$underline_char}${reset} "
unset -v length
fi
@@ -3090,30 +3275,21 @@ get_line_break() {
get_bold() {
case "$ascii_bold" in
"on") ascii_bold="\033[1m" ;;
"on") ascii_bold="\\e[1m" ;;
"off") ascii_bold="" ;;
esac
case "$bold" in
"on") bold="\033[1m" ;;
"on") bold="\\e[1m" ;;
"off") bold="" ;;
esac
}
trim() {
# When a string is passed to "echo" all trailing and leading
# whitespace is removed and inside the string multiple spaces are
# condensed into single spaces.
#
# The "set -f/+f" is here so that "echo" doesn't cause any expansion
# of special characters.
#
# The whitespace trim doesn't work with multiline strings so we use
# "${1//[[:space:]]/ }" to remove newlines before we trim the whitespace.
set -f
# shellcheck disable=2086
builtin echo -E ${1//[[:space:]]/ }
# shellcheck disable=2048,2086
set -- $*
printf "%s\\n" "${*//[[:space:]]/ }"
set +f
}
@@ -3124,16 +3300,20 @@ trim_quotes() {
}
strip_sequences() {
strip="${1//$'\033['3[0-9]m}"
strip="${strip//$'\033['38\;5\;[0-9]m}"
strip="${strip//$'\033['38\;5\;[0-9][0-9]m}"
strip="${strip//$'\033['38\;5\;[0-9][0-9][0-9]m}"
strip="${1//$'\\e['3[0-9]m}"
strip="${strip//$'\\e['38\;5\;[0-9]m}"
strip="${strip//$'\\e['38\;5\;[0-9][0-9]m}"
strip="${strip//$'\\e['38\;5\;[0-9][0-9][0-9]m}"
printf "%s\n" "$strip"
}
uppercase() {
((bash_version >= 4)) && printf "%s" "${1^}"
if ((bash_version >= 4)); then
printf "%s" "${1^}"
else
printf "%s" "$1"
fi
}
# COLORS
@@ -3164,6 +3344,11 @@ get_distro_colors() {
ascii_file="amazon"
;;
"Anarchy"*)
set_colors 7 4
ascii_file="anarchy"
;;
"Android"*)
set_colors 2 7
ascii_file="android"
@@ -3215,6 +3400,11 @@ get_distro_colors() {
ascii_file="arch_xferience"
;;
"ArchMerge"*)
set_colors 6 6 7 1
ascii_file="archmerge"
;;
"Arch"*)
set_colors 6 6 7 1
ascii_file="arch"
@@ -3255,6 +3445,11 @@ get_distro_colors() {
ascii_file="bunsenlabs"
;;
"Calculate"*)
set_colors 7 3
ascii_file="calculate"
;;
"CentOS"*)
set_colors 3 2 4 5 7
ascii_file="centos"
@@ -3330,6 +3525,16 @@ get_distro_colors() {
ascii_file="dracos"
;;
"dragonfly_old"*)
set_colors 1 7 3
ascii_file="dragonflybsd_old"
;;
"dragonfly_small"*)
set_colors 1 7 3
ascii_file="dragonflybsd_small"
;;
"DragonFly"*)
set_colors 1 7 3
ascii_file="dragonflybsd"
@@ -3365,6 +3570,12 @@ get_distro_colors() {
ascii_file="freebsd"
;;
"FreeMiNT"*)
# Don't explicitly set colors since
# TosWin2 doesn't reset well.
ascii_file="gem"
;;
"Frugalware"*)
set_colors 4 7 1
ascii_file="frugalware"
@@ -3420,6 +3631,11 @@ get_distro_colors() {
ascii_file="haiku"
;;
"Hyperbola"*)
set_colors 8
ascii_file="hyperbola"
;;
"Kali"*)
set_colors 4 8
ascii_file="kali"
@@ -3495,6 +3711,11 @@ get_distro_colors() {
ascii_file="mageia"
;;
"MagpieOS"*)
set_colors 2 1 3 5
ascii_file="magpieos"
;;
"Manjaro"*)
set_colors 2 7
ascii_file="manjaro"
@@ -3555,6 +3776,11 @@ get_distro_colors() {
ascii_file="nurunner"
;;
"NuTyX"*)
set_colors 4 1
ascii_file="nutyx"
;;
"OBRevenge"*)
set_colors 1 7 3
ascii_file="obrevenge"
@@ -3645,6 +3871,11 @@ get_distro_colors() {
ascii_file="porteus"
;;
"PostMarketOS"*)
set_colors 2 7
ascii_file="postmarketos"
;;
"Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*)
set_colors 4 7
ascii_file="puppy"
@@ -3705,7 +3936,7 @@ get_distro_colors() {
ascii_file="scientific"
;;
"Siduction"*)
"Siduction"*)
set_colors 4 4
ascii_file="siduction"
;;
@@ -3750,6 +3981,11 @@ get_distro_colors() {
ascii_file="solaris"
;;
"openSUSE Tumbleweed"*)
set_colors 2 7
ascii_file="tumbleweed"
;;
"openSUSE"* | "open SUSE"* | "SUSE"*)
set_colors 2 7
ascii_file="suse"
@@ -3926,9 +4162,9 @@ set_text_colors() {
color() {
case "$1" in
[0-6]) printf "%b" "${reset}\033[3${1}m" ;;
7 | "fg") printf "%b" "\033[37m${reset}" ;;
*) printf "%b" "\033[38;5;${1}m" ;;
[0-6]) printf "%b" "${reset}\\e[3${1}m" ;;
7 | "fg") printf "%b" "\\e[37m${reset}" ;;
*) printf "%b" "\\e[38;5;${1}m" ;;
esac
}
@@ -3951,7 +4187,7 @@ stdout() {
}
err() {
err+="$(color 1)[!]\033[0m $1\n"
err+="$(color 1)[!]\\e[0m $1\n"
}
get_full_path() {
@@ -4128,11 +4364,16 @@ dynamic_prompt() {
return
else
[[ "$image_prompt" ]] && printf "%b\n" "$line_breaks"
lines="$((lines - info_height))"
lines="$((lines - info_height + 1))"
fi
# Set the prompt location.
((lines > 1)) && printf "%b" "\033[${lines}B"
if ((lines > 1)); then
case "$kernel_name" in
"OpenBSD") tput cud "$lines" ;;
*) printf "%b" "\\e[${lines}B" ;;
esac
fi
}
old_functions() {
@@ -4419,6 +4660,8 @@ INFO:
--ip_host url URL to query for public IP
--song_shorthand on/off Print the Artist/Title on separate lines
--music_player player-name Manually specify a player to use.
Available values are listed in the config file
--install_time on/off Enable/Disable showing the time in Install Date output.
--install_time_format 12h/24h
Set time format in Install Date to be 12 hour or 24 hour.
@@ -4464,7 +4707,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.
--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.
@@ -4604,6 +4847,7 @@ get_args() {
"--shell_version") shell_version="$2" ;;
"--ip_host") public_ip_host="$2" ;;
"--song_shorthand") song_shorthand="$2" ;;
"--music_player") music_player="$2" ;;
"--install_time") install_time="$2" ;;
"--install_time_format") install_time_format="$2" ;;
"--cpu_temp")
@@ -4780,10 +5024,10 @@ main() {
# Minix doesn't support these sequences.
if [[ "$TERM" != "minix" && "$stdout" != "on" ]]; then
# If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h\033[?7h"' EXIT
trap 'printf "\\e[?25h\\e[?7h"' EXIT
# Hide the cursor and disable line wrap.
printf "\033[?25l\033[?7l"
printf "\\e[?25l\\e[?7l"
fi
image_backend

View File

@@ -1,5 +1,5 @@
.\" 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"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
.TH NEOFETCH "1" "April 2018" "Neofetch 3.4.0" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
@@ -118,6 +118,10 @@ URL to query for public IP
\fB\-\-song_shorthand\fR on/off
Print the Artist/Title on separate lines
.TP
\fB\-\-music_player\fR player\-name
Manually specify a player to use.
Available values are listed in the config file
.TP
\fB\-\-install_time\fR on/off
Enable/Disable showing the time in Install Date output.
.TP