Compare commits
167 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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 | |||
| 6078e70cd8 | |||
| 9d1251bcf1 | |||
| e4fecc6733 | |||
| a6ac4b4117 | |||
| 23a94fd389 | |||
| 276d02440a | |||
| 34ac93d6c3 | |||
| 4efe946bfd | |||
| 54300031f9 | |||
| e95c8ebe5f | |||
| 89e716160d | |||
| 25d63b6494 | |||
| 7c40c7c1de | |||
| fa90bac6b2 | |||
| 20a0584264 | |||
| 4fa3aef4d6 | |||
| 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 | |||
| b35ca2c919 | |||
| 30b2887d58 | |||
| 8231693c0f | |||
| 6cddcd3f74 | |||
| f964e1d62b | |||
| bc2a8e60db | |||
| fcae0110e4 | |||
| f3078a7cd4 | |||
| 58d96e21d4 | |||
| 0e4f5e5541 | |||
| 3c961e38bf | |||
| 2bbc06a27f | |||
| 49725192b4 | |||
| c4630ee215 | |||
| da1970edd5 | |||
| 4e479dcdbb | |||
| 4705f50bfc | |||
| 533e5d86d8 | |||
| 6dec6c756d | |||
| 978314980d | |||
| f58ba59b0b | |||
| e719ccbcae | |||
| c7fcbd9c32 | |||
| b611400e3b | |||
| 86021d96c7 | |||
| 0df597d38c | |||
| 8480ef541a | |||
| d2637a3588 | |||
| 815b755e48 | |||
| 088f48b9e9 | |||
| ec15b100e1 | |||
| faa7b14bfa | |||
| 8e27e79b93 | |||
| cddaff7299 | |||
| 2c3841012e | |||
| 413c32e55d | |||
| d5e232d4f0 | |||
| 2131948855 | |||
| 3643275e44 | |||
| b0877d4874 |
@@ -115,3 +115,4 @@ dmypy.json
|
|||||||
|
|
||||||
# Custom
|
# Custom
|
||||||
.idea
|
.idea
|
||||||
|
._*
|
||||||
@@ -2,17 +2,15 @@
|
|||||||
|
|
||||||
neofetch with pride flags <3
|
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
|
### 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:
|
* Method 1: `pip install hyfetch` then run `neowofetch`
|
||||||
|
* Method 2: `npx neowofetch`
|
||||||
```sh
|
* Method 3: `bash <(curl -sL neowofetch.hydev.org)`
|
||||||
bash <(curl -s "https://raw.githubusercontent.com/Hykilpikonna/HyFetch/HEAD/neofetch")
|
|
||||||
```
|
|
||||||
|
|
||||||
## Installation
|
## 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!
|
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?
|
#### Q: How do I change my config?
|
||||||
|
|
||||||
A: Use `hyfetch -c`
|
A: Use `hyfetch -c`
|
||||||
@@ -60,56 +60,126 @@ Updates to `neowofetch` begins with the emoji 🖼️
|
|||||||
* [ ] Paginate flags
|
* [ ] Paginate flags
|
||||||
* [ ] Implement light/dark background detection based on https://github.com/muesli/termenv
|
* [ ] Implement light/dark background detection based on https://github.com/muesli/termenv
|
||||||
|
|
||||||
|
### 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
|
### 1.2.0
|
||||||
|
|
||||||
* 🚀 Take over `neofetch` with `neowofetch`
|
* 🚀 Take over `neofetch` with `neowofetch`
|
||||||
|
|
||||||
<details>
|
<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 - 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 - 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>
|
||||||
|
|
||||||
<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 - Identify macOS 13 Ventura ([#8](https://github.com/hykilpikonna/hyfetch/pull/8))
|
||||||
* OS - Windows 11 Fluent (dylanaraps/neofetch#2109)
|
* OS - Windows 11 Fluent ([dylanaraps#2109](https://github.com/dylanaraps/neofetch/pull/2109))
|
||||||
* Distro - Add Asahi Linux (dylanaraps/neofetch#2079)
|
* Distro - Add Asahi Linux ([dylanaraps#2079](https://github.com/dylanaraps/neofetch/pull/2079))
|
||||||
* Distro - Add CenterOS (dylanaraps/neofetch#2097)
|
* Distro - Add CenterOS ([dylanaraps#2097](https://github.com/dylanaraps/neofetch/pull/2097))
|
||||||
* Distro - Add Finnix (dylanaraps/neofetch#2099)
|
* Distro - Add Finnix ([dylanaraps#2099](https://github.com/dylanaraps/neofetch/pull/2099))
|
||||||
* Distro - Add Miracle Linux (dylanaraps/neofetch#2085)
|
* Distro - Add Miracle Linux ([dylanaraps#2085](https://github.com/dylanaraps/neofetch/pull/2085))
|
||||||
* Distro - Add Univalent (dylanaraps/neofetch#2162)
|
* Distro - Add Univalent ([dylanaraps#2162](https://github.com/dylanaraps/neofetch/pull/2162))
|
||||||
* Distro - Add NomadBSD (dylanaraps/neofetch#2147)
|
* Distro - Add NomadBSD ([dylanaraps#2147](https://github.com/dylanaraps/neofetch/pull/2147))
|
||||||
* Distro - Add GrapheneOS (dylanaraps/neofetch#2146)
|
* Distro - Add GrapheneOS ([dylanaraps#2146](https://github.com/dylanaraps/neofetch/pull/2146))
|
||||||
* Distro - Add ShastraOS (dylanaraps/neofetch#2149)
|
* Distro - Add ShastraOS ([dylanaraps#2149](https://github.com/dylanaraps/neofetch/pull/2149))
|
||||||
* Distro - Add Ubuntu Touch (dylanaraps/neofetch#2167)
|
* Distro - Add Ubuntu Touch ([dylanaraps#2167](https://github.com/dylanaraps/neofetch/pull/2167))
|
||||||
* Distro - Add Ubuntu Sway (dylanaraps/neofetch#2136)
|
* Distro - Add Ubuntu Sway ([dylanaraps#2136](https://github.com/dylanaraps/neofetch/pull/2136))
|
||||||
* Distro - Add Orchid Linux (dylanaraps/neofetch#2144)
|
* Distro - Add Orchid Linux ([dylanaraps#2144](https://github.com/dylanaraps/neofetch/pull/2144))
|
||||||
* Distro - Add AOSC OS/Retro (dylanaraps/neofetch#2124)
|
* Distro - Add AOSC OS/Retro ([dylanaraps#2124](https://github.com/dylanaraps/neofetch/pull/2124))
|
||||||
* Distro - Add Ultramarine Linux (dylanaraps/neofetch#2115)
|
* Distro - Add Ultramarine Linux ([dylanaraps#2115](https://github.com/dylanaraps/neofetch/pull/2115))
|
||||||
* Distro - Improve NixOS version detection (dylanaraps/neofetch#2157)
|
* Distro - Improve NixOS version detection ([dylanaraps#2157](https://github.com/dylanaraps/neofetch/pull/2157))
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>🖼️ Device Support Changes</summary><br>
|
<summary>🖼️ Device/Program Support Changes</summary>
|
||||||
|
|
||||||
* Terminal - Add Termux (dylanaraps/neofetch#2168)
|
* Terminal - Add Termux ([dylanaraps#1923](https://github.com/dylanaraps/neofetch/pull/1923))
|
||||||
* CPU - Add loongarch64 (dylanaraps/neofetch#2140)
|
* CPU - Add loongarch64 ([dylanaraps#2140](https://github.com/dylanaraps/neofetch/pull/2140))
|
||||||
* CPU - Identify CPU name for ARM / RISCV (dylanaraps/neofetch#2139)
|
* CPU - Identify CPU name for ARM / RISCV ([dylanaraps#2139](https://github.com/dylanaraps/neofetch/pull/2139))
|
||||||
* Battery - Fix file not found (dylanaraps/neofetch#2130)
|
* Battery - Fix file not found ([dylanaraps#2130](https://github.com/dylanaraps/neofetch/pull/2130))
|
||||||
* GPU - Identify open-kernal Nvidia driver version (dylanaraps/neofetch#2128)
|
* GPU - Identify open-kernal Nvidia driver version ([dylanaraps#2128](https://github.com/dylanaraps/neofetch/pull/2128))
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<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>
|
</details>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
from typing_extensions import Literal
|
from typing_extensions import Literal
|
||||||
|
|
||||||
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
||||||
VERSION = '1.2.0'
|
VERSION = '1.3.0'
|
||||||
|
|
||||||
# Obtain terminal size
|
# Obtain terminal size
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -70,7 +70,9 @@ 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.
|
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.
|
[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())
|
pyperclip.copy(comment.strip())
|
||||||
print()
|
print()
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
import shlex
|
||||||
|
from pathlib import Path
|
||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
from github import Github
|
||||||
|
from github.PullRequest import PullRequest
|
||||||
|
import ruamel.yaml as yaml
|
||||||
|
|
||||||
|
|
||||||
|
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 = yaml.safe_load(stream)['IgnoreList']
|
||||||
|
|
||||||
|
# Obtain a list of open issues
|
||||||
|
g = Github(per_page=100)
|
||||||
|
repo = g.get_repo('dylanaraps/neofetch')
|
||||||
|
pager = repo.get_pulls(state='open')
|
||||||
|
|
||||||
|
# Filter only unresolved issues
|
||||||
|
unresolved: list[PullRequest] = []
|
||||||
|
for i in range(10000000):
|
||||||
|
pulls: list[PullRequest] = pager.get_page(i)
|
||||||
|
if len(pulls) == 0:
|
||||||
|
break
|
||||||
|
|
||||||
|
unresolved += [p for p in pulls if p.number not in resolved and p.number not in ignore_list and not p.draft]
|
||||||
|
if len(unresolved) > 50:
|
||||||
|
break
|
||||||
|
|
||||||
|
unresolved.sort(key=lambda p: p.number)
|
||||||
|
|
||||||
|
# Print unresolved issues
|
||||||
|
print('\n'.join(f'[{p.number}] {p.title} {p.html_url}' for p in unresolved))
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# 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
|
||||||
|
# [2104] Make DE Fluent on Windows 11
|
||||||
|
2104: duplicate
|
||||||
|
# [2092] Update neofetch
|
||||||
|
2092: troll
|
||||||
|
# [2081] added a q4os ascii
|
||||||
|
2081: duplicate
|
||||||
|
# [2057] add AmogOS (Duplicate of 1904)
|
||||||
|
2057: duplicate
|
||||||
|
# [2051] Typo in comment for col_offset
|
||||||
|
2051: incorrect
|
||||||
|
# [1936] Added PiluX logo.
|
||||||
|
1936: deleted
|
||||||
|
# [1927] improve/add model name for arm linux cpus
|
||||||
|
1927: duplicate
|
||||||
|
# [1850] neofetch: remove duplicate distro ASCII logo
|
||||||
|
1850: duplicate
|
||||||
|
# [1827] Improve manjaro logo
|
||||||
|
1827: deleted
|
||||||
@@ -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)
|
||||||
+5
-5
@@ -304,14 +304,14 @@ Which Distro's ascii art to print
|
|||||||
NOTE: AIX, Hash, Alpine, AlterLinux, Amazon, Anarchy, Android, instantOS,
|
NOTE: AIX, Hash, Alpine, AlterLinux, Amazon, Anarchy, Android, instantOS,
|
||||||
Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft,
|
Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft,
|
||||||
ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch,
|
ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch,
|
||||||
Artix, Arya, Bedrock, Bitrig, BlackArch, BLAG, BlankOn, BlueLight,
|
Artix, Arya, Bedrock, BigLinux, Bitrig, BlackArch, BLAG, BlankOn, BlueLight,
|
||||||
bonsai, BSD, BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
bonsai, BSD, BunsenLabs, "Cachy OS", Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
||||||
Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres,
|
Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres,
|
||||||
Container_Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS,
|
Container_Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS,
|
||||||
Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary,
|
Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary,
|
||||||
EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, Finnix, FreeBSD,
|
EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, Finnix, FreeBSD,
|
||||||
FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
|
FreeMiNT, Frugalware, Funtoo, FusionX, GalliumOS, Garuda, Gentoo, Pentoo,
|
||||||
gNewSense, GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, Huayra,
|
Glaucus, gNewSense, GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, Huayra,
|
||||||
HydroOS, Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora,
|
HydroOS, Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora,
|
||||||
KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE,
|
KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE,
|
||||||
Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui,
|
Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui,
|
||||||
@@ -324,7 +324,7 @@ Proxmox, Puppy, PureOS, Qubes, Quibian, Radix, Raspbian, Reborn_OS,
|
|||||||
Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, Rosa,
|
Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, Rosa,
|
||||||
sabotage, Sabayon, Sailfish, SalentOS, ShastraOS, Scientific, Septor,
|
sabotage, Sabayon, Sailfish, SalentOS, ShastraOS, Scientific, Septor,
|
||||||
SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, SmartOS,
|
SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, SmartOS,
|
||||||
Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
|
Solus, Soda, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
|
||||||
t2, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
|
t2, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
|
||||||
Ubuntu\-Cinnamon, Ubuntu\-Budgie, Ubuntu\-GNOME, Ubuntu\-MATE,
|
Ubuntu\-Cinnamon, Ubuntu\-Budgie, Ubuntu\-GNOME, Ubuntu\-MATE,
|
||||||
Ubuntu\-Studio, Ubuntu, Univention, Venom, Void, VNux, semc, Obarun,
|
Ubuntu\-Studio, Ubuntu, Univention, Venom, Void, VNux, semc, Obarun,
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "neowofetch",
|
"name": "neowofetch",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"description": "Updated neofetch",
|
"description": "Updated neofetch",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user