Compare commits
315 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f220b5270 | |||
| 900820ffee | |||
| 7559fc516a | |||
| e3c799ae9e | |||
| 664b7c2e30 | |||
| 2fb6f214eb | |||
| 086705ff07 | |||
| 783a006abf | |||
| b0b4ef9d80 | |||
| 6c665d9c6c | |||
| 078ff79c16 | |||
| e31d3df4c6 | |||
| 2a84f63fd5 | |||
| 39e5dd0471 | |||
| 503cc3ec98 | |||
| 3f4b5b2a1f | |||
| 1d9fac6f1f | |||
| c176e6ffae | |||
| eeead8d7c3 | |||
| 9cf4b6cdcb | |||
| 42ca4dd5bd | |||
| 1f55b8d2e8 | |||
| 002a10466f | |||
| 8278b92e12 | |||
| 2850674070 | |||
| bd0415884a | |||
| e07241349d | |||
| 93d7b8b881 | |||
| 3b781bc84f | |||
| a656531726 | |||
| a4b05891b9 | |||
| 4894c472e6 | |||
| 371e660a39 | |||
| e184c99055 | |||
| 5b307d53cc | |||
| 4daff3b04d | |||
| 9d48719fb9 | |||
| 26495b59cd | |||
| 78397b27a2 | |||
| 6357e8909f | |||
| 09ea0c3356 | |||
| d610559b01 | |||
| e1494bf07d | |||
| ea4b11a6a1 | |||
| 42973cc700 | |||
| 210c002c61 | |||
| e30df6c719 | |||
| 48884c419b | |||
| ca9edf4e3f | |||
| 64a997ed0a | |||
| 32631d9217 | |||
| 350cb26755 | |||
| 0c730cad1a | |||
| 22622767d8 | |||
| d201644dc5 | |||
| 9778ebf3cf | |||
| 769580314c | |||
| 8d9d8a487e | |||
| 283125f7c5 | |||
| e9fc94096e | |||
| 50420c8044 | |||
| 9ab2b511d7 | |||
| c4027dd91e | |||
| c3176656ef | |||
| 16024267d0 | |||
| 7a7955e58a | |||
| 2dac990718 | |||
| e7b92d9e57 | |||
| b7f1655472 | |||
| 47c32f07d7 | |||
| 97cbdecb5e | |||
| a351a7c731 | |||
| 4be8be3a61 | |||
| a60aa8ee41 | |||
| e12efe5535 | |||
| 2de5282b9c | |||
| a2b6df6d9e | |||
| 8cd70044a1 | |||
| d797a8c28a | |||
| 44b3eb7b56 | |||
| aac56be0c1 | |||
| 8ed15d3b86 | |||
| 178ab554f2 | |||
| c327254320 | |||
| ffef851527 | |||
| 40d2950278 | |||
| 562fdc34e2 | |||
| a2addf730b | |||
| 21e36f9a11 | |||
| 19d15500d3 | |||
| 045357947c | |||
| 28dcc8af33 | |||
| 541874fac6 | |||
| ec277cac28 | |||
| c780fe634c | |||
| 7e37a1beda | |||
| 08380091d2 | |||
| 56793169e3 | |||
| 94107d4786 | |||
| c7123903a2 | |||
| 029cad082f | |||
| 04d43aadd2 | |||
| efa5b390b7 | |||
| 4322f06d11 | |||
| e2707dab83 | |||
| 1c1c057dad | |||
| b12f35fb0b | |||
| 7d1ff19b61 | |||
| 6a0754a0bd | |||
| f48d8b197b | |||
| c4ff2ebada | |||
| 66d00789e5 | |||
| 186b059459 | |||
| 87e920c3de | |||
| bb758237da | |||
| 4a3cb2b16b | |||
| af8138a35f | |||
| b313147a8d | |||
| 19590d73b6 | |||
| d13d737954 | |||
| 6fdc2a651e | |||
| 62dbb4a406 | |||
| 497caf0bd3 | |||
| acbe251430 | |||
| 312db60001 | |||
| 4e64260a27 | |||
| 59bfd6accd | |||
| ad3dca54c5 | |||
| 54dbc35c2d | |||
| 2bd5553a77 | |||
| 64f96bfbec | |||
| 6086ea7c18 | |||
| 3ff1e38e0b | |||
| 759373bb25 | |||
| 55b9efe916 | |||
| de1eaf8882 | |||
| ae2be9e70c | |||
| 128d870151 | |||
| fbd327f0e9 | |||
| d46db67af0 | |||
| 405f55d56e | |||
| 7b3f12fa8c | |||
| 09e2c49e91 | |||
| 7d26a8e60c | |||
| 2af034697c | |||
| 52cd1af890 | |||
| 4f38fd1f57 | |||
| a1e99aa0d3 | |||
| 5cab401189 | |||
| 42d6aa490a | |||
| ce5e7f174d | |||
| 63bbbff129 | |||
| 8102cd3a62 | |||
| 302e2bfe44 | |||
| 2209e46014 | |||
| cde50f3893 | |||
| a51b3d29b9 | |||
| d4edbf1b9e | |||
| 36cc71b08e | |||
| 2a6ca41dcf | |||
| 55483a179d | |||
| 993cfbc627 | |||
| 256759ce08 | |||
| 45d88a346c | |||
| 6e58b2b217 | |||
| c6c297a3b5 | |||
| f3b8a26d0e | |||
| b0b9c65d0c | |||
| 82bd8c1c4e | |||
| b53bd3a1c5 | |||
| 315037c32f | |||
| 3f7b6aa3e2 | |||
| c779230f0b | |||
| 6a393986ac | |||
| 6078e70cd8 | |||
| 4dc28cd65d | |||
| 9d1251bcf1 | |||
| e4fecc6733 | |||
| a6ac4b4117 | |||
| 23a94fd389 | |||
| 276d02440a | |||
| 34ac93d6c3 | |||
| 4efe946bfd | |||
| 54300031f9 | |||
| e95c8ebe5f | |||
| 89e716160d | |||
| 25d63b6494 | |||
| 7c40c7c1de | |||
| fa90bac6b2 | |||
| 20a0584264 | |||
| 4fa3aef4d6 | |||
| bd9a01e334 | |||
| 983b4bed75 | |||
| 8a975dc9f8 | |||
| 75619edf01 | |||
| 8967ab4200 | |||
| 3383b88d35 | |||
| 950fb1dfbf | |||
| 8a6cb79bae | |||
| a0f1be4247 | |||
| 096d1092c3 | |||
| 58509bf20b | |||
| 5739b9cc72 | |||
| 51bb342e8e | |||
| 69df231e17 | |||
| b9cff7c1e5 | |||
| 8662a2fe4c | |||
| 8f2976ffe4 | |||
| e6a11ca7cc | |||
| 32fece816f | |||
| 74b4347df5 | |||
| a20c67a86b | |||
| 97a2dd7325 | |||
| cce4866681 | |||
| 42d72fd13e | |||
| 50516dcf67 | |||
| 8dab8c93e3 | |||
| e2a0d4113a | |||
| fe1507b218 | |||
| 2558cc250d | |||
| 2dff8b0026 | |||
| 2e61633a7a | |||
| d3af666f21 | |||
| 201dc17c9d | |||
| c26bf9fb4a | |||
| b35ca2c919 | |||
| 30b2887d58 | |||
| b97f562780 | |||
| d561057cd8 | |||
| 8231693c0f | |||
| 6cddcd3f74 | |||
| f964e1d62b | |||
| bc2a8e60db | |||
| fcae0110e4 | |||
| f3078a7cd4 | |||
| 58d96e21d4 | |||
| 0e4f5e5541 | |||
| 3c961e38bf | |||
| 2bbc06a27f | |||
| 49725192b4 | |||
| c4630ee215 | |||
| da1970edd5 | |||
| 7254d787cd | |||
| 4e479dcdbb | |||
| 4705f50bfc | |||
| 533e5d86d8 | |||
| 7b3b51a5ce | |||
| 6dec6c756d | |||
| 978314980d | |||
| f58ba59b0b | |||
| e719ccbcae | |||
| c7fcbd9c32 | |||
| b611400e3b | |||
| 86021d96c7 | |||
| 0df597d38c | |||
| 8480ef541a | |||
| d2637a3588 | |||
| 815b755e48 | |||
| 0d8ff614c9 | |||
| 2250f05cca | |||
| 088f48b9e9 | |||
| 9cdf849193 | |||
| ec15b100e1 | |||
| faa7b14bfa | |||
| 8e27e79b93 | |||
| 765b03643d | |||
| f04bca3045 | |||
| 0e0613588e | |||
| c392685004 | |||
| 34006a6f75 | |||
| 3aa5a6d99e | |||
| cddaff7299 | |||
| 31578af72b | |||
| 2c3841012e | |||
| 413c32e55d | |||
| d5e232d4f0 | |||
| f2fefb5379 | |||
| 6b43063ca1 | |||
| ef29fa6e57 | |||
| 15c2b33575 | |||
| ca0e3edcfa | |||
| 5a9ac6ee95 | |||
| 3ed56a46b3 | |||
| 6ff0b0a28b | |||
| 1e2ccf07a8 | |||
| 3e383f68f1 | |||
| 4f519e3aae | |||
| 116f038d86 | |||
| d1fac5df1d | |||
| f85fd46f63 | |||
| 4f49053c8f | |||
| 0f5a329522 | |||
| e68bb3dd2e | |||
| 1456af01ba | |||
| 4917191cdb | |||
| 5d9b77c9b0 | |||
| 0a4a58c1fb | |||
| 118be2c6e6 | |||
| a0221c51ff | |||
| ddd8dad7ef | |||
| e407d5bad1 | |||
| d2ea94a15d | |||
| 1b5dcdf7bc | |||
| cb32928102 | |||
| 86e266e5b7 | |||
| 10cf43e53a | |||
| 4141531b22 | |||
| 0e7799ff7e | |||
| 2131948855 | |||
| 3643275e44 | |||
| 9281ae5ed1 | |||
| e64b4d29f9 | |||
| 00e0343150 | |||
| e5d28f28c6 | |||
| b0877d4874 |
@@ -0,0 +1,24 @@
|
||||
name: Shellcheck
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# Shellcheck
|
||||
check:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install shellcheck
|
||||
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
||||
|
||||
- name: Run shellcheck
|
||||
run: |
|
||||
shellcheck -V
|
||||
shellcheck neofetch
|
||||
./neofetch
|
||||
@@ -115,3 +115,4 @@ dmypy.json
|
||||
|
||||
# Custom
|
||||
.idea
|
||||
._*
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
language: bash
|
||||
sudo: required
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
before_install:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
|
||||
|
||||
script:
|
||||
- time ./neofetch --travis -v
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -e SC2244 -e SC2243 neofetch; fi
|
||||
# Check for lines longer than 100 chars.
|
||||
- if grep '.\{102\}' neofetch; then (exit 1); else (exit 0); fi
|
||||
@@ -2,17 +2,15 @@
|
||||
|
||||
neofetch with pride flags <3
|
||||
|
||||

|
||||
<img src="https://user-images.githubusercontent.com/22280294/162614541-af2b4660-f1f7-4287-b978-1aa2266ac70f.png" width="60%">
|
||||
|
||||
### Running Updated Original Neofetch
|
||||
|
||||
This repo also serves as an updated version of the original `neofetch` since the upstream [dylanaraps/neofetch](https://github.com/dylanaraps/neofetch) doesn't seem to be maintained anymore (as of Jul 30, 2022, the original repo hasn't merged a pull request for 6 months). If you only want to use the updated neofetch without pride flags, you can install the python package and use `neowofetch` xD.
|
||||
This repo also serves as an updated version of the original `neofetch` since the upstream [dylanaraps/neofetch](https://github.com/dylanaraps/neofetch) doesn't seem to be maintained anymore (as of Jul 30, 2022, the original repo hasn't merged a pull request for 6 months). If you only want to use the updated neofetch without pride flags, you can use the `neofetch` script from this repo. To prevent command name conflict, I call it `neowofetch` :)
|
||||
|
||||
If you installed `npm`, you can also run the updated original neofetch using `npx neowofetch`. If not, you can also do this:
|
||||
|
||||
```sh
|
||||
bash <(curl -s "https://raw.githubusercontent.com/Hykilpikonna/HyFetch/HEAD/neofetch")
|
||||
```
|
||||
* Method 1: `pip install hyfetch` then run `neowofetch`
|
||||
* Method 2: `npx neowofetch`
|
||||
* Method 3: `bash <(curl -sL neowofetch.hydev.org)`
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -36,6 +34,8 @@ Currently, these distributions have existing packages for HyFetch:
|
||||
|
||||
When you run `hyfetch` for the first time, it will prompt you to choose a color system and a preset. Just follow the prompt, and everything should work (hopefully). If something doesn't work, feel free to submit an issue!
|
||||
|
||||
If you want to use the updated `neofetch` without LGBTQ flags, check out [this section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch)
|
||||
|
||||
#### Q: How do I change my config?
|
||||
|
||||
A: Use `hyfetch -c`
|
||||
@@ -60,56 +60,186 @@ Updates to `neowofetch` begins with the emoji 🖼️
|
||||
* [ ] Paginate flags
|
||||
* [ ] Implement light/dark background detection based on https://github.com/muesli/termenv
|
||||
|
||||
### Unpublished 1.4.0
|
||||
|
||||
* 🌈 Add finsexual flag (#12)
|
||||
* 🚀 Addressed a total of 128 currently open pull requests from neofetch
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Meta Changes</summary>
|
||||
|
||||
* Meta - Fixed shellcheck warnings in `neowofetch`
|
||||
* Meta - Moved shellcheck from travis to GitHub Actions
|
||||
* Meta - Created a script to automatically generate distro list
|
||||
* Colors - Allow RGB colors in neofetch `--ascii_colors` argument ([dylanaraps#1726](https://github.com/dylanaraps/neofetch/pull/1726))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Distro/OS Support Changes</summary>
|
||||
|
||||
* Distro - Update Ubuntu logo ([dylanaraps#2125](https://github.com/dylanaraps/neofetch/pull/2125))
|
||||
* Distro - Add Exodia OS Predator ([dylanaraps#2174](https://github.com/dylanaraps/neofetch/pull/2174))
|
||||
* Distro - Add Parch ([dylanaraps#2045](https://github.com/dylanaraps/neofetch/pull/2045))
|
||||
* Distro - Add VzLinux ([dylanaraps#1971](https://github.com/dylanaraps/neofetch/pull/1971))
|
||||
* Distro - Add Twister OS ([dylanaraps#1890](https://github.com/dylanaraps/neofetch/pull/1890))
|
||||
* Distro - Add BlackPantherOS ([dylanaraps#1761](https://github.com/dylanaraps/neofetch/pull/1761))
|
||||
* Distro - Add TorizonCore ([dylanaraps#1744](https://github.com/dylanaraps/neofetch/pull/1744))
|
||||
* Distro - Add KrassOS ([dylanaraps#1631](https://github.com/dylanaraps/neofetch/pull/1631))
|
||||
* Distro - Add Synology DSM ([dylanaraps#1666](https://github.com/dylanaraps/neofetch/pull/1666))
|
||||
* Distro - Add MatuusOS ([dylanaraps#1902](https://github.com/dylanaraps/neofetch/pull/1902))
|
||||
* Distro - Add HarDClanZ Linux ([dylanaraps#1797](https://github.com/dylanaraps/neofetch/pull/1797))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Device Support Changes</summary>
|
||||
|
||||
* Host - Identify iMac, Mac mini, Mac Pro Models ([dylanaraps#1944](https://github.com/dylanaraps/neofetch/pull/1944))
|
||||
* Host - Identify FreeBSD host model ([dylanaraps#1588](https://github.com/dylanaraps/neofetch/pull/1588))
|
||||
* Font - Better font matching for st ([dylanaraps#1877](https://github.com/dylanaraps/neofetch/pull/1877))
|
||||
* Theme - Use XSETTINGS to get theme without a DE ([dylanaraps#1831](https://github.com/dylanaraps/neofetch/pull/1831))
|
||||
* Theme - Add QT theme detection ([dylanaraps#1713](https://github.com/dylanaraps/neofetch/pull/1713))
|
||||
* Theme - Add LeftWM theme detection ([dylanaraps#1963](https://github.com/dylanaraps/neofetch/pull/1963))
|
||||
* Cursor - Add cursor theme detection ([dylanaraps#1149](https://github.com/dylanaraps/neofetch/pull/1149))
|
||||
* Terminal - Improve NixOS terminal identification ([dylanaraps#1134](https://github.com/dylanaraps/neofetch/pull/1134))
|
||||
* Terminal - Use `/proc/.../cmdline` instead of `.../comm` ([dylanaraps#2034](https://github.com/dylanaraps/neofetch/pull/2034))
|
||||
* Packages - Improve scoop/choco package count ([dylanaraps#1642](https://github.com/dylanaraps/neofetch/pull/1642))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Bug Fixes</summary>
|
||||
|
||||
* Bug Fix - Fix prepended `=` for kitty ([dylanaraps#2116](https://github.com/dylanaraps/neofetch/pull/2116))
|
||||
* Bug Fix - Hide domain in hostname by default ([dylanaraps#2095](https://github.com/dylanaraps/neofetch/pull/2095))
|
||||
* Bug Fix - Respect TMPDIR if it exists ([dylanaraps#1891](https://github.com/dylanaraps/neofetch/pull/1891))
|
||||
* Bug Fix - Fix terminal size over slow connection ([dylanaraps#1895](https://github.com/dylanaraps/neofetch/pull/1895))
|
||||
* Bug Fix - Fix GPU detection for bumblebee dual-GPU ([dylanaraps#1131](https://github.com/dylanaraps/neofetch/pull/1131))
|
||||
* Bug Fix - Strip colors in ASCII length calculation ([dylanaraps#1543](https://github.com/dylanaraps/neofetch/pull/1543))
|
||||
|
||||
</details>
|
||||
|
||||
### 1.3.0
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Ascii Art Changes</summary>
|
||||
|
||||
* Ascii - Improve Trisquel ([dylanaraps#1946](https://github.com/dylanaraps/neofetch/pull/1946))
|
||||
* Ascii - Improve LangitKetujuh ([dylanaraps#1948](https://github.com/dylanaraps/neofetch/pull/1948))
|
||||
* Ascii - Improve Artix small ([dylanaraps#1872](https://github.com/dylanaraps/neofetch/pull/1872))
|
||||
* Ascii - Update Archcraft ([dylanaraps#1919](https://github.com/dylanaraps/neofetch/pull/1919))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Distro/OS Support Changes</summary>
|
||||
|
||||
* OS - Support Old macOS 10.4 and 10.5 ([dylanaraps#2151](https://github.com/dylanaraps/neofetch/pull/2151))
|
||||
* OS - Identify Hackintosh VM ([dylanaraps#2005](https://github.com/dylanaraps/neofetch/pull/2005))
|
||||
* Distro - Fix model detection for Ubuntu Touch ([dylanaraps#2167](https://github.com/dylanaraps/neofetch/pull/2167))
|
||||
* Distro - Add EncryptOS ([dylanaraps#2158](https://github.com/dylanaraps/neofetch/pull/2158))
|
||||
* Distro - Add BigLinux ([dylanaraps#2061](https://github.com/dylanaraps/neofetch/pull/2061))
|
||||
* Distro - Add AmogOS ([dylanaraps#1904](https://github.com/dylanaraps/neofetch/pull/1904))
|
||||
* Distro - Add CutefishOS ([dylanaraps#2054](https://github.com/dylanaraps/neofetch/pull/2054))
|
||||
* Distro - Add PearOS ([dylanaraps#2049](https://github.com/dylanaraps/neofetch/pull/2049))
|
||||
* Distro - Add FusionX ([dylanaraps#2011](https://github.com/dylanaraps/neofetch/pull/2011))
|
||||
* Distro - Add Q4OS ([dylanaraps#1973](https://github.com/dylanaraps/neofetch/pull/1973))
|
||||
* Distro - Add CachyOS ([dylanaraps#2026](https://github.com/dylanaraps/neofetch/pull/2026))
|
||||
* Distro - Add Soda Linux ([dylanaraps#2023](https://github.com/dylanaraps/neofetch/pull/2023))
|
||||
* Distro - Add Elive Linux ([dylanaraps#1957](https://github.com/dylanaraps/neofetch/pull/1957))
|
||||
* Distro - Add Uos ([dylanaraps#1991](https://github.com/dylanaraps/neofetch/pull/1991))
|
||||
* Distro - Add MassOS ([dylanaraps#1947](https://github.com/dylanaraps/neofetch/pull/1947))
|
||||
* Distro - Add CalinixOS ([dylanaraps#1988](https://github.com/dylanaraps/neofetch/pull/1988))
|
||||
* Distro - Add Kaisen Linux ([dylanaraps#1958](https://github.com/dylanaraps/neofetch/pull/1958))
|
||||
* Distro - Add yiffOS ([dylanaraps#1920](https://github.com/dylanaraps/neofetch/pull/1920))
|
||||
* Distro - Add Sulin ([dylanaraps#1896](https://github.com/dylanaraps/neofetch/pull/1896))
|
||||
* Distro - Add Wii Linux ([dylanaraps#1929](https://github.com/dylanaraps/neofetch/pull/1929))
|
||||
* Distro - Add Linspire ([dylanaraps#1905](https://github.com/dylanaraps/neofetch/pull/1905))
|
||||
* Distro - Add Ubuntu Kylin ([dylanaraps#1974](https://github.com/dylanaraps/neofetch/pull/1974))
|
||||
* Distro - Add OPNsense ([dylanaraps#1055](https://github.com/dylanaraps/neofetch/pull/1055))
|
||||
* Distro - Improve BSD machine arch detection ([dylanaraps#2015](https://github.com/dylanaraps/neofetch/pull/2015))
|
||||
* Distro - Improve Manjaro version detection ([dylanaraps#1879](https://github.com/dylanaraps/neofetch/pull/1879))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Device Support Changes</summary>
|
||||
|
||||
* Terminal - Add Fig ([dylanaraps#2077](https://github.com/dylanaraps/neofetch/pull/2077))
|
||||
* Terminal - Identify font for Apple Terminal ([dylanaraps#2017](https://github.com/dylanaraps/neofetch/pull/2017))
|
||||
* CPU - Identify core count for Apple M1 ([dylanaraps#2038](https://github.com/dylanaraps/neofetch/pull/2038))
|
||||
* GPU - Identify OpenCL GPU without PCIe ([dylanaraps#1928](https://github.com/dylanaraps/neofetch/pull/1928))
|
||||
* Host - Identify MacBook & Update iDevice models ([dylanaraps#1944](https://github.com/dylanaraps/neofetch/pull/1944))
|
||||
* Battery - Identify power adapter for MacBooks ([dylanaraps#1945](https://github.com/dylanaraps/neofetch/pull/1945))
|
||||
* DE - Identify KF5 and Qt versions for Plasma ([dylanaraps#2019](https://github.com/dylanaraps/neofetch/pull/2019))
|
||||
* Packages - Improve GUIX package detection ([dylanaraps#2021](https://github.com/dylanaraps/neofetch/pull/2021))
|
||||
* Packages - Add `pm` and `cargo` ([dylanaraps#1876](https://github.com/dylanaraps/neofetch/pull/1876))
|
||||
* Network - Identify network capabilities ([dylanaraps#1511](https://github.com/dylanaraps/neofetch/pull/1511))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Bug Fixes</summary>
|
||||
|
||||
* Bug Fix - Fix `col_offset` ([dylanaraps#2042](https://github.com/dylanaraps/neofetch/pull/2042))
|
||||
* Bug Fix - Prioritize `/etc/os-release` ([dylanaraps#2067](https://github.com/dylanaraps/neofetch/pull/2067))
|
||||
* Bug Fix - Ignore case when counting `.appimage` ([dylanaraps#2006](https://github.com/dylanaraps/neofetch/pull/2006))
|
||||
* Bug Fix - Fix BSD freezing if pkg is not bootstrapped ([dylanaraps#2014](https://github.com/dylanaraps/neofetch/pull/2014))
|
||||
* Bug Fix - Fix wrong icon theme ([dylanaraps#1873](https://github.com/dylanaraps/neofetch/pull/1873))
|
||||
|
||||
</details>
|
||||
|
||||
### 1.2.0
|
||||
|
||||
* 🚀 Take over `neofetch` with `neowofetch`
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Ascii Art Changes</summary><br>
|
||||
<summary>🖼️ Ascii Art Changes</summary>
|
||||
|
||||
* Ascii - Add uwuntu ([#9](https://github.com/hykilpikonna/hyfetch/pull/9)) (use it with `hyfetch --test-distro uwuntu` or `neowofetch --ascii_distro uwuntu`)
|
||||
* Ascii - Better Void ascii art ([#10](https://github.com/hykilpikonna/hyfetch/pull/10))
|
||||
* Ascii - Update old NixOS logo for compatibility (dylanaraps/neofetch#2114)
|
||||
* Ascii - Update old NixOS logo for compatibility ([dylanaraps#2114](https://github.com/dylanaraps/neofetch/pull/2114))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Distro/OS Support Changes</summary><br>
|
||||
<summary>🖼️ Distro/OS Support Changes</summary>
|
||||
|
||||
* OS - Identify macOS 13 Ventura ([#8](https://github.com/hykilpikonna/hyfetch/pull/8))
|
||||
* OS - Windows 11 Fluent (dylanaraps/neofetch#2109)
|
||||
* Distro - Add Asahi Linux (dylanaraps/neofetch#2079)
|
||||
* Distro - Add CenterOS (dylanaraps/neofetch#2097)
|
||||
* Distro - Add Finnix (dylanaraps/neofetch#2099)
|
||||
* Distro - Add Miracle Linux (dylanaraps/neofetch#2085)
|
||||
* Distro - Add Univalent (dylanaraps/neofetch#2162)
|
||||
* Distro - Add NomadBSD (dylanaraps/neofetch#2147)
|
||||
* Distro - Add GrapheneOS (dylanaraps/neofetch#2146)
|
||||
* Distro - Add ShastraOS (dylanaraps/neofetch#2149)
|
||||
* Distro - Add Ubuntu Touch (dylanaraps/neofetch#2167)
|
||||
* Distro - Add Ubuntu Sway (dylanaraps/neofetch#2136)
|
||||
* Distro - Add Orchid Linux (dylanaraps/neofetch#2144)
|
||||
* Distro - Add AOSC OS/Retro (dylanaraps/neofetch#2124)
|
||||
* Distro - Add Ultramarine Linux (dylanaraps/neofetch#2115)
|
||||
* Distro - Improve NixOS version detection (dylanaraps/neofetch#2157)
|
||||
* OS - Windows 11 Fluent ([dylanaraps#2109](https://github.com/dylanaraps/neofetch/pull/2109))
|
||||
* Distro - Add Asahi Linux ([dylanaraps#2079](https://github.com/dylanaraps/neofetch/pull/2079))
|
||||
* Distro - Add CenterOS ([dylanaraps#2097](https://github.com/dylanaraps/neofetch/pull/2097))
|
||||
* Distro - Add Finnix ([dylanaraps#2099](https://github.com/dylanaraps/neofetch/pull/2099))
|
||||
* Distro - Add Miracle Linux ([dylanaraps#2085](https://github.com/dylanaraps/neofetch/pull/2085))
|
||||
* Distro - Add Univalent ([dylanaraps#2162](https://github.com/dylanaraps/neofetch/pull/2162))
|
||||
* Distro - Add NomadBSD ([dylanaraps#2147](https://github.com/dylanaraps/neofetch/pull/2147))
|
||||
* Distro - Add GrapheneOS ([dylanaraps#2146](https://github.com/dylanaraps/neofetch/pull/2146))
|
||||
* Distro - Add ShastraOS ([dylanaraps#2149](https://github.com/dylanaraps/neofetch/pull/2149))
|
||||
* Distro - Add Ubuntu Touch ([dylanaraps#2167](https://github.com/dylanaraps/neofetch/pull/2167))
|
||||
* Distro - Add Ubuntu Sway ([dylanaraps#2136](https://github.com/dylanaraps/neofetch/pull/2136))
|
||||
* Distro - Add Orchid Linux ([dylanaraps#2144](https://github.com/dylanaraps/neofetch/pull/2144))
|
||||
* Distro - Add AOSC OS/Retro ([dylanaraps#2124](https://github.com/dylanaraps/neofetch/pull/2124))
|
||||
* Distro - Add Ultramarine Linux ([dylanaraps#2115](https://github.com/dylanaraps/neofetch/pull/2115))
|
||||
* Distro - Improve NixOS version detection ([dylanaraps#2157](https://github.com/dylanaraps/neofetch/pull/2157))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Device Support Changes</summary><br>
|
||||
<summary>🖼️ Device/Program Support Changes</summary>
|
||||
|
||||
* Terminal - Add Termux (dylanaraps/neofetch#2168)
|
||||
* CPU - Add loongarch64 (dylanaraps/neofetch#2140)
|
||||
* CPU - Identify CPU name for ARM / RISCV (dylanaraps/neofetch#2139)
|
||||
* Battery - Fix file not found (dylanaraps/neofetch#2130)
|
||||
* GPU - Identify open-kernal Nvidia driver version (dylanaraps/neofetch#2128)
|
||||
* Terminal - Add Termux ([dylanaraps#1923](https://github.com/dylanaraps/neofetch/pull/1923))
|
||||
* CPU - Add loongarch64 ([dylanaraps#2140](https://github.com/dylanaraps/neofetch/pull/2140))
|
||||
* CPU - Identify CPU name for ARM / RISCV ([dylanaraps#2139](https://github.com/dylanaraps/neofetch/pull/2139))
|
||||
* Battery - Fix file not found ([dylanaraps#2130](https://github.com/dylanaraps/neofetch/pull/2130))
|
||||
* GPU - Identify open-kernal Nvidia driver version ([dylanaraps#2128](https://github.com/dylanaraps/neofetch/pull/2128))
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>🖼️ Bug Fixes</summary><br>
|
||||
<summary>🖼️ Bug Fixes</summary>
|
||||
|
||||
* Bug Fix - Fix broken fedora output (dylanaraps/neofetch#2084)
|
||||
* Bug Fix - Fix broken fedora output ([dylanaraps#2084](https://github.com/dylanaraps/neofetch/pull/2084))
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import os
|
||||
import shlex
|
||||
from subprocess import check_output
|
||||
|
||||
import pyperclip
|
||||
import requests
|
||||
from github import Github
|
||||
|
||||
upstream = 'dylanaraps/neofetch'
|
||||
my_fork = 'hykilpikonna/hyfetch'
|
||||
my_base = 'master'
|
||||
# gh_token = os.environ['GH_TOKEN']
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Helper for accepting upstream pull requests')
|
||||
parser.add_argument('pull', type=int, help='Pull request number')
|
||||
args = parser.parse_args()
|
||||
pr = args.pull
|
||||
|
||||
print(f'Accepting pull request {pr}...')
|
||||
|
||||
# Fetch original pr's information
|
||||
info = requests.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}').json()
|
||||
# print(info)
|
||||
head = info['head']['repo']['full_name']
|
||||
head_br = info['head']['ref']
|
||||
head_lbl = info['head']['label']
|
||||
user = info['user']['login']
|
||||
print()
|
||||
print('Original Pull Request Info:')
|
||||
print('> State:', info['state'])
|
||||
print('> Title:', info['title'])
|
||||
print('> User:', user)
|
||||
print('> Created:', info['created_at'])
|
||||
print('> Head:', head, head_br, head_lbl)
|
||||
|
||||
# Fetch commit information
|
||||
commits = requests.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}/commits').json()
|
||||
author = commits[0]['commit']['author']
|
||||
|
||||
# Fetch head branch
|
||||
print()
|
||||
print('Fetching head branch...')
|
||||
os.system(f'git fetch https://github.com/{head} {head_br}')
|
||||
|
||||
# Merge head branch
|
||||
print()
|
||||
print('Merging fetch_head...')
|
||||
title = info["title"].replace('"', '\\"')
|
||||
os.system(f'git merge FETCH_HEAD --no-ff --no-edit '
|
||||
f'-m "[PR] {upstream}#{pr} from {user} - {title}" '
|
||||
f'-m "Upstream PR: https://github.com/{upstream}/pull/{pr} \n'
|
||||
f'Thanks to @{user}\n\n'
|
||||
f'Co-authored-by: {author["name"]} <{author["email"]}>"')
|
||||
|
||||
# Push
|
||||
print()
|
||||
print('Pushing...')
|
||||
os.system('git push')
|
||||
|
||||
# Get commit SHA
|
||||
sha = check_output(shlex.split('git rev-parse --short HEAD')).decode().strip()
|
||||
|
||||
# Copy comment to clipboard
|
||||
comment = f"""
|
||||
Thank you for your contribution!
|
||||
|
||||
This PR is [merged into hyfetch](https://github.com/hykilpikonna/hyfetch/commit/{sha}) since this repo (dylanaraps/neofetch) seems no longer maintained.
|
||||
|
||||
[HyFetch](https://github.com/hykilpikonna/hyfetch) is a fork of neofetch with LGBTQ pride flags, but the repo also serves as an updated version of neofetch, addressing many pull requests that are not merged in the original repo.
|
||||
"""
|
||||
pyperclip.copy(comment.strip())
|
||||
print()
|
||||
print('Done!')
|
||||
print('Comment response copied to clipboard.')
|
||||
@@ -7,7 +7,7 @@ from pathlib import Path
|
||||
from typing_extensions import Literal
|
||||
|
||||
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
||||
VERSION = '1.2.0'
|
||||
VERSION = '1.4.0'
|
||||
|
||||
# Obtain terminal size
|
||||
try:
|
||||
|
||||
@@ -178,7 +178,7 @@ def run_neofetch(preset: ColorProfile, alignment: ColorAlignment):
|
||||
if platform.system() != 'Windows':
|
||||
os.system(f'{get_command_path()} --ascii --source {path.absolute()} --ascii-colors')
|
||||
|
||||
if platform.system() == 'Windows':
|
||||
else:
|
||||
cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
|
||||
path_str = str(path.absolute()).replace('\\', '/').replace('C:/', '/c/')
|
||||
|
||||
|
||||
@@ -525,4 +525,11 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
'#FFFFFF',
|
||||
'#000000',
|
||||
]),
|
||||
"finsexual": ColorProfile([
|
||||
"#B18EDF",
|
||||
"#D7B1E2",
|
||||
"#F7CDE9",
|
||||
"#F39FCE",
|
||||
"#EA7BB3",
|
||||
]),
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+63
-48
@@ -1,7 +1,7 @@
|
||||
.\" 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.2.
|
||||
.TH NEOFETCH "1" "August 2022" "Neofetch 7.3.0" "User Commands"
|
||||
.SH NAME
|
||||
Neofetch \- A fast, highly customizable system info script
|
||||
Neofetch \- manual page for Neofetch 7.3.0
|
||||
.SH SYNOPSIS
|
||||
.B neofetch
|
||||
\fI\,func_name --option "value" --option "value"\/\fR
|
||||
@@ -44,7 +44,7 @@ NOTE: You can supply multiple args. eg. 'neofetch \fB\-\-disable\fR cpu gpu'
|
||||
Hide/Show Fully Qualified Domain Name in title.
|
||||
.TP
|
||||
\fB\-\-package_managers\fR on/off
|
||||
Hide/Show Package Manager names . (on, tiny, off)
|
||||
Hide/Show Package Manager names. (on, tiny, off)
|
||||
.TP
|
||||
\fB\-\-os_arch\fR on/off
|
||||
Hide/Show OS architecture.
|
||||
@@ -301,52 +301,55 @@ Colors to print the ascii art
|
||||
\fB\-\-ascii_distro\fR distro
|
||||
Which Distro's ascii art to print
|
||||
.TP
|
||||
NOTE: AIX, Hash, Alpine, AlterLinux, Amazon, Anarchy, Android, instantOS,
|
||||
Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft,
|
||||
ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch,
|
||||
Artix, Arya, Bedrock, Bitrig, BlackArch, BLAG, BlankOn, BlueLight,
|
||||
bonsai, BSD, BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
||||
Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres,
|
||||
Container_Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS,
|
||||
Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary,
|
||||
EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, Finnix, FreeBSD,
|
||||
FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
|
||||
gNewSense, GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, Huayra,
|
||||
HydroOS, Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora,
|
||||
KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE,
|
||||
Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui,
|
||||
Mer, Minix, LinuxMint, Live_Raizo, MX_Linux, Namib, Neptune, NetBSD,
|
||||
Netrunner, Nitrux, NixOS, NomadBSD, Nurunner, NuTyX, OBRevenge, OpenBSD,
|
||||
openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt,
|
||||
osmc, Oracle, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix,
|
||||
TrueOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS,
|
||||
Proxmox, Puppy, PureOS, Qubes, Quibian, Radix, Raspbian, Reborn_OS,
|
||||
Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, Rosa,
|
||||
sabotage, Sabayon, Sailfish, SalentOS, ShastraOS, Scientific, Septor,
|
||||
SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, SmartOS,
|
||||
Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
|
||||
t2, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
|
||||
Ubuntu\-Cinnamon, Ubuntu\-Budgie, Ubuntu\-GNOME, Ubuntu\-MATE,
|
||||
Ubuntu\-Studio, Ubuntu, Univention, Venom, Void, VNux, semc, Obarun,
|
||||
windows10, Windows7, Xubuntu, Zorin, and IRIX have ascii logos.
|
||||
.IP
|
||||
NOTE: Arch, Ubuntu, Redhat, Fedora and Dragonfly have 'old' logo variants.
|
||||
.IP
|
||||
NOTE: Use '{distro name}_old' to use the old logos.
|
||||
.IP
|
||||
NOTE: Ubuntu has flavor variants.
|
||||
NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy,
|
||||
Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux,
|
||||
Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchMerge, ArchStrike,
|
||||
ArcoLinux, Artix, Arya, Asahi, AsteroidOS, Bedrock, BigLinux,
|
||||
Bitrig, BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi,
|
||||
bonsai, BSD, BunsenLabs, Cachy OS, Calculate, CalinixOS, Carbs, CBLMariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, Chrom,
|
||||
Cleanjaro, Clear Linux OS, ClearOS, Clover, Condres, Container Linux
|
||||
by CoreOS, CRUX, Crystal Linux, Cucumber, CutefishOS, CyberOS,
|
||||
dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS, Devuan, DracOS,
|
||||
DragonFly, Drauger, Elementary, Elive, EncryptOS, EndeavourOS,
|
||||
Endless, EuroLinux, Exherbo, Exodia Predator OS, Fedora, Feren,
|
||||
Finnix, FreeBSD, FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda,
|
||||
Gentoo, glaucus, gNewSense, GNOME, GNU, GoboLinux, GrapheneOS,
|
||||
Grombyang, Guix, Haiku, HarDClanZ, Hash, Huayra, HydroOS, Hyperbola,
|
||||
iglunix, instantOS, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE,
|
||||
Kibojoe, Kogaion, Korora, KrassOS, KSLinux, Kubuntu, LangitKetujuh,
|
||||
LaxerOS, LEDE, LibreELEC, Linspire, Linux, Linux Lite, Linux Mint,
|
||||
Linux Mint Old, Live Raizo, LMDE, Lubuntu, Lunar, mac, Mageia,
|
||||
MagpieOS, Mandriva, Manjaro, MassOS, MatuusOS, Maui, Mer, Minix,
|
||||
MIRACLE LINUX, MX, Namib, Neptune, NetBSD, Netrunner, Nitrux, NixOS,
|
||||
NomadBSD, Nurunner, NuTyX, Obarun, OBRevenge, Open Source Media
|
||||
Center, OpenBSD, openEuler, OpenIndiana, openmamba, OpenMandriva,
|
||||
OpenStage, openSUSE, openSUSE Leap, openSUSE Tumbleweed, OpenWrt,
|
||||
OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch,
|
||||
Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo,
|
||||
Peppermint, Pisi, PNM Linux, Pop!_OS, Porteus, PostMarketOS,
|
||||
Profelis SambaBOX, Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes,
|
||||
Qubyt, Quibian, Radix, Raspbian, Reborn OS, Red Star, Redcore,
|
||||
Redhat, Refracted Devuan, Regata, Regolith, rocky, Rosa, Sabayon,
|
||||
sabotage, Sailfish, SalentOS, Scientific, semc, Septor, Serene,
|
||||
SharkLinux, ShastraOS, Siduction, SkiffOS, Slackware, SliTaz,
|
||||
SmartOS, Soda, Solus, Source Mage, Sparky, Star, SteamOS, Sulin,
|
||||
SunOS, SwagArch, t2, Tails, TeArch, TorizonCore, Trisquel, Twister,
|
||||
Ubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE,
|
||||
Ubuntu Studio, Ubuntu Sway, Ubuntu Touch, Ubuntu\-GNOME,
|
||||
ubuntu_old02, Ultramarine Linux, Univalent, Univention, Uos, uwuntu,
|
||||
Venom, VNux, Void, VzLinux, wii\-linux\-ngx, Windows, Windows 10,
|
||||
Windows 11, XFerience, Xubuntu, yiffOS, Zorin have ascii logos.
|
||||
.TP
|
||||
NOTE: Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu\-GNOME,
|
||||
Ubuntu\-Studio, Ubuntu\-Mate or Ubuntu\-Budgie to use the flavors.
|
||||
NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu
|
||||
have 'old' logo variants, use {distro}_old to use them.
|
||||
.TP
|
||||
NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
|
||||
CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
|
||||
Artix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
|
||||
Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
|
||||
Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
|
||||
postmarketOS, and Void have a smaller logo variant.
|
||||
.IP
|
||||
NOTE: Use '{distro name}_small' to use the small variants.
|
||||
NOTE: alpine, android, aoscosretro, arch, arcolinux, artix,
|
||||
CalinixOS, centos, cleanjaro, crux, debian, dragonfly, elementary,
|
||||
fedora, freebsd, gentoo, guix, haiku, hyperbola, linuxlite,
|
||||
linuxmint, mac, mageia, manjaro, mx, netbsd, nixos, openbsd,
|
||||
opensuse, orchid, parabola, popos, postmarketos, pureos, Raspbian,
|
||||
rocky, slackware, sunos, ubuntu, void have 'small' logo variants,
|
||||
use {distro}_small to use them.
|
||||
.TP
|
||||
\fB\-\-ascii_bold\fR on/off
|
||||
Whether or not to bold the ascii logo.
|
||||
@@ -429,3 +432,15 @@ Display a verbose log for error reporting.
|
||||
Generate a manpage for Neofetch in your PWD. (Requires GNU help2man)
|
||||
.SH "REPORTING BUGS"
|
||||
Report bugs to https://github.com/dylanaraps/neofetch/issues
|
||||
.SH "SEE ALSO"
|
||||
The full documentation for
|
||||
.B Neofetch
|
||||
is maintained as a Texinfo manual. If the
|
||||
.B info
|
||||
and
|
||||
.B Neofetch
|
||||
programs are properly installed at your site, the command
|
||||
.IP
|
||||
.B info Neofetch
|
||||
.PP
|
||||
should give you access to the complete manual.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "neowofetch",
|
||||
"version": "1.2.0",
|
||||
"version": "1.4.0",
|
||||
"description": "Updated neofetch",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Executable
+97
@@ -0,0 +1,97 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import os
|
||||
import shlex
|
||||
from subprocess import check_output
|
||||
|
||||
import pyperclip
|
||||
import requests
|
||||
from github import Github
|
||||
|
||||
upstream = 'dylanaraps/neofetch'
|
||||
my_fork = 'hykilpikonna/hyfetch'
|
||||
my_base = 'master'
|
||||
|
||||
|
||||
def copy_comment():
|
||||
# Get commit SHA
|
||||
sha = check_output(shlex.split('git rev-parse --short HEAD')).decode().strip()
|
||||
|
||||
# Copy comment to clipboard
|
||||
comment = f"""
|
||||
Thank you for your contribution!
|
||||
|
||||
This PR is [merged into hyfetch](https://github.com/hykilpikonna/hyfetch/commit/{sha}) since this repo (dylanaraps/neofetch) seems no longer maintained.
|
||||
|
||||
[HyFetch](https://github.com/hykilpikonna/hyfetch) is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
|
||||
|
||||
Read the ["Running Updated Original Neofetch" section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch) for more info!
|
||||
"""
|
||||
pyperclip.copy(comment.strip())
|
||||
print()
|
||||
print('Done!')
|
||||
print('Comment response copied to clipboard.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Helper for accepting upstream pull requests')
|
||||
parser.add_argument('pull', type=int, help='Pull request number')
|
||||
args = parser.parse_args()
|
||||
pr = args.pull
|
||||
|
||||
print(f'Accepting pull request {pr}...')
|
||||
|
||||
# Fetch original pr's information
|
||||
info = requests.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}').json()
|
||||
user = info['user']['login']
|
||||
|
||||
# Fetch commit information
|
||||
commits = requests.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}/commits').json()
|
||||
author = commits[0]['commit']['author']
|
||||
|
||||
# Create commit message
|
||||
title = info["title"].replace('"', '\\"')
|
||||
msg = (f'-m "[PR] {upstream}#{pr} from {user} - {title}" '
|
||||
f'-m "Upstream PR: https://github.com/{upstream}/pull/{pr} \n'
|
||||
f'Thanks to @{user}\n\n'
|
||||
f'Co-authored-by: {author["name"]} <{author["email"]}>"')
|
||||
|
||||
# head could be null, if the pr repo is deleted
|
||||
if info['head'] is None or info['head']['repo'] is None:
|
||||
print(f'Original repo is deleted. Please manually merge.')
|
||||
input('Press any key to continue when the changes are made...')
|
||||
|
||||
# Commit with merge
|
||||
print()
|
||||
print('Committing merge...')
|
||||
os.system(f'git commit -a {msg}')
|
||||
|
||||
# Automatically merge
|
||||
else:
|
||||
head = info['head']['repo']['full_name']
|
||||
head_br = info['head']['ref']
|
||||
head_lbl = info['head']['label']
|
||||
print()
|
||||
print('Original Pull Request Info:')
|
||||
print('> State:', info['state'])
|
||||
print('> Title:', info['title'])
|
||||
print('> User:', user)
|
||||
print('> Created:', info['created_at'])
|
||||
print('> Head:', head, head_br, head_lbl)
|
||||
|
||||
# Fetch head branch
|
||||
print()
|
||||
print('Fetching head branch...')
|
||||
os.system(f'git fetch https://github.com/{head} {head_br}')
|
||||
|
||||
# Merge head branch
|
||||
print()
|
||||
print('Merging fetch_head...')
|
||||
os.system(f'git merge FETCH_HEAD --no-ff --no-edit {msg}')
|
||||
|
||||
# Push
|
||||
print()
|
||||
print('Pushing...')
|
||||
os.system('git push')
|
||||
|
||||
copy_comment()
|
||||
Regular → Executable
Executable
+111
@@ -0,0 +1,111 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
List distributions supported by neofetch
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import string
|
||||
import textwrap
|
||||
from dataclasses import dataclass
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
import regex
|
||||
|
||||
RE_SPLIT = regex.compile('EOF[ \n]*?;;')
|
||||
RE_COLORS = regex.compile("""(?<=set_colors )[a-z\\d ]+(?=\n)""")
|
||||
|
||||
|
||||
@dataclass
|
||||
class AsciiArt:
|
||||
match: str
|
||||
color: str
|
||||
ascii: str
|
||||
|
||||
def get_friendly_name(self) -> str:
|
||||
return self.match.split("|")[0].strip(string.punctuation + '* ')\
|
||||
.replace('"', '').replace('*', '')
|
||||
|
||||
|
||||
def substr(s: str, start: str, end: str | None = None):
|
||||
"""
|
||||
Get substring between start and end
|
||||
"""
|
||||
start = s.index(start) + len(start)
|
||||
|
||||
if end is None:
|
||||
return s[start:]
|
||||
|
||||
return s[start:s.index(end, start)]
|
||||
|
||||
|
||||
def parse_ascii_distros() -> list[AsciiArt]:
|
||||
"""
|
||||
Parse ascii distros from neofetch script
|
||||
"""
|
||||
nf = (Path(__file__).parent.parent / 'neofetch').read_text()
|
||||
|
||||
# Get the content of "get_distro_ascii" function
|
||||
nf = nf[nf.index('get_distro_ascii() {\n'):]
|
||||
nf = nf[:nf.index('\n}\n')]
|
||||
|
||||
# Remove trailing spaces
|
||||
while ' \n' in nf:
|
||||
nf = nf.replace(' \n', '\n')
|
||||
|
||||
# Split by blocks
|
||||
blocks = [sub.strip() for b in regex.split('case .*? in\n', nf) for sub in RE_SPLIT.split(b)]
|
||||
|
||||
# Parse blocks
|
||||
def parse_block(block: str) -> AsciiArt:
|
||||
try:
|
||||
# Get ascii art
|
||||
assert "'EOF'\n" in block
|
||||
art = substr(block, "'EOF'\n")
|
||||
|
||||
# Join \
|
||||
block = block.replace('\\\n', ' ')
|
||||
|
||||
# Get switch-case matching parameter
|
||||
match = block.split('\n')[0].strip()
|
||||
assert match.endswith(')')
|
||||
match = match[:-1]
|
||||
|
||||
# Get colors
|
||||
color = RE_COLORS.findall(block)[0]
|
||||
if len(color) == 0:
|
||||
raise Exception(block)
|
||||
|
||||
return AsciiArt(match, color, art)
|
||||
|
||||
except AssertionError:
|
||||
pass
|
||||
|
||||
out = [parse_block(block) for block in blocks]
|
||||
return [v for v in out if v]
|
||||
|
||||
|
||||
def wrap(text: str, max_len: int, leading: str):
|
||||
length = max_len - len(leading)
|
||||
lines = [line for raw in text.split('\n') for line in textwrap.wrap(raw, length) or ['']]
|
||||
return '\n'.join(leading + line if line else line for line in lines)
|
||||
|
||||
|
||||
def generate_help(max_len: int, leading: str):
|
||||
distros = sorted(list({a.get_friendly_name() for a in parse_ascii_distros()}), key=str.casefold)
|
||||
|
||||
smalls = [d.replace('_small', '') for d in distros if d.endswith('_small')]
|
||||
olds = [d.replace('_old', '') for d in distros if d.endswith('_old')]
|
||||
distros = [d for d in distros if not d.endswith('_small') and not d.endswith('_old')]
|
||||
|
||||
out = f"NOTE: {', '.join(distros)} have ascii logos.\n\n"\
|
||||
f"NOTE: {', '.join(olds)} have 'old' logo variants, use {{distro}}_old to use them.\n\n" \
|
||||
f"NOTE: {', '.join(smalls)} have 'small' logo variants, use {{distro}}_small to use them."
|
||||
|
||||
return wrap(out, max_len, leading)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(generate_help(100, ' ' * 32))
|
||||
print(generate_help(100, '# '))
|
||||
Executable
+70
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env python3
|
||||
import math
|
||||
import os
|
||||
import shlex
|
||||
from collections import Counter
|
||||
from pathlib import Path
|
||||
from subprocess import check_output
|
||||
|
||||
from github import Github
|
||||
from github.PullRequest import PullRequest
|
||||
import ruamel.yaml as yaml
|
||||
from hypy_utils.tqdm_utils import tq, pmap, tmap
|
||||
|
||||
|
||||
def obtain_resolved():
|
||||
"""
|
||||
Obtain a list of resolved issues.
|
||||
"""
|
||||
prefix = 'dylanaraps/neofetch#'
|
||||
commits = check_output(shlex.split('git log --pretty=format:"%s"')).decode().strip().split('\n')
|
||||
commits = [(c, c.find(prefix)) for c in commits]
|
||||
commits = [(c, i+len(prefix)) for c, i in commits if i != -1]
|
||||
return sorted([int(c[i:c.find(' ', i)]) for c, i in commits])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Obtain a list of resolved issues
|
||||
resolved = set(obtain_resolved())
|
||||
|
||||
# Read the ignore-list
|
||||
with open(Path(__file__).parent / "pull_request_markings.yaml") as stream:
|
||||
ignore_list: dict[int, str] = yaml.safe_load(stream)['IgnoreList']
|
||||
ignore_list.update({r: 'merged' for r in resolved})
|
||||
|
||||
# Obtain a list of open issues
|
||||
g = Github(per_page=100, login_or_token=os.environ.get('GH_TOKEN'))
|
||||
repo = g.get_repo('dylanaraps/neofetch')
|
||||
pager = repo.get_pulls(state='all')
|
||||
|
||||
# Filter only unresolved issues
|
||||
pages = list(range(math.ceil(pager.totalCount // 100) + 1))
|
||||
pulls: list[list[PullRequest]] = tmap(pager.get_page, pages, desc='Crawling pull requests...', unit='page')
|
||||
pulls: set[PullRequest] = {p for lst in pulls for p in lst}
|
||||
unresolved: set[PullRequest] = {p for p in pulls if p.number not in resolved and p.number not in ignore_list}
|
||||
|
||||
# Filter merged / closed
|
||||
draft = {p for p in unresolved if p.draft}
|
||||
unresolved -= draft
|
||||
merged = {p for p in unresolved if p.merged_at}
|
||||
unresolved -= merged
|
||||
closed = {p for p in unresolved if p.state == 'closed'}
|
||||
unresolved -= closed
|
||||
|
||||
ignore_counter = Counter(ignore_list.values())
|
||||
hyfetch_merged = ignore_counter.pop('merged')
|
||||
print(f'Pull Request Statistics:')
|
||||
print(f'> {hyfetch_merged} PRs merged by HyFetch')
|
||||
print('\n'.join(f'> {c} PRs closed as {v} by HyFetch' for v, c in sorted(ignore_counter.items(), key=lambda x: -x[1])))
|
||||
print()
|
||||
print(f'> {len(draft)} PR drafts')
|
||||
print(f'> {len(merged)} PRs merged by neofetch')
|
||||
print(f'> {len(closed)} PRs closed without merging')
|
||||
print()
|
||||
print(f'> {len(unresolved)} open PRs that needs to be addressed:')
|
||||
print()
|
||||
|
||||
opened = sorted(list(unresolved), key=lambda p: p.number)
|
||||
|
||||
# Print unresolved issues
|
||||
print('\n'.join(f'[{p.number}] {p.title} {p.html_url}' for p in opened))
|
||||
@@ -0,0 +1,59 @@
|
||||
# Pull request that I don't plan on merging, or already merged pull request that the script didn't
|
||||
# detect.
|
||||
IgnoreList:
|
||||
# [2154] Added Support for Uwuntu
|
||||
2154: merged
|
||||
# [2156] Update neofetch (for macOS 13)
|
||||
2156: duplicate
|
||||
# [2152] created much cleaner void ascii art
|
||||
2152: merged
|
||||
# [2150] Add macOS 13 to version name list
|
||||
2150: merged
|
||||
# [2113] Updated Ubuntu logo
|
||||
2113: duplicate
|
||||
# [2104] Make DE Fluent on Windows 11
|
||||
2104: duplicate
|
||||
# [2092] Update neofetch
|
||||
2092: troll
|
||||
# [2081] added a q4os ascii
|
||||
2081: duplicate
|
||||
# [2078] Fixed distro detection on CentOS 6
|
||||
2078: incorrect
|
||||
# [2057] add AmogOS (Duplicate of 1904)
|
||||
2057: duplicate
|
||||
# [2051] Typo in comment for col_offset
|
||||
2051: incorrect
|
||||
# [1996] set_text_color: fix color code for multi-digit ones
|
||||
1996: duplicate
|
||||
# [1940] Added code to display battery percentage and resolution in termux on android devices
|
||||
1940: bad
|
||||
# [1936] Added PiluX logo.
|
||||
1936: deleted
|
||||
# [1927] improve/add model name for arm linux cpus
|
||||
1927: duplicate
|
||||
# [1925] New OS added: CBL-Mariner
|
||||
1925: duplicate
|
||||
# [1922] Added BugTrack asciiart
|
||||
1922: bad
|
||||
# [1897] Change source_mage's colors.
|
||||
1897: deleted
|
||||
# [1889] Fix Windows 11 detection
|
||||
1889: duplicate
|
||||
# [1861] Added FriendlyOS
|
||||
1861: bad
|
||||
# [1857] Speed up `get_packages`
|
||||
1857: bad
|
||||
# [1852] Added Aravalli Logo
|
||||
1852: deleted
|
||||
# [1850] neofetch: remove duplicate distro ASCII logo
|
||||
1850: duplicate
|
||||
# [1830] Replace non-posix use of 'hostname' command with 'uname -n'
|
||||
1830: deleted
|
||||
# [1827] Improve manjaro logo
|
||||
1827: deleted
|
||||
# [1700] Added Xeonix by Xinux Uzbekistan support
|
||||
1700: deleted
|
||||
# [1585] Fix for Improvement idea for multiprocessor systems, current output is unclear
|
||||
1585: incorrect
|
||||
# [1031] Use nvidia-smi for NVIDIA GPUs
|
||||
1031: incorrect
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
This script turns readme shorthand pull request references (i.e. dylanaraps/neofetch#1946) into full
|
||||
GitHub pull request links.
|
||||
"""
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
RE_SHORTHAND = re.compile(r"""[a-z0-9]+?/[a-z0-9]+?#[0-9]+""")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
readme = Path('README.md').read_text()
|
||||
|
||||
for shorthand in RE_SHORTHAND.findall(readme):
|
||||
user, pull = shorthand.split('/')
|
||||
repo, pull = pull.split('#')
|
||||
readme = readme.replace(shorthand, f'[{user}#{pull}](https://github.com/{user}/{repo}/pull/{pull})')
|
||||
|
||||
Path('README.md').write_text(readme)
|
||||
Reference in New Issue
Block a user