Compare commits
339 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98a3befd4b | |||
| 09c62956a3 | |||
| 9945075de5 | |||
| 5f079cec46 | |||
| 97a31aba52 | |||
| 76f3ce2608 | |||
| 3a5ce4eb58 | |||
| 44c9a5491b | |||
| 2cbd8e440d | |||
| 4516747954 | |||
| 813b6f7173 | |||
| 937e5041c4 | |||
| f59f6f55d2 | |||
| 2ce3bb6a11 | |||
| a2fb43bfca | |||
| 9a5d8fb971 | |||
| 8ee497ad97 | |||
| 5072baf1cf | |||
| b407bc0ea4 | |||
| 78bcf1e5cc | |||
| e080924040 | |||
| c2f69d64f4 | |||
| 620bc2ca88 | |||
| ea61ca96b7 | |||
| 979e3950e9 | |||
| ce1423bfbd | |||
| f66b128caf | |||
| e63e2693c2 | |||
| 5e109afceb | |||
| 524baf9cf7 | |||
| deac271585 | |||
| b027dc4cb5 | |||
| 5b93e00b63 | |||
| d7e9ee8499 | |||
| 48da56a78e | |||
| a1e42b4f89 | |||
| 0f62374205 | |||
| 953001537f | |||
| 05bdef915a | |||
| 91ced42151 | |||
| 5d076fcea6 | |||
| ec8693322a | |||
| a6e184bd4a | |||
| d16806cb16 | |||
| bfcd8b1f67 | |||
| 81cdaa980c | |||
| 2af4aa9adc | |||
| ae4e484d65 | |||
| 1e736ae011 | |||
| f316b2b5cb | |||
| b87bb47502 | |||
| 797199dd05 | |||
| 42a275b27b | |||
| d267aaa90c | |||
| f06dea80fc | |||
| 1114fe53d4 | |||
| a214e65b08 | |||
| b24f6663ba | |||
| d91db75b4a | |||
| 294805f045 | |||
| 47dea65fa8 | |||
| 8e367e41a4 | |||
| 81134bbb34 | |||
| 0729e40e00 | |||
| 598731bf89 | |||
| afcf53f01f | |||
| c505323826 | |||
| 10b227a780 | |||
| a9d76846a9 | |||
| 73d305ac69 | |||
| d3577a8878 | |||
| 5519dd16a0 | |||
| 20e93689b6 | |||
| fca42c0390 | |||
| ce9c4aa432 | |||
| 3ebfcfd474 | |||
| d7c3475726 | |||
| 8d0393d654 | |||
| 54d82ff557 | |||
| fd96030436 | |||
| b1df896e44 | |||
| 4a053f942c | |||
| 025dff4c30 | |||
| c33c897724 | |||
| ff8f9b2879 | |||
| 6b84920587 | |||
| a5f2653675 | |||
| 5f527960e9 | |||
| d312ca97cc | |||
| c77a05809e | |||
| 74d1bb5622 | |||
| d9d9998d99 | |||
| a8f26f9e36 | |||
| 1e8fade4be | |||
| ace0245097 | |||
| 5122d08ff6 | |||
| 179fa567a3 | |||
| 1acfe273e8 | |||
| 1ff772a01b | |||
| 8182224dc7 | |||
| 57a28da23b | |||
| 4536dafa09 | |||
| c8185944dc | |||
| 4a90533097 | |||
| b353cb7247 | |||
| 4d9bbbae9c | |||
| edf2a697d9 | |||
| c7a516247a | |||
| 29cbbae974 | |||
| 98863df16d | |||
| 922a91ebb1 | |||
| e7938ea4c3 | |||
| 7491081946 | |||
| 14bde2e49b | |||
| 242eae6de0 | |||
| 53bbd3fdf8 | |||
| 5c785f0819 | |||
| 75750f12a5 | |||
| 73b39252df | |||
| b313d39366 | |||
| 116c83b513 | |||
| e33ccd3484 | |||
| 1e68f174cd | |||
| d164d4c8f6 | |||
| 445f97093a | |||
| e81f2aa6d7 | |||
| 53dec09f88 | |||
| 3d7dfc0220 | |||
| 62710fa00e | |||
| 63f37d28e3 | |||
| 8c4cbf656f | |||
| 526c97fde6 | |||
| 391ff75cd1 | |||
| df0c2be57a | |||
| 59ef6434d7 | |||
| 01821a8d7a | |||
| 65d82be06e | |||
| b5e9edfae7 | |||
| 98feca03f9 | |||
| 6167ba885b | |||
| ce2a49e9a0 | |||
| d025ece2c3 | |||
| c547ccb3c3 | |||
| 6251cb5e43 | |||
| ea42a29bbd | |||
| 0305e269e0 | |||
| cf17522d50 | |||
| 1bf2281912 | |||
| 4d39bd750f | |||
| 6db170e825 | |||
| 25df70367a | |||
| a9602f5619 | |||
| 2f69013177 | |||
| 434f5aeda8 | |||
| 988ca7993e | |||
| 1efafdfb81 | |||
| 75fd94fa61 | |||
| 08029959f3 | |||
| 9c59dc2791 | |||
| e9ae4dbb6f | |||
| 26453ea3d7 | |||
| 0385fd836d | |||
| cec8152f3d | |||
| 407387eb0b | |||
| 484f13fa39 | |||
| cf83073200 | |||
| 8e63a77335 | |||
| 05c60fddfd | |||
| 04a6744e6d | |||
| 68cf96e24a | |||
| 576facfd69 | |||
| bec385d02f | |||
| a32028755a | |||
| ebd6acd004 | |||
| 0694c10537 | |||
| 2dea4d54e0 | |||
| 5bbaf0a658 | |||
| 2f753325ae | |||
| 0d018248e5 | |||
| aa5bfe060c | |||
| 407fcd4987 | |||
| bf16e1cd47 | |||
| 9f808b99ab | |||
| dc778c3078 | |||
| 0634893733 | |||
| 0aa0a76151 | |||
| 511af9031c | |||
| db54e8990d | |||
| 673de9bb53 | |||
| 41d1446476 | |||
| 02b8e6bd5f | |||
| 356c83f057 | |||
| 38cf9502c5 | |||
| ae70359fca | |||
| ed377261a2 | |||
| a97d2805b1 | |||
| 7bfac43dd9 | |||
| 8bf694c7ba | |||
| 176f08ad0b | |||
| 2ce7a59a59 | |||
| 698afafa26 | |||
| 4b1546ccd6 | |||
| 6a023d4c91 | |||
| 40ea204223 | |||
| 31af137e97 | |||
| 914890b4b0 | |||
| 5ab2f2dcc5 | |||
| 01aed343a6 | |||
| 8389a1dee9 | |||
| a2cf60bc4c | |||
| 2577462649 | |||
| 3edca64629 | |||
| 2edf9c1304 | |||
| 50abc68f0d | |||
| 60b4b925d3 | |||
| 717b74c30b | |||
| 506f345a9d | |||
| 42d8b0d860 | |||
| cdae93479f | |||
| 82c949e5a1 | |||
| a8bcbfce09 | |||
| 43bea54532 | |||
| df11c756dd | |||
| 5f066e4ebf | |||
| ca3c887b61 | |||
| fac90ec5d3 | |||
| 4cb65c468c | |||
| 0693d6e316 | |||
| 2a312d0a7b | |||
| 8f628bb37b | |||
| 503251cbce | |||
| a37ee211f2 | |||
| 0ac2ffbba5 | |||
| dd950092a6 | |||
| bd8066407e | |||
| 6be684c26f | |||
| dba600cc89 | |||
| cdbf8a6b24 | |||
| a437957702 | |||
| bf5276bcc4 | |||
| 11f4242598 | |||
| dfe77dea5f | |||
| c47d80ae1d | |||
| 83ba569fde | |||
| 73fc473ae3 | |||
| 625f48168b | |||
| 9914ff2a55 | |||
| f20e80375a | |||
| b8ec68a943 | |||
| 1f7f76e078 | |||
| e288da8de2 | |||
| a72a49da13 | |||
| 24e1ed4617 | |||
| 01f65d91b5 | |||
| 953a09b686 | |||
| fe31b5bf34 | |||
| bf0c20b188 | |||
| c9ed3e1789 | |||
| 6d1359d8e9 | |||
| 219a7c48cc | |||
| 3b1e1385cc | |||
| c6453e2137 | |||
| 200c1a6d53 | |||
| 4225a0c453 | |||
| 4fe0890f21 | |||
| 857037fa37 | |||
| b7b2322346 | |||
| ac27543cd8 | |||
| c40cb09409 | |||
| 365abe2c80 | |||
| 2007c7c01e | |||
| 9747856f15 | |||
| 8104cd822a | |||
| 2d1abc8e30 | |||
| afb7092667 | |||
| 2cda9e9b2c | |||
| 4a16cfec9b | |||
| 9acc0c0719 | |||
| 1315d0b2a7 | |||
| 331deaf293 | |||
| 3a1ac3e25a | |||
| a6a17d102c | |||
| 9605e4036f | |||
| 088e0d484b | |||
| 9b7756c5ae | |||
| 5c22c75f72 | |||
| bac650c84a | |||
| cbe8906073 | |||
| faa1cca154 | |||
| 8ef39ffcbf | |||
| 6778fd42a5 | |||
| 4e5f51b2a2 | |||
| 1d49e6109c | |||
| 9777652dac | |||
| 659811a66e | |||
| 617227da75 | |||
| 8ffb8063ca | |||
| 9018dbb461 | |||
| 1d29563e81 | |||
| 0d06df3024 | |||
| 964f718766 | |||
| 673e20ff2b | |||
| b4a0131359 | |||
| 93ea451c34 | |||
| a813400807 | |||
| e970c8f672 | |||
| 573eb09f74 | |||
| 6192b47758 | |||
| 6771e8e7c1 | |||
| e8c9e30920 | |||
| 3b8cf64a5e | |||
| 7d1ec7109f | |||
| 5891522233 | |||
| d00a3c086d | |||
| 538646160d | |||
| 182f2aad15 | |||
| 8c5905c858 | |||
| 365ed5a91f | |||
| 859dd3eb83 | |||
| 5343182ea1 | |||
| 93639996bb | |||
| 5f39250003 | |||
| 08ecada71a | |||
| 4d6743b886 | |||
| dcff08340e | |||
| 44a4555bce | |||
| f855d0e244 | |||
| 04d5965d49 | |||
| 197e11ee5f | |||
| 58e60aea8e | |||
| d3ea2eeee2 | |||
| 2b4a35f12b | |||
| 469dd762f2 | |||
| 0033e31388 | |||
| c02d375d71 | |||
| d8bdffa1f1 | |||
| a3e93a03fc | |||
| 0329c2825f | |||
| 48acfaaebe |
@@ -1,20 +0,0 @@
|
||||
## Description
|
||||
|
||||
If you're suggesting a new feature then just a description will suffice.
|
||||
|
||||
- [ ] Does this issue still occur in the master branch? (**Required if issue**)
|
||||
|
||||
|
||||
#### Neofetch version
|
||||
|
||||
## Screenshot
|
||||
|
||||
## Config file
|
||||
|
||||
## Verbose log
|
||||
|
||||
1. Run `neofetch -vv 2> neofetchlog`
|
||||
2. Upload the contents of `neofetchlog` to pastebin, gist or equivalent.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Content Request
|
||||
about: Suggest supporting new flags, distros, package managers, etc.
|
||||
title: ''
|
||||
labels: 'content-request'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
### Describe the content
|
||||
Describe the content you would like to see added to HyFetch.
|
||||
|
||||
### Links
|
||||
Please include relevant links to the content.
|
||||
|
||||
e.g. For distros, include a link to the distro's official website, download link, or development repository.
|
||||
|
||||
### Additional context
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature Request
|
||||
about: Suggest a new idea for this project
|
||||
title: ''
|
||||
labels: 'feature-request'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: HyFetch Bug Report
|
||||
about: Create a report for coloring related bugs.
|
||||
title: ''
|
||||
labels: 'hyfetch'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
### Describe the bug
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
- [ ] Does this issue still occur in the master branch? (**Required**)
|
||||
|
||||
### Expected behavior
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
### Screenshots
|
||||
Please include a screenshot of your system information if the specific system environment is relevant to the bug.
|
||||
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
### Config file
|
||||
|
||||
Please paste the content of `~/.config/hyfetch.json` below:
|
||||
|
||||
```json
|
||||
"(here)"
|
||||
```
|
||||
|
||||
### Additional context
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Neofetch Bug Report
|
||||
about: Create a report for system-information related bugs.
|
||||
title: ''
|
||||
labels: 'neofetch'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
### Describe the bug
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
- [ ] Does this issue still occur in the master branch? (**Required**)
|
||||
|
||||
### Expected behavior
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
### Screenshots
|
||||
Please include a screenshot of your system information if the specific system environment is relevant to the bug.
|
||||
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
### Config file
|
||||
1. Run `cp ~/.config/neofetch/config.conf conf.txt`
|
||||
2. Drag `conf.txt` here to upload it.
|
||||
|
||||
### Verbose log
|
||||
1. Run `neofetch -vv 2> neofetch.log`
|
||||
2. Drag `neofetch.log` here to upload it.
|
||||
|
||||
### Additional context
|
||||
Add any other context about the problem here.
|
||||
@@ -1,10 +1,18 @@
|
||||
## Description
|
||||
|
||||
Only fill in the fields below if relevant.
|
||||
<!-- Thank you so much for contributing! ❤️ -->
|
||||
|
||||
### Description
|
||||
Describe the goals that the pull request accomplishes.
|
||||
|
||||
## Features
|
||||
### Relevant Links
|
||||
If there are related issues, please link them here.
|
||||
|
||||
## Issues
|
||||
Please also include links relevant to the changes.
|
||||
|
||||
## TODO
|
||||
e.g. For new distros, include a link to the distro's official website, download link, or development repository.
|
||||
|
||||
### Screenshots
|
||||
If applicable, please include screenshots before and after your changes.
|
||||
|
||||
### Additional context
|
||||
Add any other context about the problem or changes here.
|
||||
|
||||
+5
-1
@@ -115,4 +115,8 @@ dmypy.json
|
||||
|
||||
# Custom
|
||||
.idea
|
||||
._*
|
||||
._*
|
||||
webhook-log
|
||||
start_moderation.sh
|
||||
gh_moderator.toml
|
||||
moderator-data
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
include hyfetch/scripts/*
|
||||
|
||||
recursive-exclude tools *
|
||||
recursive-exclude .github *
|
||||
recursive-exclude .vscode *
|
||||
exclude .gitignore
|
||||
exclude .gitattributes
|
||||
exclude package.json
|
||||
exclude CONTRIBUTING.md
|
||||
@@ -1,16 +1,35 @@
|
||||
PREFIX = /usr
|
||||
MANDIR = $(PREFIX)/share/man
|
||||
|
||||
all:
|
||||
@echo Run \'make install\' to install Neofetch.
|
||||
all: build
|
||||
|
||||
build:
|
||||
python setup.py build
|
||||
|
||||
install:
|
||||
python setup.py install --prefix=${PREFIX}
|
||||
|
||||
install-doc:
|
||||
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
||||
@cp -p docs/hyfetch.1 $(DESTDIR)$(MANDIR)/man1
|
||||
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1/neowofetch.1
|
||||
|
||||
uninstall:
|
||||
@rm -rf $(DESTDIR)$(PREFIX)/bin/hyfetch
|
||||
@rm -rf $(DESTDIR)$(PREFIX)/bin/neowofetch
|
||||
@rm -rf $(DESTDIR)$(MANDIR)/man1/hyfetch.1*
|
||||
@rm -rf $(DESTDIR)$(MANDIR)/man1/neowofetch.1*
|
||||
|
||||
clean:
|
||||
rm -rf build/ HyFetch.egg-info
|
||||
|
||||
install-neofetch:
|
||||
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
||||
@cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
@cp -p neofetch.1 $(DESTDIR)$(MANDIR)/man1
|
||||
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1
|
||||
@chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
|
||||
uninstall:
|
||||
uninstall-neofetch:
|
||||
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
@rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1*
|
||||
|
||||
@@ -6,9 +6,9 @@ neofetch with pride flags <3
|
||||
|
||||
### 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 use the `neofetch` script from this repo. To prevent command name conflict, I call it `neowofetch` :)
|
||||
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 Oct 27, 2023, the original repo hasn't merged a pull request for almost 2 years). 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` :)
|
||||
|
||||
* Method 1: `pip install hyfetch` then run `neowofetch`
|
||||
* Method 1: `pip install -U hyfetch` then run `neowofetch`
|
||||
* Method 2: `npx neowofetch`
|
||||
* Method 3: `P="$HOME/.local/bin/neowofetch" curl -L nf.hydev.org -o $P && chmod +x $P`
|
||||
* Method 4: Run without install `bash <(curl -sL nf.hydev.org)`
|
||||
@@ -21,16 +21,26 @@ This repo also serves as an updated version of the original `neofetch` since the
|
||||
Install Python >= 3.7 first. Then, just do:
|
||||
|
||||
```sh
|
||||
pip install hyfetch
|
||||
pip install -U hyfetch
|
||||
# or
|
||||
pipx install hyfetch
|
||||
```
|
||||
|
||||
### Method 2: Install using system package manager
|
||||
|
||||
Currently, these distributions have existing packages for HyFetch:
|
||||
|
||||
* Arch Linux: `paru -S hyfetch` or `yay -S hyfetch` (Thanks to [@Aleksana](https://github.com/Aleksanaa))
|
||||
* Universal [Lure.sh](https://lure.sh/): `lure in hyfetch` (Thanks to [@Elara6331](https://github.com/Elara6331))
|
||||
* Arch Linux: `sudo pacman -S hyfetch` (Thanks to [@Aleksana](https://github.com/Aleksanaa) and [@Antiz96](https://github.com/Antiz96))
|
||||
* Nix: `nix-env -i hyfetch` (Thanks to [@YisuiDenghua](https://github.com/YisuiDenghua))
|
||||
* Nix Profile: `nix profile install nixpkgs#hyfetch`
|
||||
* Guix: `guix install hyfetch` (Thanks to [@WammKD](https://github.com/WammKD))
|
||||
* Slackware: `sbopkg -b hyfetch` [Slackbuild](https://slackbuilds.org/repository/15.0/desktop/hyfetch/?search=hyfetch) (Thanks to [@bittin](https://github.com/bittin) and Urchlay)
|
||||
* Homebrew: `brew install hyfetch` (Thanks to [@BKasin](https://github.com/BKasin) and [@osalbahr](https://github.com/osalbahr))
|
||||
* openSUSE Tumbleweed: `zypper in python311-hyfetch` (Thanks to [@BKasin](https://github.com/BKasin))
|
||||
* Gentoo: `emerge --ask app-misc/hyfetch` (Thanks to [@BKasin](https://github.com/BKasin))
|
||||
|
||||
[](https://repology.org/project/hyfetch/versions)
|
||||
|
||||
### Method 3: Install the latest developmental version using git
|
||||
|
||||
@@ -64,6 +74,16 @@ Feel free to experiment with it!
|
||||
|
||||

|
||||
|
||||
#### Q: Why do you use pride flag's coloring? I don't think it looks nice at all.
|
||||
|
||||
A: The core idea behind HyFetch coloring isn't just to make logos look nicer, it's about representation and identity. While it's okay to assess the visual appeal, you also need to understand that the LGBTQ+ flag colors serves a much deeper purpose than just aesthetics.
|
||||
|
||||
For many in the LGBTQ+ community, these flags symbolize their identity, struggles, and pride. Integrating these symbols into a showcase of the tech specs they share can provide a sense of empowerment. It's combining their enthusiasm for their favorite distro / hardware with their LGBTQ+ identity.
|
||||
|
||||
Also, by including flag coloring along with the updated neofetch, we're also broadcasting a wider message about the importance of inclusivity and representation. It's not just a design choice, it's a statement that promotes awareness and understanding toward the LGBTQ+ community.
|
||||
|
||||
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
@@ -87,7 +107,6 @@ Updates to `neowofetch` begins with the emoji 🖼️
|
||||
|
||||
* [ ] (Important!) Refactor flag storage & coloring to support non-stride patterns
|
||||
* [ ] Config menu: Allow left-right arrow keys for pagination
|
||||
* [ ] Neofetch argument pass through
|
||||
|
||||
### Nightly
|
||||
|
||||
@@ -99,39 +118,153 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
||||
|
||||
<!-- CHANGELOG STARTS HERE --->
|
||||
|
||||
### 1.4.11
|
||||
* 🌈 Add ability to set backend args in hyfetch config file ([#181](https://github.com/hykilpikonna/hyfetch/pull/181))
|
||||
* 🌈 Update makefile to be able to install hyfetch ([#174](https://github.com/hykilpikonna/hyfetch/pull/174))
|
||||
* 🌈 Fix config file argument ([#177](https://github.com/hykilpikonna/hyfetch/pull/177))
|
||||
* 🌈 Support pipx installation ([#188](https://github.com/hykilpikonna/hyfetch/pull/188), [#192](https://github.com/hykilpikonna/hyfetch/pull/192))
|
||||
* 🌈 Create package for Debian, OpenSUSE, Homebrew, Gentoo, and lure.sh
|
||||
([#184](https://github.com/hykilpikonna/hyfetch/pull/184), [#194](https://github.com/hykilpikonna/hyfetch/pull/194), [#207](https://github.com/hykilpikonna/hyfetch/pull/207), [#206](https://github.com/hykilpikonna/hyfetch/pull/206)) Huge thanks to @BKasin!
|
||||
* 🖼 DE - Fix DE empty bracket in macOS ([#172](https://github.com/hykilpikonna/hyfetch/pull/172))
|
||||
* 🖼 Distro - Use /etc/debian_version to get .x on Debian ([#191](https://github.com/hykilpikonna/hyfetch/pull/191))
|
||||
* 🖼 Distro - Add LainOS ([#190](https://github.com/hykilpikonna/hyfetch/pull/190))
|
||||
* 🖼 Distro - Add aerOS ([dylanaraps#2360](https://github.com/dylanaraps/neofetch/pull/2360))
|
||||
* 🖼 Distro - Add Xenia ([#197](https://github.com/hykilpikonna/hyfetch/pull/197))
|
||||
* 🖼 Distro - Add EndeavourOS Small Option ([dylanaraps#2391](https://github.com/dylanaraps/neofetch/pull/2391))
|
||||
* 🖼 Distro - Add AZOS ([dylanaraps#2339](https://github.com/dylanaraps/neofetch/pull/2339))
|
||||
* 🖼 Distro - Add MainsailOS ([dylanaraps#2407](https://github.com/dylanaraps/neofetch/pull/2407))
|
||||
* 🖼 Distro - Add Interix ([dylanaraps#2409](https://github.com/dylanaraps/neofetch/pull/2409))
|
||||
* 🖼 Distro - Add Peropesis Linux ([dylanaraps#2414](https://github.com/dylanaraps/neofetch/pull/2414))
|
||||
* 🖼 Distro - Add Adélie Linux ([#218](https://github.com/hykilpikonna/hyfetch/pull/218))
|
||||
* 🖼 Distro - Add Xray_OS ([dylanaraps#2413](https://github.com/dylanaraps/neofetch/pull/2413))
|
||||
* 🖼 Ascii - Update AOSC logo ([#185](https://github.com/hykilpikonna/hyfetch/pull/185))
|
||||
* 🖼 Ascii - Update phyOS logo ([#211](https://github.com/hykilpikonna/hyfetch/pull/211))
|
||||
* 🖼 Ascii - Update Parch logo ([dylanaraps#2045](https://github.com/dylanaraps/neofetch/pull/2045))
|
||||
* 🖼 Ascii - Add linux_small ([dylanaraps#2417](https://github.com/dylanaraps/neofetch/pull/2417))
|
||||
* 🖼 Bug Fix - Fix color blocks for bash !=3 & <5 ([#170](https://github.com/hykilpikonna/hyfetch/pull/170))
|
||||
* 🖼 Bug Fix - Use sed -r instead of -E when using GNU sed ([#171](https://github.com/hykilpikonna/hyfetch/pull/171))
|
||||
* 🖼 Bug Fix - Fixed Kubuntu recognized as Ubuntu ([dylanaraps#2411](https://github.com/dylanaraps/neofetch/pull/2411))
|
||||
* 🖼 OS - Improved MacOS resolution detection ([dylanaraps#2356](https://github.com/dylanaraps/neofetch/pull/2356))
|
||||
* 🖼 OS - Disable Hackintosh check on arm64 processors ([dylanaraps#2396](https://github.com/dylanaraps/neofetch/pull/2396))
|
||||
* 🖼 OS - Add Windows NT ([#217](https://github.com/hykilpikonna/hyfetch/pull/217))
|
||||
* 🖼 Terminal - Add support for alacritty's new config format ([#202](https://github.com/hykilpikonna/hyfetch/pull/202))
|
||||
* 🖼 Terminal - Check for newer xfce4-term config ([#214](https://github.com/hykilpikonna/hyfetch/pull/214))
|
||||
* 🖼 Package - Add support for npm global packages ([#215](https://github.com/hykilpikonna/hyfetch/pull/215))
|
||||
|
||||
### 1.4.10
|
||||
|
||||
* 🌈 Add support for qwqfetch backend ([#148](https://github.com/hykilpikonna/hyfetch/pull/148))
|
||||
* 🌈 Add nonhuman-unity flag ([#139](https://github.com/hykilpikonna/hyfetch/pull/139))
|
||||
* 🌈 Add gynesexual, androsexual flags ([#157](https://github.com/hykilpikonna/hyfetch/pull/157))
|
||||
* 🌈 Add option to disable pride month animation ([#134](https://github.com/hykilpikonna/hyfetch/pull/134))
|
||||
* 🌈 Make ^C error message less aggressive (?)
|
||||
* 🌈 Fix: Should not assume ~/.config is writable ([#136](https://github.com/hykilpikonna/hyfetch/pull/136))
|
||||
* 🌈 Fix: Foreground-background arrangement not detected ([#154](https://github.com/hykilpikonna/hyfetch/pull/154))
|
||||
* 🖼 OS - Update macOS version name list ([#140](https://github.com/hykilpikonna/hyfetch/pull/140))
|
||||
* 🖼 Ascii - Improve color removal ([#161](https://github.com/hykilpikonna/hyfetch/pull/161))
|
||||
* 🖼 Ascii - Fix reset character performance ([#158](https://github.com/hykilpikonna/hyfetch/pull/158))
|
||||
* 🖼 Distro - Smoothen the Tumbleweed logo ([dylanaraps#2342](https://github.com/dylanaraps/neofetch/pull/2342))
|
||||
* 🖼 Distro - Update RebornOS logo ([dylanaraps#2358](https://github.com/dylanaraps/neofetch/pull/2358))
|
||||
* 🖼 Distro - Update Venom Linux logo ([#166](https://github.com/hykilpikonna/hyfetch/pull/166))
|
||||
* 🖼 Distro - Add Windows 95 ASCII logo ([dylanaraps#2346](https://github.com/dylanaraps/neofetch/pull/2346))
|
||||
* 🖼 Distro - Add ParchLinux ([dylanaraps#2045](https://github.com/dylanaraps/neofetch/pull/2045))
|
||||
* 🖼 Distro - Add OpenKylin ([dylanaraps#2341](https://github.com/dylanaraps/neofetch/pull/2341))
|
||||
* 🖼 Distro - Add EvolutionOS ([dylanaraps#2350](https://github.com/dylanaraps/neofetch/pull/2350))
|
||||
* 🖼 Distro - Add Salix ([dylanaraps#2357](https://github.com/dylanaraps/neofetch/pull/2357))
|
||||
* 🖼 Distro - Add Panwah ([dylanaraps#2355](https://github.com/dylanaraps/neofetch/pull/2355))
|
||||
* 🖼 Distro - Add PhyOS ([#142](https://github.com/hykilpikonna/hyfetch/pull/142))
|
||||
* 🖼 Distro - Add Athena OS ([#130](https://github.com/hykilpikonna/hyfetch/pull/130))
|
||||
* 🖼 Distro - Add Meowix ([#159](https://github.com/hykilpikonna/hyfetch/pull/159))
|
||||
* 🖼 Distro - Add Slackel ([#167](https://github.com/hykilpikonna/hyfetch/pull/167))
|
||||
* 🖼 Distro - Support *Wrt variants ([dylanaraps#2352](https://github.com/dylanaraps/neofetch/pull/2352))
|
||||
* 🖼 Version - Fix a typo that broke OS detection on WSL ([#155](https://github.com/hykilpikonna/hyfetch/pull/155))
|
||||
* 🖼 Packages - Implement --package_separate flag ([#135](https://github.com/hykilpikonna/hyfetch/pull/135))
|
||||
* 🖼 Packages - Separate flatpak-system and flatpak-user ([#135](https://github.com/hykilpikonna/hyfetch/pull/135))
|
||||
* 🖼 Packages - Add steam as a package manager ([#152](https://github.com/hykilpikonna/hyfetch/pull/152))
|
||||
* 🖼 Packages - Add squirrel package manager ([#153](https://github.com/hykilpikonna/hyfetch/pull/153))
|
||||
* 🖼 Packages - Make cargo run on all systems ([#146](https://github.com/hykilpikonna/hyfetch/pull/146))
|
||||
* 🖼 Packages - Fix cargo package count ([#144](https://github.com/hykilpikonna/hyfetch/pull/144))
|
||||
* 🖼 Packages - Add Devbox package manager ([#137](https://github.com/hykilpikonna/hyfetch/pull/137))
|
||||
* 🖼 Packages - Fix phantom package when pm command fails ([#145](https://github.com/hykilpikonna/hyfetch/pull/145))
|
||||
* 🖼 Packages - Update scratch package manager ([#165](https://github.com/hykilpikonna/hyfetch/pull/165))
|
||||
* 🖼 Editor - Better version detection
|
||||
* 🖼 Resolution - Improve macOS resolution detection ([dylanaraps#2356](https://github.com/dylanaraps/neofetch/pull/2356))
|
||||
* 🖼 Resolution - Add resolution lookup for iOS ([#164](https://github.com/hykilpikonna/hyfetch/pull/164))
|
||||
* 🖼 Desktop - Display global KDE Plasma theme ([#163](https://github.com/hykilpikonna/hyfetch/pull/163))
|
||||
* 🖼 IP - Improve macOS local IP detection ([dylanaraps#2362](https://github.com/dylanaraps/neofetch/pull/2362))
|
||||
* 🖼 IP - Fix macOS route hangs on reverse DNS lookup
|
||||
* 🖼 Config - Allow specifying default config to copy to ~/.config ([#133](https://github.com/hykilpikonna/hyfetch/pull/133))
|
||||
|
||||
### 1.4.9
|
||||
|
||||
* 🌈 Add pride month easter-egg animation! ⭐️
|
||||
* 🌈 Autocompletion for bash, zsh, tcsh ([#96](https://github.com/hykilpikonna/hyfetch/pull/96))
|
||||
* 🌈 Add nix profile installation method ([#114](https://github.com/hykilpikonna/hyfetch/pull/114))
|
||||
* 🌈 Add experimental color overlay function for more accurate lightness adjusting (using `--c-overlay`)
|
||||
* 🌈 Allow neofetch argument passthrough (using `--args='...'`)
|
||||
* 🌈 Show recommended terminal size ([#129](https://github.com/hykilpikonna/hyfetch/pull/129))
|
||||
* 🌈 Update issue & pull request templates
|
||||
* 🖼 Hostname - Fix FQDN substitution
|
||||
* 🖼 Version - Fix Windows version detection ([dylanaraps#2309](https://github.com/dylanaraps/neofetch/pull/2309))
|
||||
* 🖼 Packages - Fix winget stuck on agreement ([#82](https://github.com/hykilpikonna/hyfetch/pull/82))
|
||||
* 🖼 Distro - Fix Windows text encoding ([#115](https://github.com/hykilpikonna/hyfetch/pull/115))
|
||||
* 🖼 Distro - Add Astra Linux ([dylanaraps#2313](https://github.com/dylanaraps/neofetch/pull/2313))
|
||||
* 🖼 Distro - Add FemboyOS ([#121](https://github.com/hykilpikonna/hyfetch/pull/121))
|
||||
* 🖼 Distro - Add Nobara Linux ([dylanaraps#2326](https://github.com/dylanaraps/neofetch/pull/2326))
|
||||
* 🖼 Font - Fix Konsole ppid detection ([#116](https://github.com/hykilpikonna/hyfetch/pull/116))
|
||||
* 🖼 Font - Fix Konsole terminal font detection ([#127](https://github.com/hykilpikonna/hyfetch/pull/127))
|
||||
* 🖼 Image - Optimize sixel image display ([dylanaraps#2316](https://github.com/dylanaraps/neofetch/pull/2316))
|
||||
|
||||
### 1.4.8
|
||||
|
||||
* 🌈 Improved Windows git bash detection ([#99](https://github.com/hykilpikonna/hyfetch/pull/99))
|
||||
* 🌈 Improved color formatting codes ([#101](https://github.com/hykilpikonna/hyfetch/pull/101))
|
||||
* 🌈 Allow specifying distro in config ([#102](https://github.com/hykilpikonna/hyfetch/pull/102))
|
||||
* 🌈 Allow specifying custom ascii files ([#104](https://github.com/hykilpikonna/hyfetch/pull/104))
|
||||
* 🌈 Add omniromantic and pangender flags ([#106](https://github.com/hykilpikonna/hyfetch/pull/106))
|
||||
* 🌈 Now officially packaged for ArchLinux Community & Slackware! ([#112](https://github.com/hykilpikonna/hyfetch/pull/112) | [#109](https://github.com/hykilpikonna/hyfetch/pull/109))
|
||||
* 🖼 Host - Update Apple device model detection. ([#111](https://github.com/hykilpikonna/hyfetch/pull/111))
|
||||
* 🖼 Distro - Add Salient OS. ([dylanaraps#2301](https://github.com/dylanaraps/neofetch/pull/2301))
|
||||
* 🖼 Distro - Add PikaOS. ([#105](https://github.com/hykilpikonna/hyfetch/pull/105))
|
||||
* 🖼 Distro - Add Archcraft minimal variant. ([#108](https://github.com/hykilpikonna/hyfetch/pull/108))
|
||||
* 🖼 Distro - Update Vanilla logo. ([#98](https://github.com/hykilpikonna/hyfetch/pull/98))
|
||||
* 🖼 Distro - ChromeOS version improvements. ([dylanaraps#2305](https://github.com/dylanaraps/neofetch/pull/2305))
|
||||
* 🖼 CPU - Improved multi-cpu ARM chip detection. ([#97](https://github.com/hykilpikonna/hyfetch/pull/97))
|
||||
* 🖼 Packages - Support pipx package manager. ([#107](https://github.com/hykilpikonna/hyfetch/pull/107))
|
||||
|
||||
### 1.4.7
|
||||
|
||||
* 🌈 Better Windows compatibility (#45, #84, #87, #89)
|
||||
* 🌈 Add gendervoid flags (#81)
|
||||
* 🌈 Fix ASCII extractor escape sequence generation (#90, #91)
|
||||
* 🌈 Better Windows compatibility ([#45](https://github.com/hykilpikonna/hyfetch/pull/45), [#84](https://github.com/hykilpikonna/hyfetch/pull/84), [#87](https://github.com/hykilpikonna/hyfetch/pull/87), [#89](https://github.com/hykilpikonna/hyfetch/pull/89))
|
||||
* 🌈 Add gendervoid flags ([#81](https://github.com/hykilpikonna/hyfetch/pull/81))
|
||||
* 🌈 Fix ASCII extractor escape sequence generation ([#90](https://github.com/hykilpikonna/hyfetch/pull/90), [#91](https://github.com/hykilpikonna/hyfetch/pull/91))
|
||||
* 🖼 Distro - Add CuteOS ([dylanaraps#2291](https://github.com/dylanaraps/neofetch/pull/2291))
|
||||
* 🖼 Distro - Add Floflis ([dylanaraps#2289](https://github.com/dylanaraps/neofetch/pull/2289))
|
||||
* 🖼 Distro - Add ArseLinux ([dylanaraps#2295](https://github.com/dylanaraps/neofetch/pull/2295))
|
||||
* 🖼 Distro - Better Solaris support ([dylanaraps#2293](https://github.com/dylanaraps/neofetch/pull/2293))
|
||||
* 🖼 Packages - Fix scoop package manager for Windows (#93)
|
||||
* 🖼 Packages - Add Evox package manager for Stock Linux (#95)
|
||||
* 🖼 WM - Fix false positive wm process name detection (#88, #94)
|
||||
* 🖼 Packages - Fix scoop package manager for Windows ([#93](https://github.com/hykilpikonna/hyfetch/pull/93))
|
||||
* 🖼 Packages - Add Evox package manager for Stock Linux ([#95](https://github.com/hykilpikonna/hyfetch/pull/95))
|
||||
* 🖼 WM - Fix false positive wm process name detection ([#88](https://github.com/hykilpikonna/hyfetch/pull/88), [#94](https://github.com/hykilpikonna/hyfetch/pull/94))
|
||||
* 🖼 Misc - Added BIOS and bluetooth detection
|
||||
|
||||
### 1.4.6
|
||||
|
||||
* 🌈 Add compatibility for FastFetch version `>1.8.0` (#62)
|
||||
* 🖼 Distro - Add Aperture Science ascii art (#61)
|
||||
* 🌈 Add compatibility for FastFetch version `>1.8.0` ([#62](https://github.com/hykilpikonna/hyfetch/pull/62))
|
||||
* 🖼 Distro - Add Aperture Science ascii art ([#61](https://github.com/hykilpikonna/hyfetch/pull/61))
|
||||
* 🖼 Distro - Add RhaymOS ([dylanaraps#2274](https://github.com/dylanaraps/neofetch/pull/2274))
|
||||
* 🖼 Editor - Add editor information detection ([dylanaraps#2271](https://github.com/dylanaraps/neofetch/pull/2271))
|
||||
* 🖼 Packages - Fix empty cargo directory (#58)
|
||||
* 🖼 Packages - Fix empty cargo directory ([#58](https://github.com/hykilpikonna/hyfetch/pull/58))
|
||||
* 🖼 Terminal - Display gnome-console instead of kgx ([dylanaraps#2277](https://github.com/dylanaraps/neofetch/pull/2277))
|
||||
* 🖼 Terminal - Fix terminal detection with new get_process_name function
|
||||
* 🖼 CPU - Detect ISA string on RISC-V CPUs (#60)
|
||||
* 🖼 Song - Fix CMUS player song detection on macOS (#55)
|
||||
* 🖼 Network - Fix macOS network detection (#56)
|
||||
* 🖼 Misc - Change LICENSE year to 2023 (#59)
|
||||
* 🖼 CPU - Detect ISA string on RISC-V CPUs ([#60](https://github.com/hykilpikonna/hyfetch/pull/60))
|
||||
* 🖼 Song - Fix CMUS player song detection on macOS ([#55](https://github.com/hykilpikonna/hyfetch/pull/55))
|
||||
* 🖼 Network - Fix macOS network detection ([#56](https://github.com/hykilpikonna/hyfetch/pull/56))
|
||||
* 🖼 Misc - Change LICENSE year to 2023 ([#59](https://github.com/hykilpikonna/hyfetch/pull/59))
|
||||
|
||||
### 1.4.5
|
||||
|
||||
* 🌈 **Support using FastFetch as a HyFetch backend** (`hyfetch -b fastfetch`)
|
||||
* 🌈 Add config file argument (#48)
|
||||
* 🌈 Fix problems caused by color detection on Windows (#16)
|
||||
* 🌈 Add config file argument ([#48](https://github.com/hykilpikonna/hyfetch/pull/48))
|
||||
* 🌈 Fix problems caused by color detection on Windows ([#16](https://github.com/hykilpikonna/hyfetch/pull/16))
|
||||
* 🌈 Support pure-python distro detection for FastFetch
|
||||
* 🖼️ Distro - Add Aster Linux ([dylanaraps#2251](https://github.com/dylanaraps/neofetch/pull/2251))
|
||||
* 🖼️ Distro - Add Hybrid Linux ([dylanaraps#2239](https://github.com/dylanaraps/neofetch/pull/2239))
|
||||
@@ -139,21 +272,21 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
||||
* 🖼️ Distro - Add Project Sasanqua ([dylanaraps#2264](https://github.com/dylanaraps/neofetch/pull/2264))
|
||||
* 🖼️ Distro - Add Kali small variant ([dylanaraps#2242](https://github.com/dylanaraps/neofetch/pull/2242))
|
||||
* 🖼️ Distro - Fix CachyOS matching ([dylanaraps#2026](https://github.com/dylanaraps/neofetch/pull/2026))
|
||||
* 🖼 WM - Fix wm detection with `fuser` (#39)
|
||||
* 🖼️ Memory - Make memory unit decimal calculation more accurate (#52)
|
||||
* 🖼 Packages - Fix squirrel (Stock Linux) package count detection (#39)
|
||||
* 🖼 Packages - Support cargo bin environment variable (#49)
|
||||
* 🖼 WM - Fix wm detection with `fuser` ([#39](https://github.com/hykilpikonna/hyfetch/pull/39))
|
||||
* 🖼️ Memory - Make memory unit decimal calculation more accurate ([#52](https://github.com/hykilpikonna/hyfetch/pull/52))
|
||||
* 🖼 Packages - Fix squirrel (Stock Linux) package count detection ([#39](https://github.com/hykilpikonna/hyfetch/pull/39))
|
||||
* 🖼 Packages - Support cargo bin environment variable ([#49](https://github.com/hykilpikonna/hyfetch/pull/49))
|
||||
* 🖼 Packages - Add tea.xyz package manager (issue [dylanaraps#2235](https://github.com/dylanaraps/neofetch/pull/2235))
|
||||
|
||||
### 1.4.4
|
||||
|
||||
* 🌈 Fix Python 3.11 compatibility (#35)
|
||||
* 🌈 Fix Python 3.11 compatibility ([#35](https://github.com/hykilpikonna/hyfetch/pull/35))
|
||||
* 🌈 Fix many overflow problems when screen is too small
|
||||
* 🖼️ Distro - Add Enso ([dylanaraps#2233](https://github.com/dylanaraps/neofetch/pull/2233))
|
||||
* 🖼️ Memory - Optimize and fix memory unit conversion ([dylanaraps#2225](https://github.com/dylanaraps/neofetch/pull/2225))
|
||||
* 🖼️ DE - Add dwl window manager ([dylanaraps#2234](https://github.com/dylanaraps/neofetch/pull/2234))
|
||||
* 🖼️ DE - Fix XDG session detection for X11 ([dylanaraps#2232](https://github.com/dylanaraps/neofetch/pull/2232))
|
||||
* 🖼️ CPU - Fix model detection for loongson (#34)
|
||||
* 🖼️ CPU - Fix model detection for loongson ([#34](https://github.com/hykilpikonna/hyfetch/pull/34))
|
||||
|
||||
### 1.4.3
|
||||
|
||||
@@ -161,33 +294,33 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
||||
* 🌈 **Optimize experience on light-themed terminals**
|
||||
* 🌈 Fix bugs with lightness and light-mode config not applying
|
||||
* 🌈 Fix color alignment for distros with first color ≠ `${c1}` (e.g. Ubuntu Budgie)
|
||||
* 🌈 Add unlabeled flags (#25)
|
||||
* 🌈 Add gender nonconforming & femboy & tomboy flags (#32)
|
||||
* 🌈 Add unlabeled flags ([#25](https://github.com/hykilpikonna/hyfetch/pull/25))
|
||||
* 🌈 Add gender nonconforming & femboy & tomboy flags ([#32](https://github.com/hykilpikonna/hyfetch/pull/32))
|
||||
* 🌈 Fix jailbreak iOS shell `killed: 9` issue caused by ld signature check.
|
||||
* 🖼️ Distro - Add garuda_small ([dylanaraps#2215](https://github.com/dylanaraps/neofetch/pull/2215))
|
||||
* 🖼️ Distro - Add Cobalt Linux ([dylanaraps#2213](https://github.com/dylanaraps/neofetch/pull/2213))
|
||||
* 🖼️ Distro - Add VanillaOS ([dylanaraps#2222](https://github.com/dylanaraps/neofetch/pull/2222))
|
||||
* 🖼️ Distro - Surround macOS build number in parentheses (#28)
|
||||
* 🖼️ Misc - Auto select stdout mode based on tty detection (#31)
|
||||
* 🖼️ Bug Fix - Fix cols coloring reset for bash 3.2 (#24)
|
||||
* 🖼️ Distro - Surround macOS build number in parentheses ([#28](https://github.com/hykilpikonna/hyfetch/pull/28))
|
||||
* 🖼️ Misc - Auto select stdout mode based on tty detection ([#31](https://github.com/hykilpikonna/hyfetch/pull/31))
|
||||
* 🖼️ Bug Fix - Fix cols coloring reset for bash 3.2 ([#24](https://github.com/hykilpikonna/hyfetch/pull/24))
|
||||
|
||||
### 1.4.2
|
||||
|
||||
* 🌈 Detailed runnning/contributing instructions in README.md (#21)
|
||||
* 🖼️ Distro - Add Stock Linux (#23)
|
||||
* 🌈 Detailed runnning/contributing instructions in README.md ([#21](https://github.com/hykilpikonna/hyfetch/pull/21))
|
||||
* 🖼️ Distro - Add Stock Linux ([#23](https://github.com/hykilpikonna/hyfetch/pull/23))
|
||||
* 🖼️ Distro - Add DietPi ([dylanaraps#1706](https://github.com/dylanaraps/neofetch/pull/1706))
|
||||
* 🖼️ Distro - Add OmniOS illumos ([dylanaraps#2196](https://github.com/dylanaraps/neofetch/pull/2196))
|
||||
* 🖼️ Distro - Add Droidian ([dylanaraps#2201](https://github.com/dylanaraps/neofetch/pull/2201))
|
||||
* 🖼️ Distro - Add HamoniKR ([dylanaraps#2210](https://github.com/dylanaraps/neofetch/pull/2210))
|
||||
* 🖼️ Song - Add support for TIDAL HiFi (#22)
|
||||
* 🖼️ Song - Add support for TIDAL HiFi ([#22](https://github.com/hykilpikonna/hyfetch/pull/22))
|
||||
* 🖼️ CPU - Detect multiple CPU models for ARM
|
||||
* 🖼️ Misc - Better defaults: Show RAM in GiB, RAM percentage, CPU speed rounding, refresh rate
|
||||
* 🖼️ Bug Fix - Fix bash 5.2 column cut off issue (#24)
|
||||
* 🖼️ Bug Fix - Fix bash 5.2 column cut off issue ([#24](https://github.com/hykilpikonna/hyfetch/pull/24))
|
||||
|
||||
### 1.4.1
|
||||
|
||||
* 🌈 Paginate flags (#14)
|
||||
* 🌈 Add release workflow (#15)
|
||||
* 🌈 Paginate flags ([#14](https://github.com/hykilpikonna/hyfetch/pull/14))
|
||||
* 🌈 Add release workflow ([#15](https://github.com/hykilpikonna/hyfetch/pull/15))
|
||||
* 🌈 Create automatic release script
|
||||
* 🌈 Config page - Give warning when terminal size is too small
|
||||
* 🌈 Config page - Optimize color arrangement selection on small screens
|
||||
@@ -208,7 +341,7 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
||||
|
||||
### 1.4.0
|
||||
|
||||
* 🌈 Add finsexual flag (#12)
|
||||
* 🌈 Add finsexual flag ([#12](https://github.com/hykilpikonna/hyfetch/pull/12))
|
||||
* 🚀 Addressed a total of 128 currently open pull requests from neofetch
|
||||
|
||||
<details>
|
||||
@@ -424,11 +557,11 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
||||
|
||||
### 1.0.5
|
||||
|
||||
* Fix terminal emulator detection ([PR #2](https://github.com/hykilpikonna/hyfetch/pull/2))
|
||||
* Fix terminal emulator detection ([PR [#2](https://github.com/hykilpikonna/hyfetch/pull/2)](https://github.com/hykilpikonna/hyfetch/pull/2))
|
||||
|
||||
### 1.0.4
|
||||
|
||||
* Add more flags ([PR #1](https://github.com/hykilpikonna/hyfetch/pull/1))
|
||||
* Add more flags ([PR [#1](https://github.com/hykilpikonna/hyfetch/pull/1)](https://github.com/hykilpikonna/hyfetch/pull/1))
|
||||
|
||||
### 1.0.3
|
||||
|
||||
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
with import <nixpkgs> {};
|
||||
|
||||
rec {
|
||||
hyfetch = python3Packages.buildPythonPackage rec {
|
||||
pname = "HyFetch";
|
||||
version = "1.0.7";
|
||||
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-3/6/3EtTqHXTMuRIo2nclIxYSzOFvQegR29OJsKMQU4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
typing-extensions
|
||||
setuptools
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "neofetch with pride flags <3";
|
||||
longDescription = ''
|
||||
HyFetch is a command-line system information tool fork of neofetch.
|
||||
HyFetch displays information about your system next to your OS logo
|
||||
in ASCII representation. The ASCII representation is then colored in
|
||||
the pattern of the pride flag of your choice. The main purpose of
|
||||
HyFetch is to be used in screenshots to show other users what
|
||||
operating system or distribution you are running, what theme or
|
||||
icon set you are using, etc.
|
||||
'';
|
||||
homepage = "https://github.com/hykilpikonna/HyFetch";
|
||||
license = licenses.mit;
|
||||
mainProgram = "hyfetch";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH VERSION "1" "December 2023" "Version is 1.4.11" "User Commands"
|
||||
.SH NAME
|
||||
Version \- manual page for Version is 1.4.11
|
||||
.SH DESCRIPTION
|
||||
usage: hyfetch [\-h] [\-c] [\-C CONFIG_FILE]
|
||||
.IP
|
||||
[\-p {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger}]
|
||||
[\-m {8bit,rgb}]
|
||||
[\-b {qwqfetch,neofetch,fastfetch,fastfetch\-old}] [\-\-args ARGS]
|
||||
[\-\-c\-scale SCALE] [\-\-c\-set\-l LIGHT] [\-\-c\-overlay] [\-V] [\-\-june]
|
||||
[\-\-debug] [\-\-distro DISTRO] [\-\-ascii\-file ASCII_FILE]
|
||||
.PP
|
||||
[1m[38;5;14mhyfetch[39m[22m \- neofetch with flags <3
|
||||
.SS "options:"
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-\-help\fR
|
||||
show this help message and exit
|
||||
.TP
|
||||
\fB\-c\fR, \fB\-\-config\fR
|
||||
Configure hyfetch
|
||||
.TP
|
||||
\fB\-C\fR CONFIG_FILE, \fB\-\-config\-file\fR CONFIG_FILE
|
||||
Use another config file
|
||||
.TP
|
||||
\fB\-p\fR {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger}, \fB\-\-preset\fR {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger}
|
||||
Use preset
|
||||
.TP
|
||||
\fB\-m\fR {8bit,rgb}, \fB\-\-mode\fR {8bit,rgb}
|
||||
Color mode
|
||||
.TP
|
||||
\fB\-b\fR {qwqfetch,neofetch,fastfetch,fastfetch\-old}, \fB\-\-backend\fR {qwqfetch,neofetch,fastfetch,fastfetch\-old}
|
||||
Choose a *fetch backend
|
||||
.TP
|
||||
\fB\-\-args\fR ARGS
|
||||
Additional arguments pass\-through to backend
|
||||
.TP
|
||||
\fB\-\-c\-scale\fR SCALE
|
||||
Lighten colors by a multiplier
|
||||
.TP
|
||||
\fB\-\-c\-set\-l\fR LIGHT
|
||||
Set lightness value of the colors
|
||||
.TP
|
||||
\fB\-\-c\-overlay\fR
|
||||
Use experimental overlay color adjusting instead of
|
||||
HSL lightness
|
||||
.TP
|
||||
\fB\-V\fR, \fB\-\-version\fR
|
||||
Check version
|
||||
.TP
|
||||
\fB\-\-june\fR
|
||||
Show pride month easter egg
|
||||
.TP
|
||||
\fB\-\-debug\fR
|
||||
Debug mode
|
||||
.TP
|
||||
\fB\-\-distro\fR DISTRO, \fB\-\-test\-distro\fR DISTRO
|
||||
Test for a specific distro
|
||||
.TP
|
||||
\fB\-\-ascii\-file\fR ASCII_FILE
|
||||
Use a specific file for the ascii art
|
||||
.SH "SEE ALSO"
|
||||
The full documentation for
|
||||
.B Version
|
||||
is maintained as a Texinfo manual. If the
|
||||
.B info
|
||||
and
|
||||
.B Version
|
||||
programs are properly installed at your site, the command
|
||||
.IP
|
||||
.B info Version
|
||||
.PP
|
||||
should give you access to the complete manual.
|
||||
@@ -1,7 +1,7 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
|
||||
.TH NEOFETCH "1" "February 2023" "Neofetch 7.3.7" "User Commands"
|
||||
.TH NEOFETCH "1" "December 2023" "Neofetch 7.3.11" "User Commands"
|
||||
.SH NAME
|
||||
Neofetch \- manual page for Neofetch 7.3.7
|
||||
Neofetch \- manual page for Neofetch 7.3.11
|
||||
.SH SYNOPSIS
|
||||
.B neofetch
|
||||
\fI\,func_name --option "value" --option "value"\/\fR
|
||||
@@ -46,6 +46,9 @@ Hide/Show Fully Qualified Domain Name in title.
|
||||
\fB\-\-package_managers\fR on/off
|
||||
Hide/Show Package Manager names. (on, tiny, off)
|
||||
.TP
|
||||
\fB\-\-package_separate\fR on/off
|
||||
Whether to separate system/user modes for supported package managers
|
||||
.TP
|
||||
\fB\-\-os_arch\fR on/off
|
||||
Hide/Show OS architecture.
|
||||
.TP
|
||||
@@ -310,60 +313,64 @@ Colors to print the ascii art
|
||||
\fB\-\-ascii_distro\fR distro
|
||||
Which Distro's ascii art to print
|
||||
.TP
|
||||
NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy,
|
||||
Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux,
|
||||
Aperture, Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchMerge,
|
||||
ArchStrike, ArcoLinux, ArseLinux, Artix, Arya, Asahi, Aster,
|
||||
AsteroidOS, astOS, Bedrock, BigLinux, Bitrig, BlackArch,
|
||||
NOTE: Ad??lie, aerOS, Afterglow, AIX, AlmaLinux, Alpine, Alter,
|
||||
Amazon, AmogOS, Anarchy, Android, Antergos, antiX, AOSC OS, Aperio
|
||||
GNU/Linux, Aperture, Apricity, Arch, ArchBox, Archcraft,
|
||||
archcraft_ascii, archcraft_minimal, ARCHlabs, ArchMerge, ArchStrike,
|
||||
ArcoLinux, ArseLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Astra
|
||||
Linux, Athena, azos, Bedrock, BigLinux, Bitrig, BlackArch,
|
||||
blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD,
|
||||
BunsenLabs, CachyOS, Calculate, CalinixOS, Carbs, CBL\-Mariner,
|
||||
CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
|
||||
Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Cobalt, Condres,
|
||||
Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber,
|
||||
CutefishOS, CuteOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin,
|
||||
DesaOS, Devuan, DietPi, DracOS, DragonFly, Drauger, Droidian,
|
||||
Elementary, Elive, EncryptOS, EndeavourOS, Endless, Enso, EuroLinux,
|
||||
Exherbo, Exodia Predator OS, Fedora, Feren, Finnix, Floflis,
|
||||
FreeBSD, FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo,
|
||||
GhostBSD, glaucus, gNewSense, GNOME, GNU, GoboLinux, GrapheneOS,
|
||||
Grombyang, Guix, Haiku, HamoniKR, HarDClanZ, Hash, Huayra, Hybrid,
|
||||
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, NekOS, Neptune, NetBSD,
|
||||
Netrunner, Nitrux, NixOS, NomadBSD, Nurunner, NuTyX, Obarun,
|
||||
OBRevenge, OmniOS, 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,
|
||||
DesaOS, Devuan, DietPi, digital UNIX, DracOS, DragonFly, Drauger,
|
||||
Droidian, Elementary, Elive, EncryptOS, EndeavourOS, Endless, Enso,
|
||||
EuroLinux, EvolutionOS, Exherbo, Exodia Predator OS, Fedora,
|
||||
FemboyOS, Feren, Finnix, Floflis, FreeBSD, FreeMiNT, Frugalware,
|
||||
Funtoo, GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense,
|
||||
GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HamoniKR,
|
||||
HarDClanZ, Hash, Huayra, Hybrid, HydroOS, Hyperbola, iglunix,
|
||||
instantOS, Interix, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE,
|
||||
Kibojoe, Kogaion, Korora, KrassOS, KSLinux, Kubuntu, LainOS,
|
||||
LangitKetujuh, LaxerOS, LEDE, LibreELEC, Linspire, Linux, Linux
|
||||
Lite, Linux Mint, Linux Mint Old, Live Raizo, LMDE, Lubuntu, Lunar,
|
||||
mac, Mageia, MagpieOS, MainsailOS, Mandriva, Manjaro, MassOS,
|
||||
MatuusOS, Maui, Meowix, Mer, Minix, MIRACLE LINUX, MX, Namib, NekOS,
|
||||
Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nobara, NomadBSD,
|
||||
Nurunner, NuTyX, Obarun, OBRevenge, OmniOS, Open Source Media
|
||||
Center, OpenBSD, openEuler, OpenIndiana, openKylin, openmamba,
|
||||
OpenMandriva, OpenStage, openSUSE, openSUSE Leap, openSUSE
|
||||
Tumbleweed, OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Panwah,
|
||||
Parabola, parch, Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, pearOS,
|
||||
Pengwin, Pentoo, Peppermint, Peropesis, phyOS, PikaOS, Pisi, PNM
|
||||
Linux, Pop!_OS, Porteus, PostMarketOS, Profelis SambaBOX, Proxmox,
|
||||
PuffOS, Puppy, PureOS, Q4OS, Qubes, Qubyt, Quibian, Radix, Raspbian,
|
||||
ravynOS, Reborn OS, Red Star, Redcore, Redhat, Refracted Devuan,
|
||||
Regata, Regolith, RhaymOS, rocky, Rosa, Sabayon, sabotage, Sailfish,
|
||||
SalentOS, Sasanqua, Scientific, semc, Septor, Serene, SharkLinux,
|
||||
ShastraOS, Siduction, SkiffOS, Slackware, SliTaz, SmartOS, Soda,
|
||||
Solus, Source Mage, Sparky, Star, SteamOS, Stock Linux, 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, UrukOS,
|
||||
uwuntu, Vanilla, Venom, VNux, Void, VzLinux, wii\-linux\-ngx, Windows,
|
||||
Windows 10, Windows 11, XFerience, Xubuntu, yiffOS, Zorin have ascii
|
||||
logos.
|
||||
SalentOS, Salient OS, Salix, Sasanqua, Scientific, semc, Septor,
|
||||
Serene, SharkLinux, ShastraOS, Siduction, SkiffOS, Slackel,
|
||||
Slackware, SliTaz, SmartOS, Soda, Solus, Source Mage, Sparky, Star,
|
||||
SteamOS, Stock Linux, 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,
|
||||
unicodearch, Univalent, Univention, Uos, UrukOS, uwuntu, Vanilla,
|
||||
Venom, VNux, Void, VzLinux, wii\-linux\-ngx, Windows, Windows 10,
|
||||
Windows 11, Windows95, Wrt, Xenia, Xenia2, XFerience, Xray_OS,
|
||||
Xubuntu, yiffOS, Zorin have ascii logos.
|
||||
.TP
|
||||
NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu
|
||||
have 'old' logo variants, use {distro}_old to use them.
|
||||
.TP
|
||||
NOTE: alpine, android, aoscosretro, arch, arcolinux, artix,
|
||||
CalinixOS, centos, cleanjaro, crux, debian, dragonfly, elementary,
|
||||
fedora, freebsd, garuda, gentoo, guix, haiku, hyperbola, kali,
|
||||
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.
|
||||
NOTE: alpine, android, arch, arcolinux, artix, CalinixOS, centos,
|
||||
cleanjaro, crux, debian, dragonfly, elementary, endeavouros, fedora,
|
||||
freebsd, garuda, gentoo, guix, haiku, hyperbola, kali, Linux,
|
||||
linuxlite, linuxmint, mac, mageia, MainsailOS, manjaro, mx, netbsd,
|
||||
nixos, openbsd, opensuse, orchid, parabola, popos, postmarketos,
|
||||
pureos, Raspbian, rocky, slackware, sunos, ubuntu, venom, 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.
|
||||
+7
-2
@@ -1,4 +1,9 @@
|
||||
from hyfetch import main
|
||||
from . import main
|
||||
from .color_util import printc
|
||||
|
||||
if __name__ == '__main__':
|
||||
main.run()
|
||||
try:
|
||||
main.run()
|
||||
except KeyboardInterrupt:
|
||||
printc('&cThe program is interrupted by ^C, exiting...')
|
||||
exit(0)
|
||||
@@ -0,0 +1 @@
|
||||
VERSION = '1.4.11'
|
||||
+37
-5
@@ -6,11 +6,33 @@ from dataclasses import dataclass, astuple
|
||||
from .constants import GLOBAL_CFG
|
||||
from .types import *
|
||||
|
||||
MINECRAFT_COLORS = ["&0/\033[0;30m", "&1/\033[0;34m", "&2/\033[0;32m", "&3/\033[0;36m", "&4/\033[0;31m",
|
||||
"&5/\033[0;35m", "&6/\033[0;33m", "&7/\033[0;37m", "&8/\033[1;30m", "&9/\033[1;34m",
|
||||
"&a/\033[1;32m", "&b/\033[1;36m", "&c/\033[1;31m", "&d/\033[1;35m", "&e/\033[1;33m",
|
||||
"&f/\033[1;37m",
|
||||
"&r/\033[0m", "&l/\033[1m", "&o/\033[3m", "&n/\033[4m", "&-/\n"]
|
||||
MINECRAFT_COLORS = [
|
||||
|
||||
# Minecraft formatting codes
|
||||
# ==========================
|
||||
"&0/\033[38;5;0m", "&1/\033[38;5;4m", "&2/\033[38;5;2m", "&3/\033[38;5;6m",
|
||||
"&4/\033[38;5;1m", "&5/\033[38;5;5m", "&6/\033[38;5;3m", "&7/\033[38;5;7m",
|
||||
"&8/\033[38;5;8m", "&9/\033[38;5;12m", "&a/\033[38;5;10m", "&b/\033[38;5;14m",
|
||||
"&c/\033[38;5;9m", "&d/\033[38;5;13m", "&e/\033[38;5;11m", "&f/\033[38;5;15m",
|
||||
"&l/\033[1m", # Enable bold text
|
||||
"&o/\033[3m", # Enable italic text
|
||||
"&n/\033[4m", # Enable underlined text
|
||||
"&k/\033[8m", # Enable hidden text
|
||||
"&m/\033[9m", # Enable strikethrough text
|
||||
"&r/\033[0m", # Reset everything
|
||||
|
||||
# Extended codes (not officially in Minecraft)
|
||||
# ============================================
|
||||
"&-/\n", # Line break
|
||||
"&~/\033[39m", # Reset text color
|
||||
"&*/\033[49m", # Reset background color
|
||||
"&L/\033[22m", # Disable bold text
|
||||
"&O/\033[23m", # Disable italic text
|
||||
"&N/\033[24m", # Disable underlined text
|
||||
"&K/\033[28m", # Disable hidden text
|
||||
"&M/\033[29m", # Disable strikethrough text
|
||||
|
||||
]
|
||||
MINECRAFT_COLORS = [(r[:2], r[3:]) for r in MINECRAFT_COLORS]
|
||||
|
||||
|
||||
@@ -217,3 +239,13 @@ class RGB:
|
||||
|
||||
def is_light(self):
|
||||
return self.hsl().l > 0.5
|
||||
|
||||
def overlay(self, color: 'RGB', alpha: float) -> 'RGB':
|
||||
"""
|
||||
Overlay a color on top of this color
|
||||
|
||||
:param color: Overlay color
|
||||
:param alpha: Overlay alpha
|
||||
:return: New color (original isn't modified)
|
||||
"""
|
||||
return RGB(*[round((1 - alpha) * v1 + alpha * v2) for v1, v2 in zip(self, color)])
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import platform
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
from .types import LightDark
|
||||
from .__version__ import VERSION
|
||||
|
||||
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
||||
VERSION = '1.4.7'
|
||||
|
||||
|
||||
TEST_ASCII = r"""
|
||||
@@ -28,6 +29,8 @@ TEST_ASCII_WIDTH = max(len(line) for line in TEST_ASCII.split('\n'))
|
||||
DEFAULT_DARK_L = 0.
|
||||
IS_WINDOWS = platform.system() == 'Windows'
|
||||
|
||||
CACHE_PATH = Path(os.getenv("LOCALAPPDATA") or os.getenv("XDG_CACHE_HOME") or Path.home() / '.cache') / 'hyfetch'
|
||||
|
||||
@dataclass
|
||||
class GlobalConfig:
|
||||
# Global color mode default to 8-bit for compatibility
|
||||
@@ -35,6 +38,7 @@ class GlobalConfig:
|
||||
override_distro: str | None
|
||||
debug: bool
|
||||
is_light: bool
|
||||
use_overlay: bool
|
||||
|
||||
def light_dark(self) -> LightDark:
|
||||
return 'light' if self.is_light else 'dark'
|
||||
@@ -45,6 +49,6 @@ class GlobalConfig:
|
||||
return 0.65 if term.lower() == 'dark' else 0.4
|
||||
|
||||
|
||||
GLOBAL_CFG = GlobalConfig(color_mode='8bit', override_distro=None, debug=False, is_light=False)
|
||||
GLOBAL_CFG = GlobalConfig(color_mode='8bit', override_distro=None, debug=False, is_light=False, use_overlay=False)
|
||||
|
||||
MINGIT_URL = 'https://github.com/git-for-windows/git/releases/download/v2.37.2.windows.2/MinGit-2.37.2.2-busybox-32-bit.zip'
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
adélie = AsciiArt(match=r'''"Adélie"* | "Adelie"*''', color='4 7 6', ascii=r"""
|
||||
${c1} ${c3} ,-^-___
|
||||
${c3} /\\\///
|
||||
${c2}refined.${c1} /\\\\//
|
||||
${c2}reliable.${c1} /\\\///
|
||||
${c2}ready.${c1} /\\/////\
|
||||
__///\\\\/////\
|
||||
${c3} _//////\\\\\\\////
|
||||
${c1} ///////${c3}\\\\\\\\\\//
|
||||
//////${c1}\\\\\/
|
||||
/////\\\\\/
|
||||
/////${c3}\\\\/
|
||||
/\\///\\\/
|
||||
/\\\/${c1}\\/
|
||||
/\\\\//
|
||||
//////
|
||||
/// ${c3}\\\\\
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
aeros = AsciiArt(match=r'''"aerOS"*''', color='fg 0 0 0', ascii=r"""
|
||||
${c1}
|
||||
ooo OOO OOO ooo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
OOo
|
||||
OOo
|
||||
OOo
|
||||
OOo
|
||||
OOo
|
||||
OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
oO OOo
|
||||
oOO OOo
|
||||
oOO OOo
|
||||
ooo OOO OOO ooo
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
afterglow = AsciiArt(match=r'''"Afterglow"*''', color='5 1 3 4', ascii=r"""
|
||||
${c2} .
|
||||
${c1}. ${c2}.{!
|
||||
${c1}.L! ${c2}J@||*
|
||||
${c1}gJJJJL` ${c2}g@FFS"
|
||||
${c1},@FFFJF`${c2}_g@@LLP`
|
||||
${c1}_@FFFFF`${c2}_@@@@@P` ${c4}.
|
||||
${c1}J@@@LLF ${c2}_@@@@@P` ${c4}.J!
|
||||
${c1}g@@@@@" ${c2}_@@@@@P`${c3}. ${c4}.L|||*
|
||||
${c1}g@@@@M" ${c2}"VP`${c3}.L! ${c4}<@JJJJ`
|
||||
${c1}"@N" ${c3}:||||! ${c4}JFFFFS"
|
||||
${c3}.{JJ||F`${c4}_gFFFF@'
|
||||
${c3}.@FJJJF`${c4},@LFFFF`
|
||||
${c3}_@FFFFF ${c4}VLLLP`
|
||||
${c3}J@@LL@" ${c4}`"
|
||||
${c3}V@@"
|
||||
""")
|
||||
|
||||
+18
-21
@@ -2,26 +2,23 @@
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
aosc_os = AsciiArt(match=r'''"AOSC OS"*''', color='4 7 1', ascii=r"""
|
||||
${c2} .:+syhhhhys+:.
|
||||
.ohNMMMMMMMMMMMMMMNho.
|
||||
`+mMMMMMMMMMMmdmNMMMMMMMMm+`
|
||||
+NMMMMMMMMMMMM/ `./smMMMMMN+
|
||||
.mMMMMMMMMMMMMMMo -yMMMMMm.
|
||||
:NMMMMMMMMMMMMMMMs .hMMMMN:
|
||||
.NMMMMhmMMMMMMMMMMm+/- oMMMMN.
|
||||
dMMMMs ./ymMMMMMMMMMMNy. sMMMMd
|
||||
-MMMMN` oMMMMMMMMMMMN: `NMMMM-
|
||||
/MMMMh NMMMMMMMMMMMMm hMMMM/
|
||||
/MMMMh NMMMMMMMMMMMMm hMMMM/
|
||||
-MMMMN` :MMMMMMMMMMMMy. `NMMMM-
|
||||
dMMMMs .yNMMMMMMMMMMMNy/. sMMMMd
|
||||
.NMMMMo -/+sMMMMMMMMMMMmMMMMN.
|
||||
:NMMMMh. .MMMMMMMMMMMMMMMN:
|
||||
.mMMMMMy- NMMMMMMMMMMMMMm.
|
||||
+NMMMMMms/.` mMMMMMMMMMMMN+
|
||||
`+mMMMMMMMMNmddMMMMMMMMMMm+`
|
||||
.ohNMMMMMMMMMMMMMMNho.
|
||||
.:+syhhhhys+:.
|
||||
aosc_os = AsciiArt(match=r'''"AOSC OS"*''', color='4 0 1 3', ascii=r"""
|
||||
${c2} __
|
||||
${c2}gpBBBBBBBBBP
|
||||
${c2}_gBBBBBBBBBRP
|
||||
${c2}4BBBBBBBBRP ${c4},_____
|
||||
${c2}`"" ${c4}_g@@@@@@@@@@@@@%g>
|
||||
${c4}__@@@@@@@@@@@@@@@@P" ${c1}___
|
||||
${c4}_g@@@@@@@@@@@@@@@N"` ${c1}_gN@@@@@N^
|
||||
${c4}_w@@@@@@@@@@@@@@@@P" ${c1}_g@@@@@@@P"
|
||||
${c4}_g@@@@@@@@@@@@@@@N"` ${c1}VMNN@NNNM^`
|
||||
${c4}^MMM@@@@@@@@@@@MP" ${c3},ggppww__
|
||||
${c4}`"\"\"\"" ${c3}_wNNNNNNNNNNNNNNNNNNN
|
||||
${c3}_gBNNNNNNNNNNNNNNNNNP"
|
||||
${c3}_wNNNNNNNNNNNNNNNNNNMP`
|
||||
${c3}_gBNNNNNNNNNNNNNNNNNP"
|
||||
${c3}_wNNNNNNNNNNNNNNNNNNNM^
|
||||
${c3}""Y^^MNNNNNNNNNNNNP`
|
||||
${c3}`"\"\""\"\""
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
archcraft_ascii = AsciiArt(match=r'''"archcraft_ascii"*''', color='6 1 2 3 4 5', ascii=r"""
|
||||
${c1} -o\
|
||||
:ooo:
|
||||
.ooooo.
|
||||
ooooooo.
|
||||
+oooooooo.
|
||||
-oooooooooo.
|
||||
--:-+oooooooo.
|
||||
yooo+=+sooooooo.
|
||||
yoooooosooooooooo.
|
||||
y+ooooooooooooooooo.
|
||||
yoooooooooooooooooooo`
|
||||
yoooooo+oo= :oo++ooooo`
|
||||
:oooooo. +ooooo-
|
||||
-ooooooo. .::. +ooosoo=
|
||||
-oooooo` .oooo` +os-=o=
|
||||
=ooooooo=: `oo+ :=ooo=--`.
|
||||
+ooooooooos. .=sooooooo+-
|
||||
.+osossos+-` `-+osososs+.
|
||||
:sss+=-:` `:-=+ssss:
|
||||
:=-:` `-=+:
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
archcraft_minimal = AsciiArt(match=r'''"archcraft_minimal"*''', color='6 1 2 3 4 5', ascii=r"""
|
||||
${c1} ⢰⡆
|
||||
⢠⣿⣿⡄
|
||||
⢀⣾⣿⣿⣿⡀
|
||||
⣼⣿⣿⣿⣿⣷⡀
|
||||
⣼⣿⣿⣿⣿⣿⣿⣷
|
||||
⢼⣿⣿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣰⣤⣈⠻⢿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣰⣿⣿⣿⣿⣮⣿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧
|
||||
⣼⣿⣿⣿⣿⣿⡿⣿⣿⡟ ⠸⣿⣿⡿⣿⣿⣿⣿⣿⣷⡀
|
||||
⣼⣿⣿⣿⣿⣿⡏ ⠈⣿⣿⣿⣿⣿⣷⡀
|
||||
⢀⣼⣿⣿⣿⣿⣿⣿⡗ ⢀⣠⣤⣀ ⠸⣿⣿⣿⣿⣿⣿⣷⡀
|
||||
⢀⣾⣿⣿⣿⣿⣿⡏⠁ ⢠⣿⣿⣿⣿⡇ ⢙⣿⣿⣻⠿⣿⣷⡀
|
||||
⢀⣾⣿⣿⣿⣿⣿⣿⣷⣤⡀ ⠻⣿⣿⡿⠃ ⢀⣼⣿⣿⣿⣿⣦⣌⠙
|
||||
⢠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏ ⢿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀
|
||||
⢠⣿⣿⣿⣿⣿⣿⣿⡿⠟⠋⠁ ⠙⠻⣿⣿⣿⣿⣿⣿⣿⣿⡄
|
||||
⣠⣿⣿⣿⣿⠿⠛⠋⠁ ⠉⠙⠻⢿⣿⣿⣿⣿⣆
|
||||
⡰⠟⠛⠉⠁ ⠉⠙⠛⠿⢆
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
astra_linux = AsciiArt(match=r'''"Astra Linux"*''', color='160 231', ascii=r"""
|
||||
${c1} AA
|
||||
${c1} AaaA
|
||||
${c1} Aa${c2}/\${c1}aA
|
||||
${c1} Aa${c2}/${c1}aa${c2}\${c1}aA
|
||||
${c1} Aa${c2}/${c1}aAAa${c2}\${c1}aA
|
||||
${c1} aA${c2}/${c1}aaAAaa${c2}\${c1}Aa
|
||||
${c1} aA${c2}/${c1}aaAAAAaa${c2}\${c1}Aa
|
||||
${c1} aaaaaaAAAAa${c2}/${c1}aaAAAAAAaa${c2}\${c1}aAAAAaaaaa
|
||||
${c1} aAAa${c2}-----${c1}aaaaaAAAAAAAAAAaaaaa${c2}-----${c1}aAAa
|
||||
${c1} aAA${c2}\ ${c1}aAAAAAAAAAAAAAAAAAAAAAAa${c2} /${c1}AAa
|
||||
${c1} aAa${c2}\${c1}aAAA${c2}\${c1}AAAA${c2}\${c1}AAAA${c2}\${c1}AAA${c2}\${c1}AAa${c2}/${c1}aAa
|
||||
${c1} aAa${c2}\${c1}aA${c2}\\${c1}AAA${c2}\\${c1}AAA${c2}\\${c1}AA${c2}\\/${c1}aAa
|
||||
${c1} aAA${c2}\${c1}aA${c2}\\${c1}AAA${c2}\\${c1}AAA${c2}\\${c1}Aa${c2}/${c1}AAa
|
||||
${c1} aA${c2}\${c1}aA${c2}\\${c1}AAA${c2}\\${c1}AAA${c2}\\/${c1}Aa
|
||||
${c1} aA${c2}/${c1}AA${c2}\\\${c1}AA${c2}\\\${c1}AA${c2}\\\${c1}Aa
|
||||
${c1} aA${c2}/\${c1}AAa${c2}\\\${c1}Aa${c2}\\\${c1}Aa${c2}\\\${c1}Aa
|
||||
${c1} aA${c2}/\\${c1}AAa${c2}\\/\${c1}a${c2}\\\${c1}Aa${c2}\\${c1}Aa
|
||||
${c1} aA${c2}/${c1}a${c2}\\\${c1}Aa${c2}\/${c1}AA${c2}\\\\\${c1}Aa${c2}\\${c1}Aa
|
||||
${c1} aA${c2}/${c1}aA${c2}\\/${c1}aAa aAa${c2}\\\${c1}Aa${c2}\${c1}Aa
|
||||
${c1} aA${c2}/\${c1}A${c2}\/${c1}Aa aA${c2}\\${c1}A${c2}\\${c1}Aa
|
||||
${c1} A${c2}|/${c1}aaAa aAaa${c2}\|${c1}A
|
||||
${c1} aAaa aaAa
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
athena = AsciiArt(match=r'''"Athena"*''', color='7 3', ascii=r"""
|
||||
${c1} . ..
|
||||
${c1} :####: ####.
|
||||
${c1} .################
|
||||
${c1} :##################
|
||||
${c1}.###################.
|
||||
${c1}######## #######
|
||||
${c1}####### ${c2}####${c1} #####
|
||||
${c1}:#######. ####
|
||||
${c1} ######### ${c2}#${c1} ## #
|
||||
${c1} ####### ${c2}##${c1} ####
|
||||
${c1}######## ${c2}####${c1} #######
|
||||
${c1}######## ${c2}#####${c1} ########
|
||||
${c1}######## ${c2}#######${c1} #######
|
||||
${c1} ####### ${c2}########${c1} #######
|
||||
${c1} ######## ${c2}#########${c1} ######
|
||||
${c1} ######## ${c2}#########${c1} #####
|
||||
${c1} ####### ${c2}#########${c1} ####
|
||||
${c1} ####### ${c2}#########${c1} ##
|
||||
${c1} ####### ${c2}########${c1} ##
|
||||
${c1} ###### ${c2}########${c1} #
|
||||
${c1} ### ${c2}#######${c1}
|
||||
${c1} ${c2}######${c1}
|
||||
${c1} ${c2}####${c1}
|
||||
${c1} ${c2}##${c1}
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
azos = AsciiArt(match=r'''"azos"*''', color='6 1', ascii=r"""
|
||||
${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} (((((
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
digital_unix = AsciiArt(match=r'''"digital UNIX"*''', color='1 6 7', ascii=r"""
|
||||
${c1} +-+-+-+-+-+-+-+
|
||||
|${c3}d${c1}|${c3}i${c1}|${c3}g${c1}|${c3}i${c1}|${c3}t${c1}|${c3}a${c1}|${c3}l${c1}|
|
||||
+-+-+-+-+-+-+-+
|
||||
${c2} _ _ _ _ _______ __
|
||||
| | | | \ | |_ _\ \ / /
|
||||
| | | | \| | | | \ V /
|
||||
| | | | . ` | | | > <
|
||||
| |__| | |\ |_| |_ / . \
|
||||
\____/|_| \_|_____/_/ \_\
|
||||
""")
|
||||
|
||||
@@ -8,6 +8,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
if not name:
|
||||
return None
|
||||
name = name.lower()
|
||||
if name.startswith('adélie') or name.startswith('adelie'):
|
||||
from .adélie import adélie
|
||||
return adélie
|
||||
|
||||
if name.startswith('aix'):
|
||||
from .aix import aix
|
||||
return aix
|
||||
@@ -88,13 +92,9 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .antix import antix
|
||||
return antix
|
||||
|
||||
if name.startswith('aosc os/retro'):
|
||||
from .aosc_os_retro import aosc_os_retro
|
||||
return aosc_os_retro
|
||||
|
||||
if name == 'aoscosretro_small':
|
||||
from .aoscosretro_small import aoscosretro_small
|
||||
return aoscosretro_small
|
||||
if name.startswith('afterglow'):
|
||||
from .afterglow import afterglow
|
||||
return afterglow
|
||||
|
||||
if name.startswith('aosc os'):
|
||||
from .aosc_os import aosc_os
|
||||
@@ -104,6 +104,14 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .apricity import apricity
|
||||
return apricity
|
||||
|
||||
if name.startswith('archcraft_ascii'):
|
||||
from .archcraft_ascii import archcraft_ascii
|
||||
return archcraft_ascii
|
||||
|
||||
if name.startswith('archcraft_minimal'):
|
||||
from .archcraft_minimal import archcraft_minimal
|
||||
return archcraft_minimal
|
||||
|
||||
if name.startswith('archcraft'):
|
||||
from .archcraft import archcraft
|
||||
return archcraft
|
||||
@@ -152,10 +160,18 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .archmerge import archmerge
|
||||
return archmerge
|
||||
|
||||
if name.startswith('aeros'):
|
||||
from .aeros import aeros
|
||||
return aeros
|
||||
|
||||
if name.startswith('arch'):
|
||||
from .arch import arch
|
||||
return arch
|
||||
|
||||
if name.startswith('unicodearch'):
|
||||
from .unicodearch import unicodearch
|
||||
return unicodearch
|
||||
|
||||
if name.startswith('artix_small'):
|
||||
from .artix_small import artix_small
|
||||
return artix_small
|
||||
@@ -176,9 +192,13 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .asteroidos import asteroidos
|
||||
return asteroidos
|
||||
|
||||
if name.startswith('aster'):
|
||||
from .aster import aster
|
||||
return aster
|
||||
if name.startswith('athena'):
|
||||
from .athena import athena
|
||||
return athena
|
||||
|
||||
if name.startswith('azos'):
|
||||
from .azos import azos
|
||||
return azos
|
||||
|
||||
if name.startswith('bedrock'):
|
||||
from .bedrock import bedrock
|
||||
@@ -360,6 +380,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .debian import debian
|
||||
return debian
|
||||
|
||||
if name.startswith('digital unix'):
|
||||
from .digital_unix import digital_unix
|
||||
return digital_unix
|
||||
|
||||
if name.startswith('droidian'):
|
||||
from .droidian import droidian
|
||||
return droidian
|
||||
@@ -368,6 +392,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .deepin import deepin
|
||||
return deepin
|
||||
|
||||
if name.startswith('openkylin'):
|
||||
from .openkylin import openkylin
|
||||
return openkylin
|
||||
|
||||
if name == 'desaos':
|
||||
from .desaos import desaos
|
||||
return desaos
|
||||
@@ -420,6 +448,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .elive import elive
|
||||
return elive
|
||||
|
||||
if name.startswith('endeavouros_small'):
|
||||
from .endeavouros_small import endeavouros_small
|
||||
return endeavouros_small
|
||||
|
||||
if name.startswith('endeavouros'):
|
||||
from .endeavouros import endeavouros
|
||||
return endeavouros
|
||||
@@ -440,6 +472,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .eurolinux import eurolinux
|
||||
return eurolinux
|
||||
|
||||
if name.startswith('evolutionos'):
|
||||
from .evolutionos import evolutionos
|
||||
return evolutionos
|
||||
|
||||
if name.startswith('exherbo'):
|
||||
from .exherbo import exherbo
|
||||
return exherbo
|
||||
@@ -460,6 +496,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .feren import feren
|
||||
return feren
|
||||
|
||||
if name.startswith('femboyos'):
|
||||
from .femboyos import femboyos
|
||||
return femboyos
|
||||
|
||||
if name.startswith('finnix'):
|
||||
from .finnix import finnix
|
||||
return finnix
|
||||
@@ -580,6 +620,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .iglunix import iglunix
|
||||
return iglunix
|
||||
|
||||
if name.startswith('interix'):
|
||||
from .interix import interix
|
||||
return interix
|
||||
|
||||
if name.startswith('januslinux') or name.startswith('janus') or name.startswith('ataraxia linux') or name.startswith('ataraxia'):
|
||||
from .januslinux import januslinux
|
||||
return januslinux
|
||||
@@ -624,6 +668,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .kubuntu import kubuntu
|
||||
return kubuntu
|
||||
|
||||
if name.startswith('lainos'):
|
||||
from .lainos import lainos
|
||||
return lainos
|
||||
|
||||
if name.startswith('lede'):
|
||||
from .lede import lede
|
||||
return lede
|
||||
@@ -648,6 +696,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .linux import linux
|
||||
return linux
|
||||
|
||||
if name == 'linux_small':
|
||||
from .linux_small import linux_small
|
||||
return linux_small
|
||||
|
||||
if name.startswith('linuxlite_small'):
|
||||
from .linuxlite_small import linuxlite_small
|
||||
return linuxlite_small
|
||||
@@ -688,6 +740,14 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .magpieos import magpieos
|
||||
return magpieos
|
||||
|
||||
if name.startswith('mainsailos_small'):
|
||||
from .mainsailos_small import mainsailos_small
|
||||
return mainsailos_small
|
||||
|
||||
if name.startswith('mainsailos'):
|
||||
from .mainsailos import mainsailos
|
||||
return mainsailos
|
||||
|
||||
if name.startswith('mandriva') or name.startswith('mandrake'):
|
||||
from .mandriva import mandriva
|
||||
return mandriva
|
||||
@@ -712,6 +772,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .maui import maui
|
||||
return maui
|
||||
|
||||
if name.startswith('meowix'):
|
||||
from .meowix import meowix
|
||||
return meowix
|
||||
|
||||
if name.startswith('mer'):
|
||||
from .mer import mer
|
||||
return mer
|
||||
@@ -792,6 +856,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .nixos import nixos
|
||||
return nixos
|
||||
|
||||
if name.startswith('nobara'):
|
||||
from .nobara import nobara
|
||||
return nobara
|
||||
|
||||
if name.startswith('nomadbsd'):
|
||||
from .nomadbsd import nomadbsd
|
||||
return nomadbsd
|
||||
@@ -844,9 +912,9 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .openstage import openstage
|
||||
return openstage
|
||||
|
||||
if name.startswith('openwrt'):
|
||||
from .openwrt import openwrt
|
||||
return openwrt
|
||||
if (name.startswith('wrt') or name.endswith('wrt')):
|
||||
from .wrt import wrt
|
||||
return wrt
|
||||
|
||||
if name.startswith('open source media center') or name == 'osmc':
|
||||
from .open_source_media_center import open_source_media_center
|
||||
@@ -876,6 +944,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .pacbsd import pacbsd
|
||||
return pacbsd
|
||||
|
||||
if name.startswith('panwah'):
|
||||
from .panwah import panwah
|
||||
return panwah
|
||||
|
||||
if name.startswith('parabola_small'):
|
||||
from .parabola_small import parabola_small
|
||||
return parabola_small
|
||||
@@ -920,6 +992,14 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .pisi import pisi
|
||||
return pisi
|
||||
|
||||
if name.startswith('pikaos'):
|
||||
from .pikaos import pikaos
|
||||
return pikaos
|
||||
|
||||
if name.startswith('phyos'):
|
||||
from .phyos import phyos
|
||||
return phyos
|
||||
|
||||
if name.startswith('pnm linux') or name.startswith('whpnm linux'):
|
||||
from .pnm_linux import pnm_linux
|
||||
return pnm_linux
|
||||
@@ -964,6 +1044,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .pureos import pureos
|
||||
return pureos
|
||||
|
||||
if name.startswith('peropesis'):
|
||||
from .peropesis import peropesis
|
||||
return peropesis
|
||||
|
||||
if name.startswith('q4os'):
|
||||
from .q4os import q4os
|
||||
return q4os
|
||||
@@ -1044,6 +1128,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .rosa import rosa
|
||||
return rosa
|
||||
|
||||
if name.startswith('astra linux'):
|
||||
from .astra_linux import astra_linux
|
||||
return astra_linux
|
||||
|
||||
if name.startswith('sabotage'):
|
||||
from .sabotage import sabotage
|
||||
return sabotage
|
||||
@@ -1068,6 +1156,14 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .sasanqua import sasanqua
|
||||
return sasanqua
|
||||
|
||||
if name.startswith('salient os') or name.startswith('salientos') or name.startswith('salientos'):
|
||||
from .salient_os import salient_os
|
||||
return salient_os
|
||||
|
||||
if name.startswith('salix'):
|
||||
from .salix import salix
|
||||
return salix
|
||||
|
||||
if name.startswith('scientific'):
|
||||
from .scientific import scientific
|
||||
return scientific
|
||||
@@ -1088,6 +1184,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .siduction import siduction
|
||||
return siduction
|
||||
|
||||
if name.startswith('slackel'):
|
||||
from .slackel import slackel
|
||||
return slackel
|
||||
|
||||
if name.startswith('slackware_small'):
|
||||
from .slackware_small import slackware_small
|
||||
return slackware_small
|
||||
@@ -1260,6 +1360,10 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .urukos import urukos
|
||||
return urukos
|
||||
|
||||
if name.startswith('venom_small'):
|
||||
from .venom_small import venom_small
|
||||
return venom_small
|
||||
|
||||
if name.startswith('venom'):
|
||||
from .venom import venom
|
||||
return venom
|
||||
@@ -1308,10 +1412,18 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .windows_10 import windows_10
|
||||
return windows_10
|
||||
|
||||
if name == 'windows95':
|
||||
from .windows95 import windows95
|
||||
return windows95
|
||||
|
||||
if name.startswith('windows'):
|
||||
from .windows import windows
|
||||
return windows
|
||||
|
||||
if name.startswith('xray_os'):
|
||||
from .xray_os import xray_os
|
||||
return xray_os
|
||||
|
||||
if name.startswith('xubuntu'):
|
||||
from .xubuntu import xubuntu
|
||||
return xubuntu
|
||||
@@ -1328,6 +1440,14 @@ def detect(name: str) -> AsciiArt | None:
|
||||
from .irix import irix
|
||||
return irix
|
||||
|
||||
if name.startswith('xenia2'):
|
||||
from .xenia2 import xenia2
|
||||
return xenia2
|
||||
|
||||
if name.startswith('xenia'):
|
||||
from .xenia import xenia
|
||||
return xenia
|
||||
|
||||
if name.startswith('zorin'):
|
||||
from .zorin import zorin
|
||||
return zorin
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
endeavouros_small = AsciiArt(match=r'''"endeavouros_small"*''', color='1 5 4', ascii=r"""
|
||||
${c1} /${c2}o${c3}.
|
||||
${c1} :${c2}sssso${c3}-
|
||||
${c1} :${c2}ossssssso${c3}:
|
||||
${c1} /${c2}ssssssssssso${c3}+
|
||||
${c1} -+${c2}ssssssssssssssso${c3}+
|
||||
${c1} //${c2}osssssssssssssso${c3}+-
|
||||
`+++++++++++++++-`
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
evolutionos = AsciiArt(match=r'''"EvolutionOS"*''', color='4 7', ascii=r"""
|
||||
${c1}\e[1;32m dddddddddddddddddddddddd
|
||||
.dddd''''''''''''''''''''''dddd.
|
||||
dd: dddddddddddddddddddd; dd:
|
||||
dd: ldl:'''''''''''''''' dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: ddddddd; ddddd; dd:
|
||||
dd: ldl: ''''''' ''''' dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: dd:
|
||||
dd: ldl: ddddddddddddddd; dd:
|
||||
dddd:.''' ''''''''''''''' dddd:
|
||||
dddddddddddddddddddddddddd;;'
|
||||
'''''''''''''''''''''''''\e[0m
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
femboyos = AsciiArt(match=r'''"FemboyOS"*''', color='4', ascii=r"""
|
||||
${c1}MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMWKkxkKWMMMMMMMMMMMMMMMMMMMMWKkxkKWMM
|
||||
MMMMXo. .;xKWMMMMMMMMMMMMMMMMMMXo. .oXMM
|
||||
MMWXx,..'..oXMMMMMMMMMMMMMMMMWKx, .lXMM
|
||||
MMNo. .cOc.,xKWMMMMMMMMMMMMWXx;.....cXMM
|
||||
MMXl..;kKl. .oXMMMMMMMMMMWKx;..,ok:.'o0W
|
||||
WKx,.cKWNk;..lXMMMMMMMMWKx;..,o0NXl. .oN
|
||||
No. .lXMMWKc.,dKWMMMMMMNo..;d0NWMNx,..lX
|
||||
Nk:,:kNMMMNk:,ckNMMMMMMNxcxXWMMMMMN0ockN
|
||||
MWNNNWMMMMMWNNNWMMMMMMMMWWWMMMMMMMMMWWWM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMNXKXNWMMMMMMMMMMMWNKOKWMMMMMMMMMM
|
||||
MMMMMMWKdccxXMMMMMMMMMMW0o'.oXMMMMMMMMMM
|
||||
MMMMMMMNO:.'o0NKkkkkkOXXo. .lXMMMMMMMMMM
|
||||
MMMMMMMMNx,..;o;. .:o,..;kNMMMMMMMMMM
|
||||
MMMMMMMMMNO: ... .cKWMMMMMMMMMMM
|
||||
MMMMMMMMMMNx,. .;dk:. .;kNMMMMMMMMMMMM
|
||||
MMMMMMMMMMMN0ocxXWNkl:,:xXWMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMWNWMMMWWNNNWMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
interix = AsciiArt(match=r'''"Interix"*''', color='1 7 4 0 3', ascii=r"""
|
||||
${c1} .${c3}.
|
||||
${c1} 75${c3}G!
|
||||
${c1} ^?PG${c3}&&J.
|
||||
${c1} :!5GPP${c3}&&&B!
|
||||
${c1} :YPPPPP${c3}&&&&&Y:
|
||||
${c1} !5PPPPPP${c3}&&&&&&B!
|
||||
${c1} :?PPPPPPPP${c3}&&&&&&&&Y~
|
||||
${c1} !5PPPPPPPPP${c3}###&&&&&&B7
|
||||
${c1} :?PPPP5555555${c3}B####&&&&&&5:
|
||||
${c1} ~5PPPP555YJ${c5}7!~7?${c3}5B###&&&&&B?.
|
||||
${c1} .:JPPPP5555Y${c5}?^....:^?${c3}G####&&&&&5:
|
||||
${c1} 75PPP555555Y${c5}7:....:^!${c3}5#####&&&&&B7.
|
||||
${c1} :JPPPP${c2}555555YY?${c5}~::::^~${c2}7YPGBB###${c3}&&&&&5^
|
||||
${c1}75${c2}GGPPPPPP555555YJ?77??YYYYYY55PPGGB#${c3}&B?
|
||||
${c2}~!!7JY5PGGBBBBBBBBGGGGGGGBGGGGGP5YJ?7~~~
|
||||
.::^~7?JYPGBB#BGPYJ?7!7^:.
|
||||
..:^...
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
lainos = AsciiArt(match=r'''"LainOS"*''', color='4 14 7 2 3 5', ascii=r"""
|
||||
${c2} /==\
|
||||
\==/
|
||||
${c1} · · · · · · ·
|
||||
· · · · · · · · · ·
|
||||
· · · ${c2}.-======-.${c1}· · · ·
|
||||
${c2} .::.${c1} ·${c2}.-============-.${c1}· ${c2}.::.
|
||||
.:==:${c1}· ${c2}.:===:'${c1}. ·· .${c2}':===:.${c1} ·${c2}:==:.
|
||||
.:===:${c1} · ${c2}:===.${c1} · ${c3}.--.${c1} · ${c2}.===:${c1} · ${c2}:===:.
|
||||
:===:${c1}· · ${c2}:===.${c1} · ${c3}.:====:.${c1} · ${c2}.===:${c1} · ·${c2}:===:
|
||||
(===:${c1}· · ${c2}:===-${c1} · ${c3}:======:${c1} · ${c2}-===:${c1} · ·${c2}:===)
|
||||
:===:${c1}· · ${c2}:===.${c1} · ${c3}':====:'${c1} · ${c2}.===:${c1} · ·${c2}:===:
|
||||
':===:${c1} · ${c2}:===.${c1} · ${c3}'--'${c1} · ${c2}.===:${c1} · ${c2}:===:'
|
||||
':==:${c1}· ${c2}':===:.${c1}' ·· '${c2}.:===:'${c1} ·${c2}:==:'
|
||||
'::'${c1} · ${c2}'===-. .-==='${c1} · ${c2}'::'
|
||||
${c2}/==\${c1} · · · ${c2}:=== ===:${c1} · · · ${c2}/==\
|
||||
\==/${c1} · · ·${c2}:===${c1} ·${c2}===:${c1}· · · ${c2}\==/${c2}
|
||||
.-. ${c1}· ${c2}:===${c1}· ${c2}===:${c1} ·${c2} ${c2}.-.
|
||||
.===. .=== ===. .===.
|
||||
.======== ========.
|
||||
''''' '''''
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
linux_small = AsciiArt(match=r'''"Linux_small"''', color='fg 8 3', ascii=r"""
|
||||
${c2} ___
|
||||
${c2} (${c1}.. ${c2}|
|
||||
${c2} (${c3}<> ${c2}|
|
||||
${c2} / ${c1}__ ${c2}\
|
||||
${c2} ( ${c1}/ \ ${c2}/|
|
||||
${c3}_${c2}/\ ${c1}__)${c2}/${c3}_${c2})
|
||||
${c3}\/${c2}-____${c3}\/
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
mainsailos = AsciiArt(match=r'''"MainsailOS"*''', color='1', ascii=r"""
|
||||
${c1} -
|
||||
*%:
|
||||
:%%%#
|
||||
=%%%%%-
|
||||
*%%%%%%#
|
||||
:#%%%%%%%#.
|
||||
-%%%%%%%%+
|
||||
*%%%%%%%%- :
|
||||
.#%%%%%%%#. *%=
|
||||
-%%%%%%%%+ :#%%%*
|
||||
+%%%%%%%%- =%%%%%%#.
|
||||
.#%%%%%%%#. *%%%%%%%%:
|
||||
-%%%%%%%%* :#%%%%%%%#.
|
||||
+%%%%%%%%- =%%%%%%%%+ :%*.
|
||||
.#%%%%%%%#: *%%%%%%%%- +%%%%*:
|
||||
:%%%%%%%%* :#%%%%%%%#. .*%%%%%%%*
|
||||
+%%%%%%%%= -%%%%%%%%+ :%%%%%%%%*
|
||||
.#%%%%%%%%: *%%%%%%%%- =%%%%%%%%=
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
mainsailos_small = AsciiArt(match=r'''"MainsailOS_small"*''', color='1', ascii=r"""
|
||||
${c1} -:
|
||||
+%*
|
||||
.#%%+
|
||||
-%%%: +=
|
||||
+%%#..#%%-
|
||||
.#%%+ -%%%- +=
|
||||
-%%%- +%%#..#%%+
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
meowix = AsciiArt(match=r'''"Meowix"*''', color='1 3 3 4', ascii=r"""
|
||||
${c1} #${c2}% ${c3}&${c4}*
|
||||
${c1} ##${c2}%% ${c3}&&${c4}**
|
||||
${c1} ## ${c2}%% ${c3}&& ${c4}**
|
||||
${c1} ## ${c2}%% ${c3}&& ${c4}**
|
||||
${c1} ## ${c2}%% ${c3}&& ${c4}**
|
||||
${c1} ## ${c2}%% ${c3}&& ${c4}**
|
||||
${c1} ## ${c2}%%${c3}&& ${c4}**
|
||||
${c1} ## ${c2}%% ${c4}**
|
||||
${c1} ## ${c4}**
|
||||
${c1}## ${c4}**
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
nobara = AsciiArt(match=r'''"Nobara"*''', color='"#999999" "#d80a0a" "#e5b90b"', ascii=r"""
|
||||
${c1} ⢀⣤⣴⣶⣶⣶⣦⣤⡀⠀⣀⣠⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠉⠁⠀⠀⠉⠉⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀${c3}⢀⣀⣀⡀${c1}⠀⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀${c3}⢠⣾⣿⣿⣿⣿⣷⡄${c1}⠀⠀⠀⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀${c3}⣿⣿⣿⣿⣿⣿⣿⡇${c1}⠀⠀⠀⠀⠀⣀⣀⣬⣽⣿⣿⣿⣿⣿⣿⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀${c3}⠈⠻⢿⣿⣿⡿⠟⠁${c1}⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
${c2} ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
${c2} ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
${c2} ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀
|
||||
${c2} ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠛⠉⠉⠛⠛⢿⣿⣿⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀
|
||||
${c2} ⠘⢿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀
|
||||
${c2} ⠈⠙⠛⠛⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠛⠛⠛⠉⠁
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
openkylin = AsciiArt(match=r'''"openKylin"*''', color='2 7', ascii=r"""
|
||||
${c1}
|
||||
/KKK]
|
||||
KKKKKKK` ]KKKK\
|
||||
KKKKK/ /KKKKKKKKK\
|
||||
KKKK/ ,KKKKKKKKKKKK^
|
||||
,]KKK =KKK` /KKKKKKOOOOOO`
|
||||
,KKKKKK =KK /` [\OOOOOOO\
|
||||
\KKKKK =K ,OOOOOOO`
|
||||
,KKKKK =^ \OOOOOO
|
||||
,KKKK ^ OOOOOO^
|
||||
*KKK^ =OOOOO^
|
||||
OOKK^ OOOOOO^
|
||||
\OOOK\ /OOOOOO`
|
||||
OOOOOO] ,OOOOOOO^
|
||||
,OOOOOOOO\] ,[OOOOOOOOO/
|
||||
\OOOOOOOOOOOOOOOOOOOOO`
|
||||
[OOOOOOOOOOOOOOOO/`
|
||||
,[OOOOOOOOO]
|
||||
""")
|
||||
|
||||
@@ -5,16 +5,16 @@ from . import AsciiArt
|
||||
opensuse_tumbleweed = AsciiArt(match=r'''"openSUSE Tumbleweed"* | "openSUSE_Tumbleweed"*''', color='2 7', ascii=r"""
|
||||
${c2} ......
|
||||
.,cdxxxoc,. .:kKMMMNWMMMNk:.
|
||||
cKMMN0OOOKWMMXo. ; ;0MWk:. .:OMMk.
|
||||
;WMK;. .lKMMNM, :NMK, .OMW;
|
||||
cMW; 'WMMMN ,XMK, oMM'
|
||||
.MMc ..;l. xMN: KM0
|
||||
'MM. 'NMO oMM
|
||||
cKMMN0OOOKWMMXo. A ;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,
|
||||
KM0 .kMM0' .dl>~,. .WMd
|
||||
'XM0. ,OMMK' OMMM7' .XMK
|
||||
*WMO:. .;xNMMk' NNNMKl. .xWMx
|
||||
^ONMMNXMMMKx; V 'xNMWKkxllox0NMWk'
|
||||
''''' ':dOOXXKOxl'
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
panwah = AsciiArt(match=r'''"Panwah"*''', color='7 1 0', ascii=r"""
|
||||
${c1}
|
||||
HHH
|
||||
HAAAH HHH
|
||||
HAAAAH HAAAH
|
||||
HAAAAAAH HAAAAH
|
||||
HAAAAAAH HAAAAAH
|
||||
HAAAAAAAAH${c2}WWWWWWWWWWWWWWWW ${c1}HAAAAAH$
|
||||
HAAAAAAAAH${c2}WWWWWWWWWWWWWWWWWWWW${c1} HAAAAAH
|
||||
HAA${c2}WWWWWWWWWWWWWWWWWWWWWWWWWWWWW${c1}AAAAAH${c2}
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW${c1}WAH${c2}
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWWWWW${c1}AAA${c2}WWWW WWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
WWWW${c1}AAA${c2}WWWWW WWWWWWW WWWWWWWWWWWWWWW
|
||||
WW${c1}AAA${c2}WWWWWWWWWWWWWWWWW WWWWW${c1}AAA${c2}WWWWWWWW
|
||||
${c1}AAA${c2}WWWWW${c1}OOOOOOOOOOO${C2}WWWWWWWWWWW${c1}AAA${c2}WWWWWW
|
||||
${c1}OOOO${c3}GGGGGGG${c1}OOOO${c2}WWWWWWWWWW${c1}AAA${c2}WWWW
|
||||
${c1}OOO${c3}GGGGGGG${c1}OOO${c2}WWWWWWWWWWWW${c1}AAA${c2}W
|
||||
${c1}OOOOOOOOO
|
||||
""")
|
||||
|
||||
+26
-30
@@ -2,35 +2,31 @@
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
parch = AsciiArt(match=r'''"parch"* | "Parch"* | "PARCH"*''', color='4 6', ascii=r"""
|
||||
|
||||
${c1} ,#/*%*
|
||||
${c1} #. ..,..,*,,
|
||||
${c1} ,/,,... ,. (/ ...
|
||||
${c1} ,/,........ .,. ./(/%/ .* #*
|
||||
${c1} .**,..... ...,%&. .,
|
||||
${c1} ,%,.... ., ,
|
||||
${c1} ,&,... .,, &. .
|
||||
${c1} (%,... ..,& *.
|
||||
${c1} *&*..... &,,,,,,,#& ..,&/ *. /
|
||||
${c1} *&*,..... &***%&&**,& ...,&* / /
|
||||
${c1} *&,.... &,**,,,**,# ..,&/ .
|
||||
${c1} (/,... &***%%%(, ..,%( #
|
||||
${c1} %*... #,,,% ..*% . *
|
||||
${c1} %,.. .,% . /
|
||||
${c1} %,. ..,,. .%
|
||||
${c1} /,. ${c1} ..# .%
|
||||
${c1} .,. ${c2} @@@@@# ${c1} ./ ./.
|
||||
${c1} ,.. ${c2} #&%.%%@ ${c1} .#%&*
|
||||
${c1} .,.. ${c2} @//(*(@, ${c1} ..
|
||||
${c1} ,.. ${c2} #@ /@@, ${c1}
|
||||
${c1} ... ${c2} &@ @@@ ${c1}
|
||||
${c1} ,,. ${c2} (# .@@#, ${c1} ,
|
||||
${c1} /,.. ${c2} *****@% #****/ ${c1} .
|
||||
${c1} ((*....${c2} /***% %*** ${c1} .,.*
|
||||
${c1} /&&&**,.., ${c2}* **,*,,. ${c1} ...,(&%*
|
||||
${c1} %&&&#*(**,,,,,,,,,,,,,,,*//(&&&&#
|
||||
${c1} /, .,....... .,,***/(/,,/
|
||||
${c1} ./*/#*,,***,,***///(#%%*.
|
||||
parch = AsciiArt(match=r'''"parch"* | "Parch"* | "PARCH"*''', color='4 7 1', ascii=r"""
|
||||
${c1} ,:lodddd.
|
||||
.:clooood.
|
||||
;clllooooc
|
||||
;cclllllloo
|
||||
.cccccllllll
|
||||
. ,cccclllll
|
||||
':::;; ccccclll;
|
||||
.:::cccccccccccll;
|
||||
;::::ccccllllllcll:
|
||||
.;::::cccclllloool::;
|
||||
;;;::::cccclllolc::::;.
|
||||
;;;::::cccclllccc:::::;.
|
||||
;;;::::cccclccccc::::::;.
|
||||
;;;;::::::llcccccc:::::'
|
||||
;;;;:; ,clllccccccc::
|
||||
.;; .cllllllcccccc::;::::'
|
||||
.'''''''''',:lddoooolll
|
||||
'.....'''',cdddooooollll
|
||||
........':oddddoooolllllc
|
||||
....';ldddddooooolllllc:
|
||||
,cdddddddooooollllccc
|
||||
:ddddddoooolllllccc
|
||||
;ddooooolllllcc.
|
||||
:ooollllc.
|
||||
c'
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
peropesis = AsciiArt(match=r'''"Peropesis"*''', color='4 7 1', ascii=r"""
|
||||
${c1}#### #### #### ### #### #### #### # ####
|
||||
# # # # # # # # # # # # #
|
||||
#### ### #### # # #### ### # # #
|
||||
# # # # # # # # # # #
|
||||
# #### # # ### # #### #### # ####
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
phyos = AsciiArt(match=r'''"phyOS"*''', color='33 33 7 1', ascii=r"""
|
||||
${c1}.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.^^^^^.
|
||||
:777777777777777777777777777777^~7777:
|
||||
.~~~~~~~~~~~~~~~~~~~~~^~7777!:!777!.
|
||||
~7!!!!!!!!!!!!!!!!!^:!777~^!777~
|
||||
^77777!!!!!!!!!7!^^7777^^7777^
|
||||
^7777~.~~~~^. .~7777^~7777:
|
||||
:!777~^!777~. !777!:~777!:
|
||||
.!777!:~777!:~77~:!777!.
|
||||
~777!^~7777:^~^!777~
|
||||
^7777^^7777^^7777^
|
||||
:7777~^!7777777:
|
||||
.!777!:!7777!.
|
||||
.~777!:~77~.
|
||||
~7777^~~
|
||||
^7777.
|
||||
:77:
|
||||
..
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
pikaos = AsciiArt(match=r'''"PikaOS"*''', color='11', ascii=r"""
|
||||
${c1} /🐦🐦🐦$ /🐦/🐦 /🐦🐦🐦 /🐦🐦🐦
|
||||
| 🐦__ $|__| 🐦 /🐦__ 🐦/🐦__ 🐦
|
||||
| 🐦 \ 🐦/$| 🐦 /🐦 /🐦🐦🐦| 🐦 \ $| 🐦 \__/
|
||||
| 🐦🐦🐦$| $| 🐦 /🐦/|____ $| 🐦 | $| 🐦🐦🐦
|
||||
| 🐦____/| $| 🐦🐦🐦/ /🐦🐦🐦| 🐦 | 🐦\____ 🐦
|
||||
| 🐦 | $| 🐦_ 🐦 /🐦__ $| 🐦 | 🐦/🐦 \ 🐦
|
||||
| 🐦 | $| 🐦 \ $| 🐦🐦🐦| 🐦🐦🐦| 🐦🐦🐦/
|
||||
|__/ |__|__/ \__/\_______/\______/ \______/ .
|
||||
""")
|
||||
|
||||
@@ -2,24 +2,26 @@
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
reborn_os = AsciiArt(match=r'''"Reborn OS"* | "Reborn"*''', color='2 2 8', ascii=r"""
|
||||
${c3}
|
||||
mMMMMMMMMM MMMMMMMMMm
|
||||
NM MN
|
||||
MM ${c1}dddddddd dddddddd ${c3}MN
|
||||
mM ${c1}dd dd ${c3}MM
|
||||
${c1}dd hhhhhh hhhhh dd
|
||||
${c3}mM ${c1}hh hh ${c3}Mm
|
||||
NM ${c1}hd ${c3}mMMMMMMd ${c1}dh ${c3}MN
|
||||
NM ${c1}dd hh ${c3}mMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||
NM ${c1}dd hh ${c3}mMMMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||
NM ${c1}dd hh ${c3}mMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||
NM ${c1}hd ${c3}mMMMMMMm ${c1}dh ${c3}MN
|
||||
mM ${c1}hh hh ${c3}Mm
|
||||
${c1}dd hhhhhh hhhhhh dd
|
||||
${c3}MM ${c1}dd dd ${c3}MM
|
||||
MM ${c1}dddddddd dddddddd ${c3}MN
|
||||
NM MN
|
||||
mMMMMMMMMM MMMMMMMMMm
|
||||
reborn_os = AsciiArt(match=r'''"Reborn OS"* | "Reborn"*''', color='0 4 6', ascii=r"""
|
||||
${c1} .======================.
|
||||
${c1}.#${c2}#*********${c1}%%${c2}*********#${c1}%:
|
||||
${c1}:%${c2}#**********${c1}%%${c2}**********#${c1}%-
|
||||
${c1}-%${c2}************${c1}%%${c2}************${c1}%=
|
||||
${c1}+%${c2}******${c1}%%#####${c1}%%#####%%${c2}******${c1}%+
|
||||
${c1}*%%#${c2}****${c1}%#${c3}+=====${c1}%%${c3}=====+${c1}#%${c2}****${c1}#%%*
|
||||
${c1}*%${c2}*#${c1}#%%#%#${c3}====+++${c1}%%${c3}+++====${c1}#%#%%#${c2}#*${c1}##.
|
||||
${c1}.##${c2}*****${c1}#%%%#${c3}*++${c1}%######%${c3}*+*${c1}#%%%#${c2}*****${c1}#%.
|
||||
${c1}:%#${c2}*****${c1}#%${c3}*=+*${c1}#%%${c3}*++++++*${c1}%%#${c3}*+=*${c1}%#${c2}*****${c1}#%:
|
||||
${c1}-%#${c2}*****${c1}#%${c3}+====*${c1}%${c3}*++++++++*${c1}%#${c3}====+${c1}%#${c2}******${c1}%-
|
||||
${c1}-%#${c2}*****${c1}#%${c3}+====*${c1}%${c3}*++++++++*${c1}%#${c3}====+${c1}%#${c2}******${c1}%=
|
||||
${c1}:%#${c2}*****${c1}#%${c3}*=+*${c1}#%%${c3}*++++++*${c1}%%#${c3}*+=*${c1}%#${c2}*****${c1}#%-
|
||||
${c1}.##${c2}*****${c1}#%%%#${c3}*+*${c1}%######%${c3}*+*${c1}#%%%#${c2}*****${c1}#%:
|
||||
${c1}.##${c2}**${c1}#%%#%#${c3}====+++${c1}%%${c3}+++====${c1}#%#%%#${c2}#*${c1}##.
|
||||
${c1}*%%#${c2}****${c1}%#${c3}+=====${c1}%%${c3}=====+${c1}#%${c2}****${c1}#%%*
|
||||
${c1}+%${c2}******${c1}%%#####%%#####%%${c2}******${c1}%*
|
||||
${c1}-%${c2}************${c1}%%${c2}************${c1}%=
|
||||
${c1}:%${c2}#**********${c1}%%${c2}**********#${c1}%-
|
||||
${c1}:%${c2}#*********${c1}%%${c2}*********#${c1}%:
|
||||
${c1}.======================.
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
salient_os = AsciiArt(match=r'''"Salient OS"* | "SalientOS"* | "salientos"*''', color='6 6 7 1', ascii=r"""
|
||||
${c1} 00xxxx0
|
||||
00xxxxxx0
|
||||
0xxxxxxxxx 000000
|
||||
0xxxxxxxxxx xxxxxxxxxx0
|
||||
0xxxxxxxxxxx0 xxxxxxxxxxxxx0
|
||||
0xxxxxxxxxxxx0 0xxxxxxxxxxxxxx0
|
||||
0xxxxxxxxxxxxx0 0xxxxxxxxxxxxxxx0
|
||||
0xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx0
|
||||
xxxxxxxxxxxxxxxx0 0xxxxxxxxxxxxxxxx
|
||||
xxxxxxxxxxxxxxxxx 0xxxxxxxxxxxxxxx
|
||||
xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
|
||||
xxxxxxxxxxxxxxxxxx0 xxxxxxxxxxxxxx
|
||||
0xxxxxxxxxxxxxxxxxx0 0xxxxxxxxxxxx0
|
||||
0xxxxxxxxxxxxxxxxxx xxxxxxxxxxx0
|
||||
0xxxxxxxxxxxxxxxxx xxxxxxxxxx0
|
||||
0xxxxxxxxxxxxxxxx xxxxxxxxx0
|
||||
0xxxxxxxxxxxx0 0xxxxxxx0
|
||||
0xxxxxxx0 xxxxxx0
|
||||
0xxx00
|
||||
x00
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
salix = AsciiArt(match=r'''"Salix"*''', color='2', ascii=r"""
|
||||
${c1} __s_aaaaaaaaauuoXSSSSSSSS:
|
||||
._xSSSSSSSSSSSSSSSSSSSSSSSSSS:
|
||||
_aSSSSSSSSSSSSSSSSSSSSSSSSSSSSS:
|
||||
_xSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS:
|
||||
<XSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS:
|
||||
-"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
|
||||
|
||||
.ssssssssssssssssssssssssssssssssssss
|
||||
{SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSl
|
||||
oSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS;
|
||||
:XSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS;
|
||||
{SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
|
||||
-"\"\""\"\""\"\""\"\""\"\""\"\""\"\""\"\""\"\""\"\""\"\"\""'
|
||||
|
||||
<assssssssssssssssssssssssssssssss>
|
||||
nSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS}
|
||||
nSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS}`
|
||||
XSSSSSSSSSSSSSSSSSSSSSSSSSSSS"`
|
||||
SSSSSSSSSSSSSSSSSSSSSSSSS!"`
|
||||
-"\"\""\"\""\"\""\"\""\"\""\"\""\"\""`
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
slackel = AsciiArt(match=r'''"Slackel"*''', color='3', ascii=r"""
|
||||
${c1} _aawmmmmmwwaaaaas,,,_.
|
||||
.ammmmm###mmmmmmm###BQmm##mws
|
||||
.am###mmBmBmBmBmBmBmmmmm#mmmm#2
|
||||
<q###mmBmBmBmBmBmBmBmBmBmBmmBmZ`
|
||||
um#mmmBmBm##U##mmBmBmBmWmmBmWm#(
|
||||
.wm#mmBBmm#Y~ ~XmBmBmWmmmmmBm#e
|
||||
.dm#mmWmm#Z' ]#mBmBmmBZ!"\"\""`
|
||||
.dm#mmBmm#2` ]mmmBmBm#2
|
||||
jm#mmWmm#2` dmmBmBmB#(
|
||||
)m##mBmmWZ` )##mBmBmmZ
|
||||
:dmmmBmBm#' .d#mBmBmWZ(
|
||||
j#mmBmBmme jmmmBmBm#2
|
||||
_m#mBmWmmm' )mmmBmBmmZ`
|
||||
]##mBmmm#2 <m#mBmBmB#^
|
||||
dmmmBmWm#C <m#mBmBmB#(
|
||||
ZmmBmBmmmh. _jm#mmBmBm#(
|
||||
XBmBmBmBmm6s_aum##mmBmBm&^
|
||||
3$mBmBmBmmm#mmmmmmBmBm#2'
|
||||
+ZmBmBmWmBmBmWmmBmBm##!
|
||||
)ZmBmBmmmBmBmmBmB##!`
|
||||
-4U#mBmWmBmBm##2"
|
||||
-!!XU##US*?"-
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
unicodearch = AsciiArt(match=r'''"unicodearch"*''', color='6 6 7 1', ascii=r"""
|
||||
${c1} ▄
|
||||
▟█▙
|
||||
▟███▙
|
||||
▟█████▙
|
||||
▟███████▙
|
||||
▂▔▀▜██████▙
|
||||
▟██▅▂▝▜█████▙
|
||||
▟█████████████▙
|
||||
▟███████████████▙
|
||||
▟█████████████████▙
|
||||
▟███████████████████▙
|
||||
▟█████████▛▀▀▜████████▙
|
||||
▟████████▛ ▜███████▙
|
||||
▟█████████ ████████▙
|
||||
▟██████████ █████▆▅▄▃▂
|
||||
▟██████████▛ ▜█████████▙
|
||||
▟██████▀▀▀ ▀▀██████▙
|
||||
▟███▀▘ ▝▀███▙
|
||||
▟▛▀ ▀▜▙
|
||||
""")
|
||||
|
||||
+19
-17
@@ -4,22 +4,24 @@ from . import AsciiArt
|
||||
|
||||
vanilla = AsciiArt(match=r'''"Vanilla"*''', color='11 15', ascii=r"""
|
||||
${c1}
|
||||
.----:
|
||||
.-------.
|
||||
:---::----:
|
||||
.----::-----.
|
||||
......... :----::-----: ..:::-::::..
|
||||
.-----------------::------------------:
|
||||
----::-----------::----------::::---:
|
||||
-----:::--------::-------:::-------
|
||||
:------::::--::...:::::---------:
|
||||
.---------::.. ..:---------.
|
||||
.::-----::.. .::----::.
|
||||
.:------:.......:-------:
|
||||
.--------::::::::-:::-------.
|
||||
.-------::-----.:-----::------.
|
||||
-----::------: :------::-----
|
||||
:--::--------: .-------::---:
|
||||
:----------:: .:----------
|
||||
|
||||
.OO.
|
||||
.OOOO.
|
||||
.OO${c2}II${c1}OO.
|
||||
IOOO${c2}II${c1}OOOI
|
||||
.OOOO${c2}II${c1}OOOO.
|
||||
............IOOOO${c2}II${c1}OOOOI............
|
||||
OOOOOOOOOOOOOOOOOO${c2}II${c1}OOOOOOOOOOOOOOOOOO
|
||||
OOOO${c2}II${c1}OOOOOOOOOOO${c2}II${c1}OOOOOOOOOOO${c2}II${c1}OOOO
|
||||
OOOOO${c2}III${c1}OOOOOOOO${c2}II${c1}OOOOOOOO${c2}III${c1}OOOOO
|
||||
OOOOOOO${c2}IIII${c1}OO${c2}I....I${c1}OO${c2}IIII${c1}OOOOOOO
|
||||
OOOOOOOOOO${c2}II.. ..II${c1}OOOOOOOOOO
|
||||
OOOOOOO${c2}II. .II${c1}OOOOOOO
|
||||
OOOOOO${c2}II:......:II${c1}OOOOOO
|
||||
OOOOOOOOO${c2}IIIIIIII${c1}OOOOOOOOO
|
||||
OOOOOO${c2}II${c1}OOOOOOOOOOOO${c2}II${c1}OOOOOO
|
||||
OOOO${c2}II${c1}OOOOOOOI IOOOOOO${c2}II${c1}OOOO
|
||||
IOO${c2}II${c1}OOOOOOOO: :OOOOOOOO${c2}II${c1}OOI
|
||||
IOOOOOOOOOOII IIOOOOOOOOOOI
|
||||
""")
|
||||
|
||||
+20
-15
@@ -3,20 +3,25 @@
|
||||
from . import AsciiArt
|
||||
|
||||
venom = AsciiArt(match=r'''"Venom"*''', color='8 4', ascii=r"""
|
||||
${c1} ::::::: :::::::
|
||||
mMMMMMMm dMMMMMMm
|
||||
/MMMMMMMo +MMMMMMM/
|
||||
yMMMMMMN mMMMMMMy
|
||||
NMMMMMMs oMMMMMMm
|
||||
+MMMMMMN: NMMMMMM+
|
||||
hMMMMMMy sMMMMMMy
|
||||
:NMMMMMM::NMMMMMN:
|
||||
oMMMMMMyyMMMMMM+
|
||||
dMMMMMMMMMMMMh
|
||||
/MMMMMMMMMMMN:
|
||||
sMMMMMMMMMMo
|
||||
mMMMMMMMMd
|
||||
+MMMMMMMN:
|
||||
::::::
|
||||
${c1}
|
||||
`-`
|
||||
-yys+/-`
|
||||
`oyyyyy: /osyyyyso+:.
|
||||
/yyyyy+`+yyyyyyyyyys/.
|
||||
.-yyyyys.:+//+oyyyyyyyo.
|
||||
`oy/`oyyyyy/ ./syyyyy:
|
||||
syyys`:yyyyyo` :yyyyy:
|
||||
/yyyyo .syyyyy- .yyyyy.
|
||||
yyyyy. +yyyyy/ /yyyy/
|
||||
`yyyyy :yyyyys` -yyyyo
|
||||
yyyyy. `syyyyy- /yyyy/
|
||||
/yyyyo /yyyyy+ .yyyyy.
|
||||
syyyys. -yyyyys.:yyyy:
|
||||
`oyyyyyo-` `oyyyyy:.sy:
|
||||
:syyyyyyso+/++`/yyyyyo``
|
||||
-oyyyyyyyyyyy-.syyyys.
|
||||
-/+osyyyyso.`+yyyyy/
|
||||
.-/+syo`
|
||||
`.
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
venom_small = AsciiArt(match=r'''"venom_small"*''', color='8 4', ascii=r"""
|
||||
${c1} ++**
|
||||
*===**====+*
|
||||
*====* +===+
|
||||
*==*+===* *===*
|
||||
*===* *===+ *===*
|
||||
*===* +===+ *===*
|
||||
*===* +===* *===*
|
||||
*===* *===+*==*
|
||||
+===+ *===+=*
|
||||
*+====**===*
|
||||
**++
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
windows95 = AsciiArt(match=r'''"Windows95"''', color='6 4 3 2 1 0', ascii=r"""
|
||||
${c6} ___
|
||||
.--=+++++=-:.
|
||||
. _ *%@@@@@@@@@@@@@@*
|
||||
*:+:.__ :+* @@@ @"${c5}_*&%${c6}@@${c4}%&&&*${c6}"@@@
|
||||
"+.-#+ +%* " _ ${c5}++&&&%${c6}@@${c4}%&&&&&#${c6}@@
|
||||
${c5} " , ${c6}%@@ ${c5}&&&&&%${c6}@@${c4}%&&&&&#${c6}@@
|
||||
${c5} * oo *# ${c6}" _ ${c5}&&&&&%${c6}@@${c4}%&&&&&#${c6}@@
|
||||
${c5} " , ${c6}%@@ ${c5}&&&&"${c6}@@@@#*${c4}"&&&${c6}@@
|
||||
.${c5} * oo *# ${c6}" _ %@@@@@@@@@@@@@@@@
|
||||
*:+:.__ :=* %@@ @"${c1}**&%${c6}@@${c3}%&&&*${c6}"@@@
|
||||
"+.-#+ +%* " _ ${c1}&&&&&%${c6}@@${c3}%&&&&&#${c6}@@
|
||||
${c1} " , ${c6}%@@ ${c1}&&&&&%${c6}@@${c3}%&&&&&#${c6}@@
|
||||
${c1} * oo *# ${c6}" _ ${c1}&&&&&%${c6}@@${c3}%&&&&&#${c6}@@
|
||||
${c1} " , ${c6}%@@ ${c1}&&*"${c6}%@@@@@@${c3}"*%&${c6}@@
|
||||
.${c1} * oo *# ${c6}" _ @@@@@@@@@@@@@@@@@
|
||||
*:+:.__ :+# @@@ @%#=+"\"\""\""+==%#@
|
||||
"+.-#+ +%* %+" " ":@
|
||||
" "
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
wrt = AsciiArt(match=r'''*"Wrt"*''', color='4 7 1', ascii=r"""
|
||||
${c1} _______
|
||||
| |.-----.-----.-----.
|
||||
| - || _ | -__| |
|
||||
|_______|| __|_____|__|__|
|
||||
|__|
|
||||
________ __
|
||||
| | | |.----.| |_
|
||||
| | | || _|| _|
|
||||
|________||__| |____|
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
xenia = AsciiArt(match=r'''"Xenia"*''', color='#55CDFD' '#F6AAB7' '#FFFFFF', ascii=r"""
|
||||
${c3} !${c3}`${c3} @
|
||||
${c3} @${c3}```${c3}b @@@@@
|
||||
${c3} @${c3}`````${c3}@ @/${c3}@@@@
|
||||
${c3} @@${c3}``'))))))))))C@@
|
||||
${c3} @@@){)))))())))))))
|
||||
${c3} @r))))@${c1}oooo${c3})))))h)))[
|
||||
${c3} rr)))j${c1}oooooo${c3}(x${c1}ooooo${c3}$@)
|
||||
${c3} rrrxr))r/l;${c1},,,${c3}z@{${c1},,,,,${c3}@@
|
||||
${c3} rr ) ${c2}v${c3} @;@rx
|
||||
${c3} rrr) ${c2}\__^__/${c3} ji
|
||||
${c3} rj]. . r
|
||||
${c3}[[${c2}]]${c1}11111111111111111]
|
||||
${c2}]${c3}[[[${c2}]]][${c1}11111111111111111<
|
||||
${c2}]${c3}[[[[[${c2}]]]]]]]]]]]]]]${c1}-111111[
|
||||
${c2}]-${c3}[[[[[[;${c2}]]]]]]]]]]]]]]]]${c1} 1
|
||||
${c2}]]${c3}[[[[[[[[[[[${c2}]]]]]]]]]]]]]
|
||||
${c1}1${c2}]][${c3}[[[[[[[[[[[[[${c2}<]]]]]]]]]
|
||||
${c1}11${c2}]]]${c3}[[[[[[[[[[[[[[[${c2}]]]]]]]
|
||||
${c1}111${c2}]]]]'${c3}[[[[[[[[[[[[[[${c2}]]]]
|
||||
${c1}111-${c2}]]]]]${c3}[[[[[[[[[[[[[${c2}]]
|
||||
${c1}11111${c2}]]]]]_${c3}[[[[[[[[[[${c2}]
|
||||
${c1}11111${c2}]]]i${c3}[[[[[[[[
|
||||
${c1}1111${c2}]]+${c3}[[[[[[^
|
||||
${c1}11 ${c2}]]${c3}[[[[[[
|
||||
${c1}11 +${c2}]${c3}[[[[
|
||||
${c1}1 ${c2}]${c3}[[
|
||||
`
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
xenia2 = AsciiArt(match=r'''"Xenia2"*''', color='#55CDFD' '#F6AAB7' '#FFFFFF', ascii=r"""
|
||||
${c2} ,c. .c;
|
||||
${c2} .${c1}KMMMk${c2}.... ....${c1}kMMMK${c2}.
|
||||
${c2} .${c1}WMMMMMX${c2}..... .....${c1}KMMMMMW.
|
||||
${c1} XMMMMMMM0${c2}..... ....${c1}OMMMMMMMN
|
||||
${c1} dMMMMMMMMM;${c2}.... ..... ....,${c1}MMMMMMMMMd
|
||||
${c1} WMMMMMMMMMl;${c3}okKKKKKKKKKOo${c1};cMMMMMMMMMM
|
||||
${c1} 'MMMMMMMNX${c2}K0${c3}KKKKKKKKKKKKKKK${c2}0K${c1}XNMMMMMMM;
|
||||
${c1} oMMMMMMM${c2}Oxo${c3}KKKKKKKKKKKKKKKKK${c2}oxO${c1}MMMMMMMd
|
||||
${c1} dMMMMMMM${c2}dxxx${c3}KKKKKKKKKKKKKKK${c2}xxxd${c1}NMMMMMMk
|
||||
${c1} :MMMMX0${c2}xxxxxx${c3}0KKKKKKKK0KK0${c2}xxxxxx0${c1}XMMMMc
|
||||
${c1} MMMO${c2}xxxxxxxxdx${c3}kdd${c2}0x0${c3}ddk${c2}xdxxxxxxxx${c1}OMMM
|
||||
${c1} ;${c2}xxkxddxxxxdodxxxxdxdxxxxdodxxxxddxkxx${c1};
|
||||
${c1}dxd${c2}KMMMWXo${c1}'.....'${c2}cdxxxdc${c1}'.....'${c2}lXWMMMX${c1}dxd
|
||||
${c1}cxd${c2}XMMMN${c1},..........${c2}dxd${c1}'.........'${c2}XMMMN${c1}dxl
|
||||
${c1} .xx${c2}WMMl${c1}...''....'.;k:.'....''...${c2}lMMW${c1}xx.
|
||||
${c1}..:kXMMx..'....''..kMk..''....'..xMMXkc..
|
||||
${c1} dMMMMMMd.....'...xMMMx...''....dMMMMMMx
|
||||
${c1} kMMMMWOoc:coOkolllokOoc:coOWMMMMO
|
||||
${c1} .MMMMMMMMl${c2}...${c1}lNMMMMMMM.
|
||||
${c1} KMMMMMMX${c2}l${c1}KMMMMMMX
|
||||
${c1} .MMMMMMMMM.
|
||||
""")
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# This file is automatically generated. Please do not modify.
|
||||
|
||||
from . import AsciiArt
|
||||
|
||||
xray_os = AsciiArt(match=r'''"Xray_OS"*''', color='15 14 16 24', ascii=r"""
|
||||
${c1} ${c1}rrrrrraaaaaaaaaaaayyyy
|
||||
${c1}xxrrrrrrrraaaaaaaaaaaayyyyyyyyy
|
||||
${c1}xxxxxrrrrrrrraaaaaaaaaaaayyyyyyy${c3}yyyyy${c2}yyyyyyyyyy
|
||||
${c1}xxxxxxxrrrrrrrraaaaa ${c2}aaaaayyyyyyyyyyyyyyyyyyy
|
||||
${c1}xxxxxx${c3}xxx${c1}rrrrrrrraaaa ${c2}aaaaaaayyyyyyyyyyyyyyyyy
|
||||
${c1}xxxxxx${c3}xxxxxr${c1}rrrrrrraa ${c2}aaaaaaaaay${c3}yyyyyyyyy${c2}yyyy ${c1}yy
|
||||
${c1}xxxxxxx${c3}xxx${c1}xxrrrrrrrra ${c2}aaaaaaaaa${c3}ayyyyyyyyyyyy${c1}yyyyyy
|
||||
${c1}xxxxxxxxxxxxrrrrrrrr ${c2}aaaaaaaaaaa${c3}yyyyyyyyyyyy${c1}yyyyyyy
|
||||
${c1}xxxxxxxxxxxxxrrrrrr ${c2}raaaaaaaaaaaayyy${c3}yyyyyyyy${c1}yyyyyy${c1}yyy
|
||||
${c1}xxxxxxxxxxxxxrrrrr ${c2}rraaaaaaaaaaaayyyyy${c3}yy${c2}yyyyyy ${c1}yyyyyy
|
||||
${c1}xxxxxxxx${c3}xxxx${c1}xrrrrr${c2}rr${c3}raaaaaaa${c2}aaaaayyyyyyyyyy ${c1}yyyyyyyyy
|
||||
${c1}xxxxxxx${c3}xxxx${c1}xxrrrrrrr${c3}raaaaaa${c2}aaaaaayyyyyyy ${c1}yyyyyyyyyyyy
|
||||
${c1}xxxxxxx${c3}xxx${c1}xxxrrrrrrrr${c3}aaaaaa${c2}aaaaaayyyy ${c1}yyyyyyyyyyyyyy
|
||||
${c1}xxxxxxxxxxxxrrrrrrrra ${c2}aaaaaaaaaay ${c1}yyyyyyyyyyyyyyyy
|
||||
${c1}xxxxxxxxxxxrrrrrrr ${c2}aaaaaaaaaaaayyyy${c1}yyyyyyyyyyyyy
|
||||
${c1}xxxxxxx${c3}xxxrr${c1}rrrr ${c2}raaaaaaaaaaaa ${c1}yyyyyyyyyyyyyyy
|
||||
${c1}xxxxxxxxrrrr ${c2}rrraaaaaaaaa ${c1}aayyyyyyyyyyyyyy
|
||||
${c1}xxxxxxrrrrrrr ${c2}aaaaaa ${c1}aaaayyyyyyyyyyyy
|
||||
${c1}xxxrrrrrr ${c2}raaa ${c1}aaaaaaayyyyyyyyy
|
||||
${c1}rrrr ${c2}rr ${c1}aaaaaaaaaayyyyyy
|
||||
${c2}r ${c1}aaaaaaaaaa
|
||||
""")
|
||||
|
||||
+71
-79
@@ -2,14 +2,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
import json
|
||||
import random
|
||||
import traceback
|
||||
from itertools import permutations
|
||||
from math import ceil
|
||||
from typing import Iterable
|
||||
|
||||
from . import termenv, neofetch_util
|
||||
from . import termenv, neofetch_util, pride_month
|
||||
from .color_scale import Scale
|
||||
from .color_util import clear_screen
|
||||
from .constants import *
|
||||
@@ -27,57 +27,13 @@ def check_config(path) -> Config:
|
||||
"""
|
||||
if path.is_file():
|
||||
try:
|
||||
return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8')))
|
||||
return Config.from_dict(json.loads(path.read_text('utf-8')))
|
||||
except KeyError:
|
||||
return create_config()
|
||||
|
||||
return create_config()
|
||||
|
||||
|
||||
def literal_input(prompt: str, options: Iterable[str], default: str, show_ops: bool = True) -> str:
|
||||
"""
|
||||
Ask the user to provide an input among a list of options
|
||||
|
||||
:param prompt: Input prompt
|
||||
:param options: Options
|
||||
:param default: Default option
|
||||
:param show_ops: Show options
|
||||
:return: Selection
|
||||
"""
|
||||
options = list(options)
|
||||
lows = [o.lower() for o in options]
|
||||
|
||||
if show_ops:
|
||||
op_text = '|'.join([f'&l&n{o}&r' if o == default else o for o in options])
|
||||
printc(f'{prompt} ({op_text})')
|
||||
else:
|
||||
printc(f'{prompt} (default: {default})')
|
||||
|
||||
def find_selection(sel: str):
|
||||
if not sel:
|
||||
return None
|
||||
|
||||
# Find exact match
|
||||
if sel in lows:
|
||||
return options[lows.index(sel)]
|
||||
|
||||
# Find starting abbreviation
|
||||
for i, op in enumerate(lows):
|
||||
if op.startswith(sel):
|
||||
return options[i]
|
||||
|
||||
return None
|
||||
|
||||
selection = input('> ').lower() or default
|
||||
while not find_selection(selection):
|
||||
print(f'Invalid selection! {selection} is not one of {"|".join(options)}')
|
||||
selection = input('> ').lower() or default
|
||||
|
||||
print()
|
||||
|
||||
return find_selection(selection)
|
||||
|
||||
|
||||
def create_config() -> Config:
|
||||
"""
|
||||
Create config interactively
|
||||
@@ -90,7 +46,7 @@ def create_config() -> Config:
|
||||
|
||||
asc = get_distro_ascii()
|
||||
asc_width, asc_lines = ascii_size(asc)
|
||||
logo = color("&b&lhyfetch&r" if det_bg is None or det_bg.is_light() else "&b&lhy&f&lfetch&r")
|
||||
logo = color("&l&bhyfetch&~&L" if det_bg is None or det_bg.is_light() else "&l&bhy&ffetch&~&L")
|
||||
title = f'Welcome to {logo} Let\'s set up some colors first.'
|
||||
clear_screen(title)
|
||||
|
||||
@@ -100,7 +56,7 @@ def create_config() -> Config:
|
||||
nonlocal title, option_counter
|
||||
if not k.endswith(":"):
|
||||
k += ':'
|
||||
title += f"\n&e{option_counter}. {k.ljust(30)} &r{v}"
|
||||
title += f"\n&e{option_counter}. {k.ljust(30)} &~{v}"
|
||||
option_counter += 1
|
||||
|
||||
def print_title_prompt(prompt: str):
|
||||
@@ -110,10 +66,12 @@ def create_config() -> Config:
|
||||
# 0. Check term size
|
||||
try:
|
||||
term_len, term_lines = os.get_terminal_size().columns, os.get_terminal_size().lines
|
||||
if term_len < 2 * asc_width + 4 or term_lines < 30:
|
||||
term_len_min = 2 * asc_width + 4
|
||||
term_lines_min = 30
|
||||
if term_len < term_len_min or term_lines < term_lines_min:
|
||||
printc(f'&cWarning: Your terminal is too small ({term_len} * {term_lines}). \n'
|
||||
f'Please resize it for better experience.')
|
||||
input('Press any key to ignore...')
|
||||
f'Please resize it to at least ({term_len_min} * {term_lines_min}) for better experience.')
|
||||
input('Press enter to ignore...')
|
||||
except:
|
||||
# print('Warning: We cannot detect your terminal size.')
|
||||
pass
|
||||
@@ -153,7 +111,7 @@ def create_config() -> Config:
|
||||
return det_bg.is_light(), 'Detected background color'
|
||||
|
||||
clear_screen(title)
|
||||
inp = literal_input(f'2. Is your terminal in &blight mode&r or &4dark mode&r?',
|
||||
inp = literal_input(f'2. Is your terminal in &blight mode&~ or &4dark mode&~?',
|
||||
['light', 'dark'], 'dark')
|
||||
return inp == 'light', 'Selected background color'
|
||||
|
||||
@@ -341,6 +299,36 @@ def create_config() -> Config:
|
||||
return c
|
||||
|
||||
|
||||
def create_parser() -> argparse.ArgumentParser:
|
||||
# Create CLI
|
||||
hyfetch = color('&l&bhyfetch&~&L')
|
||||
parser = argparse.ArgumentParser(description=color(f'{hyfetch} - neofetch with flags <3'), prog="hyfetch")
|
||||
|
||||
parser.add_argument('-c', '--config', action='store_true', help=color(f'Configure hyfetch'))
|
||||
parser.add_argument('-C', '--config-file', dest='config_file', default=CONFIG_PATH, help=f'Use another config file')
|
||||
parser.add_argument('-p', '--preset', help=f'Use preset', choices=list(PRESETS.keys()))
|
||||
parser.add_argument('-m', '--mode', help=f'Color mode', choices=['8bit', 'rgb'])
|
||||
parser.add_argument('-b', '--backend', help=f'Choose a *fetch backend', choices=['qwqfetch', 'neofetch', 'fastfetch', 'fastfetch-old'])
|
||||
parser.add_argument('--args', help=f'Additional arguments pass-through to backend')
|
||||
parser.add_argument('--c-scale', dest='scale', help=f'Lighten colors by a multiplier', type=float)
|
||||
parser.add_argument('--c-set-l', dest='light', help=f'Set lightness value of the colors', type=float)
|
||||
parser.add_argument('--c-overlay', action='store_true', dest='overlay', help=f'Use experimental overlay color adjusting instead of HSL lightness')
|
||||
parser.add_argument('-V', '--version', dest='version', action='store_true', help=f'Check version')
|
||||
parser.add_argument('--june', action='store_true', help=f'Show pride month easter egg')
|
||||
parser.add_argument('--debug', action='store_true', help=f'Debug mode')
|
||||
|
||||
parser.add_argument('--distro', '--test-distro', dest='distro', help=f'Test for a specific distro')
|
||||
parser.add_argument('--ascii-file', help='Use a specific file for the ascii art')
|
||||
|
||||
# Hidden debug arguments
|
||||
# --test-print: Print the ascii distro and exit
|
||||
parser.add_argument('--test-print', action='store_true', help=argparse.SUPPRESS)
|
||||
# --ask-exit: Ask for input before exiting
|
||||
parser.add_argument('--ask-exit', action='store_true', help=argparse.SUPPRESS)
|
||||
|
||||
return parser
|
||||
|
||||
|
||||
def run():
|
||||
# Optional: Import readline
|
||||
try:
|
||||
@@ -353,29 +341,13 @@ def run():
|
||||
import colorama
|
||||
colorama.just_fix_windows_console()
|
||||
|
||||
# Create CLI
|
||||
hyfetch = color('&b&lhyfetch&r')
|
||||
parser = argparse.ArgumentParser(description=color(f'{hyfetch} - neofetch with flags <3'))
|
||||
|
||||
parser.add_argument('-c', '--config', action='store_true', help=color(f'Configure {hyfetch}'))
|
||||
parser.add_argument('-C', '--config-file', dest='config_file', default=CONFIG_PATH, help=f'Use another config file')
|
||||
parser.add_argument('-p', '--preset', help=f'Use preset', choices=PRESETS.keys())
|
||||
parser.add_argument('-m', '--mode', help=f'Color mode', choices=['8bit', 'rgb'])
|
||||
parser.add_argument('-b', '--backend', help=f'Choose a *fetch backend', choices=['neofetch', 'fastfetch', 'fastfetch-old'])
|
||||
parser.add_argument('--c-scale', dest='scale', help=f'Lighten colors by a multiplier', type=float)
|
||||
parser.add_argument('--c-set-l', dest='light', help=f'Set lightness value of the colors', type=float)
|
||||
parser.add_argument('-V', '--version', dest='version', action='store_true', help=f'Check version')
|
||||
parser.add_argument('--debug', action='store_true', help=f'Debug mode')
|
||||
parser.add_argument('--distro', '--test-distro', dest='distro', help=f'Test for a specific distro')
|
||||
|
||||
# Hidden debug arguments
|
||||
# --test-print: Print the ascii distro and exit
|
||||
parser.add_argument('--test-print', action='store_true', help=argparse.SUPPRESS)
|
||||
# --ask-exit: Ask for input before exiting
|
||||
parser.add_argument('--ask-exit', action='store_true', help=argparse.SUPPRESS)
|
||||
|
||||
parser = create_parser()
|
||||
args = parser.parse_args()
|
||||
|
||||
# Use a custom distro
|
||||
GLOBAL_CFG.override_distro = args.distro
|
||||
GLOBAL_CFG.use_overlay = args.overlay
|
||||
|
||||
if args.version:
|
||||
print(f'Version is {VERSION}')
|
||||
return
|
||||
@@ -384,10 +356,6 @@ def run():
|
||||
ensure_git_bash()
|
||||
check_windows_cmd()
|
||||
|
||||
# Use a custom distro
|
||||
if args.distro:
|
||||
GLOBAL_CFG.override_distro = args.distro
|
||||
|
||||
if args.debug:
|
||||
GLOBAL_CFG.debug = True
|
||||
|
||||
@@ -406,6 +374,26 @@ def run():
|
||||
# Load config or create config
|
||||
config = create_config() if args.config else check_config(args.config_file)
|
||||
|
||||
# Check if it's June (pride month)
|
||||
now = datetime.datetime.now()
|
||||
june_path = CACHE_PATH / f'animation-displayed-{now.year}'
|
||||
if now.month == 6 and now.year not in config.pride_month_shown and not june_path.is_file() and os.isatty(sys.stdout.fileno()):
|
||||
args.june = True
|
||||
|
||||
if args.june and not config.pride_month_disable:
|
||||
pride_month.start_animation()
|
||||
print()
|
||||
print("Happy pride month!")
|
||||
print("(You can always view the animation again with `hyfetch --june`)")
|
||||
print()
|
||||
|
||||
if not june_path.is_file():
|
||||
june_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
june_path.touch()
|
||||
|
||||
# Use a custom distro
|
||||
GLOBAL_CFG.override_distro = args.distro or config.distro
|
||||
|
||||
# Param overwrite config
|
||||
if args.preset:
|
||||
config.preset = args.preset
|
||||
@@ -413,6 +401,8 @@ def run():
|
||||
config.mode = args.mode
|
||||
if args.backend:
|
||||
config.backend = args.backend
|
||||
if args.args:
|
||||
config.args = args.args
|
||||
|
||||
# Override global color mode
|
||||
GLOBAL_CFG.color_mode = config.mode
|
||||
@@ -431,7 +421,9 @@ def run():
|
||||
|
||||
# Run
|
||||
try:
|
||||
neofetch_util.run(preset, config.color_align, config.backend)
|
||||
asc = get_distro_ascii() if not args.ascii_file else Path(args.ascii_file).read_text("utf-8")
|
||||
asc = config.color_align.recolor_ascii(asc, preset)
|
||||
neofetch_util.run(asc, config.backend, config.args or '')
|
||||
except Exception as e:
|
||||
print(f'Error: {e}')
|
||||
traceback.print_exc()
|
||||
|
||||
+5
-1
@@ -16,6 +16,10 @@ class Config:
|
||||
lightness: float | None = None
|
||||
color_align: ColorAlignment = field(default_factory=lambda: ColorAlignment('horizontal'))
|
||||
backend: BackendLiteral = "neofetch"
|
||||
args: str | None = None
|
||||
distro: str | None = None
|
||||
pride_month_shown: list[int] = field(default_factory=list) # This is deprecated, see issue #136
|
||||
pride_month_disable: bool = False
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, d: dict):
|
||||
@@ -24,4 +28,4 @@ class Config:
|
||||
|
||||
def save(self):
|
||||
CONFIG_PATH.parent.mkdir(exist_ok=True, parents=True)
|
||||
CONFIG_PATH.write_text(json_stringify(self), 'utf-8')
|
||||
CONFIG_PATH.write_text(json_stringify(self, indent=4), 'utf-8')
|
||||
|
||||
+94
-29
@@ -12,6 +12,7 @@ from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from subprocess import check_output
|
||||
from tempfile import TemporaryDirectory
|
||||
from typing import Iterable
|
||||
|
||||
import pkg_resources
|
||||
|
||||
@@ -25,6 +26,50 @@ from .types import BackendLiteral, ColorAlignMode
|
||||
RE_NEOFETCH_COLOR = re.compile('\\${c[0-9]}')
|
||||
|
||||
|
||||
def literal_input(prompt: str, options: Iterable[str], default: str, show_ops: bool = True) -> str:
|
||||
"""
|
||||
Ask the user to provide an input among a list of options
|
||||
|
||||
:param prompt: Input prompt
|
||||
:param options: Options
|
||||
:param default: Default option
|
||||
:param show_ops: Show options
|
||||
:return: Selection
|
||||
"""
|
||||
options = list(options)
|
||||
lows = [o.lower() for o in options]
|
||||
|
||||
if show_ops:
|
||||
op_text = '|'.join([f'&l&n{o}&L&N' if o == default else o for o in options])
|
||||
printc(f'{prompt} ({op_text})')
|
||||
else:
|
||||
printc(f'{prompt} (default: {default})')
|
||||
|
||||
def find_selection(sel: str):
|
||||
if not sel:
|
||||
return None
|
||||
|
||||
# Find exact match
|
||||
if sel in lows:
|
||||
return options[lows.index(sel)]
|
||||
|
||||
# Find starting abbreviation
|
||||
for i, op in enumerate(lows):
|
||||
if op.startswith(sel):
|
||||
return options[i]
|
||||
|
||||
return None
|
||||
|
||||
selection = input('> ').lower() or default
|
||||
while not find_selection(selection):
|
||||
print(f'Invalid selection! {selection} is not one of {"|".join(options)}')
|
||||
selection = input('> ').lower() or default
|
||||
|
||||
print()
|
||||
|
||||
return find_selection(selection)
|
||||
|
||||
|
||||
def term_size() -> tuple[int, int]:
|
||||
"""
|
||||
Get terminal size
|
||||
@@ -106,7 +151,7 @@ class ColorAlignment:
|
||||
# Add new colors
|
||||
if self.mode == 'horizontal':
|
||||
colors = preset.with_length(len(lines))
|
||||
asc = '\n'.join([l.replace(f'${{c{back}}}', colors[i].to_ansi()) + color('&r') for i, l in enumerate(lines)])
|
||||
asc = '\n'.join([l.replace(f'${{c{back}}}', colors[i].to_ansi()) + color('&~&*') for i, l in enumerate(lines)])
|
||||
else:
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -121,9 +166,9 @@ class ColorAlignment:
|
||||
# Add new colors
|
||||
if self.mode == 'horizontal':
|
||||
colors = preset.with_length(len(lines))
|
||||
asc = '\n'.join([colors[i].to_ansi() + l + color('&r') for i, l in enumerate(lines)])
|
||||
asc = '\n'.join([colors[i].to_ansi() + l + color('&~&*') for i, l in enumerate(lines)])
|
||||
else:
|
||||
asc = '\n'.join(preset.color_text(line) + color('&r') for line in lines)
|
||||
asc = '\n'.join(preset.color_text(line) + color('&~&*') for line in lines)
|
||||
|
||||
else:
|
||||
preset = preset.unique_colors()
|
||||
@@ -185,7 +230,7 @@ def ensure_git_bash() -> Path:
|
||||
return def_path
|
||||
|
||||
# Detect third-party git.exe in path
|
||||
git_exe = shutil.which("git.exe") or shutil.which("git")
|
||||
git_exe = shutil.which("bash") or shutil.which("git.exe") or shutil.which("git")
|
||||
if git_exe is not None:
|
||||
pth = Path(git_exe).parent
|
||||
if (pth / r'bash.exe').is_file():
|
||||
@@ -207,14 +252,17 @@ def ensure_git_bash() -> Path:
|
||||
|
||||
# No installation found, download a portable installation
|
||||
print('Git installation not found. Git is required to use HyFetch/neofetch on Windows')
|
||||
print('Downloading a minimal portable package for Git...')
|
||||
from urllib.request import urlretrieve
|
||||
urlretrieve(MINGIT_URL, pkg_path)
|
||||
print('Download finished! Extracting...')
|
||||
with zipfile.ZipFile(pkg_path, 'r') as zip_ref:
|
||||
zip_ref.extractall(path)
|
||||
print('Done!')
|
||||
return path / r'bin\bash.exe'
|
||||
if literal_input('Would you like to install a minimal package for Git? (if no is selected colors almost certainly won\'t work)', ['yes', 'no'], 'yes', False) == 'yes':
|
||||
print('Downloading a minimal portable package for Git...')
|
||||
from urllib.request import urlretrieve
|
||||
urlretrieve(MINGIT_URL, pkg_path)
|
||||
print('Download finished! Extracting...')
|
||||
with zipfile.ZipFile(pkg_path, 'r') as zip_ref:
|
||||
zip_ref.extractall(path)
|
||||
print('Done!')
|
||||
return path / r'bin\bash.exe'
|
||||
else:
|
||||
sys.exit()
|
||||
|
||||
|
||||
def check_windows_cmd():
|
||||
@@ -290,25 +338,44 @@ def get_distro_name():
|
||||
return run_neofetch_cmd('ascii_distro_name', True)
|
||||
|
||||
|
||||
def run(preset: ColorProfile, alignment: ColorAlignment, backend: BackendLiteral):
|
||||
def run(asc: str, backend: BackendLiteral, args: str = ''):
|
||||
if backend == "neofetch":
|
||||
return run_neofetch(preset, alignment)
|
||||
return run_neofetch(asc, args)
|
||||
if backend == "fastfetch":
|
||||
return run_fastfetch(preset, alignment)
|
||||
return run_fastfetch(asc, args)
|
||||
if backend == "fastfetch-old":
|
||||
return run_fastfetch(preset, alignment, legacy=True)
|
||||
return run_fastfetch(asc, args, legacy=True)
|
||||
if backend == "qwqfetch":
|
||||
return run_qwqfetch(asc, args)
|
||||
|
||||
|
||||
def run_neofetch(preset: ColorProfile, alignment: ColorAlignment):
|
||||
def run_qwqfetch(asc: str, args: str = ''):
|
||||
"""
|
||||
Run neofetch with colors
|
||||
|
||||
:param preset: Color palette
|
||||
:param alignment: Color alignment settings
|
||||
"""
|
||||
asc = get_distro_ascii()
|
||||
asc = alignment.recolor_ascii(asc, preset)
|
||||
asc = asc.replace('\\', '\\\\')
|
||||
|
||||
# call qwqfetch to print string
|
||||
try:
|
||||
import qwqfetch
|
||||
# distro_detector only return a bash variable
|
||||
# so we use qwqfetch builtin distro detector
|
||||
print(qwqfetch.get_ascres(asc))
|
||||
except ImportError as e: # module not found etc
|
||||
print("qwqfetch is not installed. Install it by executing:") # use print to output hint directly
|
||||
print("pip install git+https://github.com/nexplorer-3e/qwqfetch") # TODO: public repo
|
||||
raise e
|
||||
|
||||
def run_neofetch(asc: str, args: str = ''):
|
||||
"""
|
||||
Run neofetch with colors
|
||||
|
||||
:param asc: Ascii art
|
||||
:param args: Additional arguments to pass to neofetch
|
||||
"""
|
||||
# Escape backslashes here because backslashes are escaped in neofetch for printf
|
||||
asc = asc.replace('\\', '\\\\')
|
||||
|
||||
@@ -319,20 +386,19 @@ def run_neofetch(preset: ColorProfile, alignment: ColorAlignment):
|
||||
path.write_text(asc)
|
||||
|
||||
# Call neofetch with the temp file
|
||||
run_neofetch_cmd(f'--ascii --source {path.absolute()} --ascii-colors')
|
||||
if args:
|
||||
args = ' ' + args
|
||||
run_neofetch_cmd(f'--ascii --source {path.absolute()} --ascii-colors' + args)
|
||||
|
||||
|
||||
def run_fastfetch(preset: ColorProfile, alignment: ColorAlignment, legacy: bool = False):
|
||||
def run_fastfetch(asc: str, args: str = '', legacy: bool = False):
|
||||
"""
|
||||
Run neofetch with colors
|
||||
|
||||
:param preset: Color palette
|
||||
:param alignment: Color alignment settings
|
||||
:param asc: Ascii art
|
||||
:param args: Additional arguments to pass to fastfetch
|
||||
:param legacy: Set true when using fastfetch < 1.8.0
|
||||
"""
|
||||
asc = get_distro_ascii()
|
||||
asc = alignment.recolor_ascii(asc, preset)
|
||||
|
||||
# Write temp file
|
||||
with TemporaryDirectory() as tmp_dir:
|
||||
tmp_dir = Path(tmp_dir)
|
||||
@@ -340,7 +406,7 @@ def run_fastfetch(preset: ColorProfile, alignment: ColorAlignment, legacy: bool
|
||||
path.write_text(asc)
|
||||
|
||||
# Call fastfetch with the temp file
|
||||
proc = subprocess.run(['fastfetch', '--raw' if legacy else '--file-raw', path.absolute()])
|
||||
proc = subprocess.run(['fastfetch', '--raw' if legacy else '--file-raw', path.absolute(), *shlex.split(args)])
|
||||
if proc.returncode == 144:
|
||||
printc("&6Error code 144 detected: Please upgrade fastfetch to >=1.8.0 or use the 'fastfetch-old' backend")
|
||||
|
||||
@@ -358,7 +424,7 @@ def get_fore_back(distro: str | None = None) -> tuple[int, int] | None:
|
||||
distro = get_distro_name().lower()
|
||||
distro = distro.lower().replace(' ', '-')
|
||||
for k, v in fore_back.items():
|
||||
if distro == k.lower():
|
||||
if distro.startswith(k.lower()):
|
||||
return v
|
||||
return None
|
||||
|
||||
@@ -366,7 +432,6 @@ def get_fore_back(distro: str | None = None) -> tuple[int, int] | None:
|
||||
# Foreground-background recommendation
|
||||
fore_back = {
|
||||
'fedora': (2, 1),
|
||||
'ubuntu': (2, 1),
|
||||
'kubuntu': (2, 1),
|
||||
'lubuntu': (2, 1),
|
||||
'xubuntu': (2, 1),
|
||||
|
||||
+65
-35
@@ -83,12 +83,12 @@ class ColorProfile:
|
||||
for i, t in enumerate(txt):
|
||||
if space_only and t != ' ':
|
||||
if i > 0 and txt[i - 1] == ' ':
|
||||
result += '\033[0m'
|
||||
result += '\033[39;49m'
|
||||
result += t
|
||||
else:
|
||||
result += colors[i].to_ansi(foreground=foreground) + t
|
||||
|
||||
result += '\033[0m'
|
||||
result += '\033[39;49m'
|
||||
return result
|
||||
|
||||
def lighten(self, multiplier: float) -> ColorProfile:
|
||||
@@ -119,11 +119,35 @@ class ColorProfile:
|
||||
:param term: Terminal color (can be "dark" or "light")
|
||||
:return: New color profile (original isn't modified)
|
||||
"""
|
||||
if GLOBAL_CFG.use_overlay:
|
||||
return self.overlay_dl(light, term)
|
||||
|
||||
term = term or GLOBAL_CFG.light_dark()
|
||||
assert term.lower() in ['light', 'dark']
|
||||
at_least, at_most = (True, None) if term.lower() == 'dark' else (None, True)
|
||||
return self.set_light_raw(light, at_least, at_most)
|
||||
|
||||
def overlay_raw(self, color: RGB, alpha: float) -> 'ColorProfile':
|
||||
"""
|
||||
Overlay a color on top of the color profile
|
||||
|
||||
:param color: Color to overlay
|
||||
:param alpha: Alpha value (0-1)
|
||||
:return: New color profile (original isn't modified)
|
||||
"""
|
||||
return ColorProfile([c.overlay(color, alpha) for c in self.colors])
|
||||
|
||||
def overlay_dl(self, light: float, term: LightDark | None = None):
|
||||
"""
|
||||
Same as set_light_dl except that this function uses RGB overlaying instead of HSL lightness change
|
||||
"""
|
||||
term = term or GLOBAL_CFG.light_dark()
|
||||
assert term.lower() in ['light', 'dark']
|
||||
|
||||
# If it's light bg, overlay black, else overlay white
|
||||
overlay_color = RGB.from_hex('#000000' if term.lower() == 'light' else '#FFFFFF')
|
||||
return self.overlay_raw(overlay_color, abs(light - 0.5) * 2)
|
||||
|
||||
def set_light_dl_def(self, term: LightDark | None = None):
|
||||
"""
|
||||
Set default lightness with respect to dark/light terminals
|
||||
@@ -216,6 +240,14 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
'#8EA6FF',
|
||||
]),
|
||||
|
||||
'omniromantic': ColorProfile([
|
||||
'#FEC8E4',
|
||||
'#FDA1DB',
|
||||
'#89739A',
|
||||
'#ABA7FE',
|
||||
'#BFCEFF',
|
||||
]),
|
||||
|
||||
# gay men sourced from https://www.flagcolorcodes.com/gay-men
|
||||
'gay-men': ColorProfile([
|
||||
'#078D70',
|
||||
@@ -470,53 +502,22 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
'autoromantic': ColorProfile([ # symbol interpreted
|
||||
'#99D9EA',
|
||||
'#99D9EA',
|
||||
'#99D9EA',
|
||||
'#99D9EA',
|
||||
'#99D9EA',
|
||||
'#000000',
|
||||
'#3DA542',
|
||||
'#3DA542',
|
||||
'#000000',
|
||||
'#7F7F7F',
|
||||
'#7F7F7F',
|
||||
'#7F7F7F',
|
||||
'#7F7F7F',
|
||||
'#7F7F7F',
|
||||
]),
|
||||
|
||||
# i didn't expect this one to work. cool!
|
||||
'boyflux2': ColorProfile([
|
||||
'boyflux2': ColorProfile(ColorProfile([
|
||||
'#E48AE4',
|
||||
'#9A81B4',
|
||||
'#55BFAB',
|
||||
'#FFFFFF',
|
||||
'#A8A8A8',
|
||||
'#81D5EF',
|
||||
'#81D5EF',
|
||||
'#81D5EF',
|
||||
'#81D5EF',
|
||||
'#81D5EF',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#69ABE5',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
'#5276D4',
|
||||
]),
|
||||
]).with_weights([1, 1, 1, 1, 1, 5, 5, 5])),
|
||||
|
||||
"finsexual": ColorProfile([
|
||||
"#B18EDF",
|
||||
@@ -542,6 +543,16 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
'#7D2557'
|
||||
]),
|
||||
|
||||
'pangender': ColorProfile([
|
||||
'#FFF798',
|
||||
'#FEDDCD',
|
||||
'#FFEBFB',
|
||||
'#FFFFFF',
|
||||
'#FFEBFB',
|
||||
'#FEDDCD',
|
||||
'#FFF798',
|
||||
]),
|
||||
|
||||
'gendernonconforming1': ColorProfile(
|
||||
ColorProfile([
|
||||
'#50284d',
|
||||
@@ -586,6 +597,18 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
"#2f3fb9"
|
||||
]),
|
||||
|
||||
'gynesexual': ColorProfile([
|
||||
"#F4A9B7",
|
||||
"#903F2B",
|
||||
"#5B953B",
|
||||
]),
|
||||
|
||||
'androsexual': ColorProfile([
|
||||
"#01CCFF",
|
||||
"#603524",
|
||||
"#B799DE",
|
||||
]),
|
||||
|
||||
# gendervoid and related flags sourced from: https://gender.fandom.com/wiki/Gendervoid
|
||||
'gendervoid' : ColorProfile([
|
||||
"#081149",
|
||||
@@ -611,6 +634,13 @@ PRESETS: dict[str, ColorProfile] = {
|
||||
"#0B130C"
|
||||
]),
|
||||
|
||||
# used https://twitter.com/foxbrained/status/1667621855518236674/photo/1 as source and colorpicked
|
||||
'nonhuman-unity' : ColorProfile([
|
||||
"#177B49",
|
||||
"#FFFFFF",
|
||||
"#593C90"
|
||||
]),
|
||||
|
||||
# Meme flags
|
||||
'beiyang': ColorProfile([
|
||||
'#DF1B12',
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
import math
|
||||
from time import sleep
|
||||
|
||||
from hyfetch import presets
|
||||
from hyfetch.color_util import RGB, color, printc
|
||||
from hyfetch.constants import IS_WINDOWS
|
||||
from hyfetch.neofetch_util import term_size
|
||||
from hyfetch.presets import PRESETS
|
||||
|
||||
|
||||
def key_pressed():
|
||||
if IS_WINDOWS:
|
||||
import msvcrt
|
||||
return msvcrt.kbhit() # Non-blocking check for key press
|
||||
else:
|
||||
import select
|
||||
import sys
|
||||
return select.select([sys.stdin], [], [], 0) == ([sys.stdin], [], [])
|
||||
|
||||
|
||||
def start_animation():
|
||||
text = r"""
|
||||
.======================================================.
|
||||
| . . .__ . . . , . | |
|
||||
| |__| _.._ ._ . [__)._.* _| _ |\/| _ ._ -+-|_ | |
|
||||
| | |(_][_)[_)\_| | [ |(_](/, | |(_)[ ) | [ ) * |
|
||||
| | | ._| |
|
||||
'======================================================'""".strip("\n")
|
||||
text_lines = text.split("\n")
|
||||
text_height = len(text_lines)
|
||||
text_width = len(text_lines[0])
|
||||
|
||||
notice = "Press enter to continue"
|
||||
|
||||
speed = 2
|
||||
frame_delay = 1 / 25
|
||||
|
||||
colors: list[RGB] = []
|
||||
frame = 0
|
||||
|
||||
w, h = term_size()
|
||||
blocks = 9
|
||||
block_width = w // blocks
|
||||
|
||||
text_start_y = h // 2 - text_height // 2
|
||||
text_end_y = text_start_y + text_height
|
||||
text_start_x = w // 2 - text_width // 2
|
||||
text_end_x = text_start_x + text_width
|
||||
|
||||
notice_start_x = w - len(notice) - 1
|
||||
notice_end_x = w - 1
|
||||
notice_y = h - 1
|
||||
|
||||
# Add everything in PRESETS to colors
|
||||
colors = [c for preset in PRESETS.values() for c in preset.colors]
|
||||
|
||||
black = RGB(0, 0, 0)
|
||||
fg = RGB.from_hex("#FFE09B")
|
||||
|
||||
def draw_frame():
|
||||
buf = ""
|
||||
|
||||
# Loop over the height
|
||||
for y in range(h):
|
||||
# Print the starting color
|
||||
buf += colors[((frame + y) // block_width) % len(colors)].to_ansi_rgb(foreground=False)
|
||||
buf += fg.to_ansi_rgb(foreground=True)
|
||||
|
||||
# Loop over the width
|
||||
x = 0
|
||||
while x < w:
|
||||
idx = frame + x + y + int(math.sin(y + 0.5 * frame) * 2)
|
||||
y_text = text_start_y <= y < text_end_y
|
||||
|
||||
border = 1 + int(not (y == text_start_y or y == text_end_y - 1))
|
||||
|
||||
# If it's a switching point
|
||||
if idx % block_width == 0 or x == text_start_x - border or x == text_end_x + border \
|
||||
or x == notice_start_x - 1 or x == notice_end_x + 1:
|
||||
# Print the color at the current frame
|
||||
c = colors[(idx // block_width) % len(colors)]
|
||||
if (y_text and text_start_x - border <= x < text_end_x + border) \
|
||||
or (y == notice_y and notice_start_x - 1 <= x < notice_end_x + 1):
|
||||
# buf += c.set_light(0.3).to_ansi_rgb(foreground=False)
|
||||
buf += c.overlay(black, 0.5).to_ansi_rgb(foreground=False)
|
||||
else:
|
||||
buf += c.to_ansi_rgb(foreground=False)
|
||||
|
||||
# If text should be printed, print text
|
||||
if y_text and text_start_x <= x < text_end_x:
|
||||
# Add white background
|
||||
buf += text_lines[y - text_start_y][x - text_start_x]
|
||||
elif y == notice_y and notice_start_x <= x < notice_end_x:
|
||||
buf += notice[x - notice_start_x]
|
||||
else:
|
||||
buf += ' '
|
||||
|
||||
x += 1
|
||||
|
||||
# New line if it isn't the last line
|
||||
if y != h - 1:
|
||||
buf += color('&r\n')
|
||||
|
||||
print(buf, end='', flush=True)
|
||||
|
||||
try:
|
||||
while 1:
|
||||
# Clear the screen
|
||||
print("\033[2J\033[H", end="")
|
||||
draw_frame()
|
||||
frame += speed
|
||||
sleep(frame_delay)
|
||||
|
||||
if key_pressed():
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
# Clear the screen
|
||||
printc("&r")
|
||||
print("\033[2J\033[H", end="", flush=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
start_animation()
|
||||
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
# AUTOMATICALLY GENERATED by `shtab`
|
||||
|
||||
|
||||
|
||||
_shtab_hyfetch_option_strings=('-h' '--help' '-c' '--config' '-C' '--config-file' '-p' '--preset' '-m' '--mode' '-b' '--backend' '--c-scale' '--c-set-l' '-V' '--version' '--debug' '--distro' '--test-distro' '--ascii-file')
|
||||
|
||||
|
||||
|
||||
_shtab_hyfetch__p_choices=('rainbow' 'transgender' 'nonbinary' 'agender' 'queer' 'genderfluid' 'bisexual' 'pansexual' 'polysexual' 'omnisexual' 'omniromantic' 'gay-men' 'lesbian' 'abrosexual' 'asexual' 'aromantic' 'aroace1' 'aroace2' 'aroace3' 'autosexual' 'intergender' 'greygender' 'akiosexual' 'bigender' 'demigender' 'demiboy' 'demigirl' 'transmasculine' 'transfeminine' 'genderfaun' 'demifaun' 'genderfae' 'demifae' 'neutrois' 'biromantic1' 'biromantic2' 'autoromantic' 'boyflux2' 'finsexual' 'unlabeled1' 'unlabeled2' 'pangender' 'gendernonconforming1' 'gendernonconforming2' 'femboy' 'tomboy' 'gendervoid' 'voidgirl' 'voidboy' 'beiyang' 'burger')
|
||||
_shtab_hyfetch___preset_choices=('rainbow' 'transgender' 'nonbinary' 'agender' 'queer' 'genderfluid' 'bisexual' 'pansexual' 'polysexual' 'omnisexual' 'omniromantic' 'gay-men' 'lesbian' 'abrosexual' 'asexual' 'aromantic' 'aroace1' 'aroace2' 'aroace3' 'autosexual' 'intergender' 'greygender' 'akiosexual' 'bigender' 'demigender' 'demiboy' 'demigirl' 'transmasculine' 'transfeminine' 'genderfaun' 'demifaun' 'genderfae' 'demifae' 'neutrois' 'biromantic1' 'biromantic2' 'autoromantic' 'boyflux2' 'finsexual' 'unlabeled1' 'unlabeled2' 'pangender' 'gendernonconforming1' 'gendernonconforming2' 'femboy' 'tomboy' 'gendervoid' 'voidgirl' 'voidboy' 'beiyang' 'burger')
|
||||
_shtab_hyfetch__m_choices=('8bit' 'rgb')
|
||||
_shtab_hyfetch___mode_choices=('8bit' 'rgb')
|
||||
_shtab_hyfetch__b_choices=('neofetch' 'fastfetch' 'fastfetch-old')
|
||||
_shtab_hyfetch___backend_choices=('neofetch' 'fastfetch' 'fastfetch-old')
|
||||
|
||||
_shtab_hyfetch__h_nargs=0
|
||||
_shtab_hyfetch___help_nargs=0
|
||||
_shtab_hyfetch__c_nargs=0
|
||||
_shtab_hyfetch___config_nargs=0
|
||||
_shtab_hyfetch__V_nargs=0
|
||||
_shtab_hyfetch___version_nargs=0
|
||||
_shtab_hyfetch___debug_nargs=0
|
||||
_shtab_hyfetch___test_print_nargs=0
|
||||
_shtab_hyfetch___ask_exit_nargs=0
|
||||
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_compgen_files() {
|
||||
compgen -f -- $1 # files
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_compgen_dirs() {
|
||||
compgen -d -- $1 # recurse into subdirs
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_replace_nonword() {
|
||||
echo "${1//[^[:word:]]/_}"
|
||||
}
|
||||
|
||||
# set default values (called for the initial parser & any subparsers)
|
||||
_set_parser_defaults() {
|
||||
local subparsers_var="${prefix}_subparsers[@]"
|
||||
sub_parsers=${!subparsers_var}
|
||||
|
||||
local current_option_strings_var="${prefix}_option_strings[@]"
|
||||
current_option_strings=${!current_option_strings_var}
|
||||
|
||||
completed_positional_actions=0
|
||||
|
||||
_set_new_action "pos_${completed_positional_actions}" true
|
||||
}
|
||||
|
||||
# $1=action identifier
|
||||
# $2=positional action (bool)
|
||||
# set all identifiers for an action's parameters
|
||||
_set_new_action() {
|
||||
current_action="${prefix}_$(_shtab_replace_nonword $1)"
|
||||
|
||||
local current_action_compgen_var=${current_action}_COMPGEN
|
||||
current_action_compgen="${!current_action_compgen_var}"
|
||||
|
||||
local current_action_choices_var="${current_action}_choices[@]"
|
||||
current_action_choices="${!current_action_choices_var}"
|
||||
|
||||
local current_action_nargs_var="${current_action}_nargs"
|
||||
if [ -n "${!current_action_nargs_var}" ]; then
|
||||
current_action_nargs="${!current_action_nargs_var}"
|
||||
else
|
||||
current_action_nargs=1
|
||||
fi
|
||||
|
||||
current_action_args_start_index=$(( $word_index + 1 ))
|
||||
|
||||
current_action_is_positional=$2
|
||||
}
|
||||
|
||||
# Notes:
|
||||
# `COMPREPLY`: what will be rendered after completion is triggered
|
||||
# `completing_word`: currently typed word to generate completions for
|
||||
# `${!var}`: evaluates the content of `var` and expand its content as a variable
|
||||
# hello="world"
|
||||
# x="hello"
|
||||
# ${!x} -> ${hello} -> "world"
|
||||
_shtab_hyfetch() {
|
||||
local completing_word="${COMP_WORDS[COMP_CWORD]}"
|
||||
COMPREPLY=()
|
||||
|
||||
prefix=_shtab_hyfetch
|
||||
word_index=0
|
||||
_set_parser_defaults
|
||||
word_index=1
|
||||
|
||||
# determine what arguments are appropriate for the current state
|
||||
# of the arg parser
|
||||
while [ $word_index -ne $COMP_CWORD ]; do
|
||||
local this_word="${COMP_WORDS[$word_index]}"
|
||||
|
||||
if [[ -n $sub_parsers && " ${sub_parsers[@]} " =~ " ${this_word} " ]]; then
|
||||
# valid subcommand: add it to the prefix & reset the current action
|
||||
prefix="${prefix}_$(_shtab_replace_nonword $this_word)"
|
||||
_set_parser_defaults
|
||||
fi
|
||||
|
||||
if [[ " ${current_option_strings[@]} " =~ " ${this_word} " ]]; then
|
||||
# a new action should be acquired (due to recognised option string or
|
||||
# no more input expected from current action);
|
||||
# the next positional action can fill in here
|
||||
_set_new_action $this_word false
|
||||
fi
|
||||
|
||||
if [[ "$current_action_nargs" != "*" ]] && \
|
||||
[[ "$current_action_nargs" != "+" ]] && \
|
||||
[[ "$current_action_nargs" != *"..." ]] && \
|
||||
(( $word_index + 1 - $current_action_args_start_index >= \
|
||||
$current_action_nargs )); then
|
||||
$current_action_is_positional && let "completed_positional_actions += 1"
|
||||
_set_new_action "pos_${completed_positional_actions}" true
|
||||
fi
|
||||
|
||||
let "word_index+=1"
|
||||
done
|
||||
|
||||
# Generate the completions
|
||||
|
||||
if [[ "${completing_word}" == -* ]]; then
|
||||
# optional argument started: use option strings
|
||||
COMPREPLY=( $(compgen -W "${current_option_strings[*]}" -- "${completing_word}") )
|
||||
else
|
||||
# use choices & compgen
|
||||
local IFS=$'\n' # items may contain spaces, so delimit using newline
|
||||
COMPREPLY=( $([ -n "${current_action_compgen}" ] \
|
||||
&& "${current_action_compgen}" "${completing_word}") )
|
||||
unset IFS
|
||||
COMPREPLY+=( $(compgen -W "${current_action_choices[*]}" -- "${completing_word}") )
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -o filenames -F _shtab_hyfetch hyfetch
|
||||
@@ -0,0 +1,14 @@
|
||||
# AUTOMATICALLY GENERATED by `shtab`
|
||||
|
||||
|
||||
|
||||
complete hyfetch \
|
||||
'c/--/(mode test-distro preset config c-scale c-set-l config-file ascii-file version debug distro help backend)/' \
|
||||
'c/-/(m h V C p b c -)/' \
|
||||
'n/-p/(rainbow transgender nonbinary agender queer genderfluid bisexual pansexual polysexual omnisexual omniromantic gay-men lesbian abrosexual asexual aromantic aroace1 aroace2 aroace3 autosexual intergender greygender akiosexual bigender demigender demiboy demigirl transmasculine transfeminine genderfaun demifaun genderfae demifae neutrois biromantic1 biromantic2 autoromantic boyflux2 finsexual unlabeled1 unlabeled2 pangender gendernonconforming1 gendernonconforming2 femboy tomboy gendervoid voidgirl voidboy beiyang burger)/' \
|
||||
'n/--preset/(rainbow transgender nonbinary agender queer genderfluid bisexual pansexual polysexual omnisexual omniromantic gay-men lesbian abrosexual asexual aromantic aroace1 aroace2 aroace3 autosexual intergender greygender akiosexual bigender demigender demiboy demigirl transmasculine transfeminine genderfaun demifaun genderfae demifae neutrois biromantic1 biromantic2 autoromantic boyflux2 finsexual unlabeled1 unlabeled2 pangender gendernonconforming1 gendernonconforming2 femboy tomboy gendervoid voidgirl voidboy beiyang burger)/' \
|
||||
'n/-m/(8bit rgb)/' \
|
||||
'n/--mode/(8bit rgb)/' \
|
||||
'n/-b/(neofetch fastfetch fastfetch-old)/' \
|
||||
'n/--backend/(neofetch fastfetch fastfetch-old)/' \
|
||||
'p/*/()/'
|
||||
@@ -0,0 +1,51 @@
|
||||
#compdef hyfetch
|
||||
|
||||
# AUTOMATICALLY GENERATED by `shtab`
|
||||
|
||||
|
||||
_shtab_hyfetch_commands() {
|
||||
local _commands=(
|
||||
|
||||
)
|
||||
_describe 'hyfetch commands' _commands
|
||||
}
|
||||
|
||||
_shtab_hyfetch_options=(
|
||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||
{-c,--config}"[Configure hyfetch]"
|
||||
{-C,--config-file}"[Use another config file]:config_file:"
|
||||
{-p,--preset}"[Use preset]:preset:(rainbow transgender nonbinary agender queer genderfluid bisexual pansexual polysexual omnisexual omniromantic gay-men lesbian abrosexual asexual aromantic aroace1 aroace2 aroace3 autosexual intergender greygender akiosexual bigender demigender demiboy demigirl transmasculine transfeminine genderfaun demifaun genderfae demifae neutrois biromantic1 biromantic2 autoromantic boyflux2 finsexual unlabeled1 unlabeled2 pangender gendernonconforming1 gendernonconforming2 femboy tomboy gendervoid voidgirl voidboy beiyang burger)"
|
||||
{-m,--mode}"[Color mode]:mode:(8bit rgb)"
|
||||
{-b,--backend}"[Choose a \*fetch backend]:backend:(neofetch fastfetch fastfetch-old)"
|
||||
"--c-scale[Lighten colors by a multiplier]:scale:"
|
||||
"--c-set-l[Set lightness value of the colors]:light:"
|
||||
{-V,--version}"[Check version]"
|
||||
"--debug[Debug mode]"
|
||||
{--distro,--test-distro}"[Test for a specific distro]:distro:"
|
||||
"--ascii-file[Use a specific file for the ascii art]:ascii_file:"
|
||||
)
|
||||
|
||||
|
||||
_shtab_hyfetch() {
|
||||
local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'
|
||||
|
||||
if ((${_shtab_hyfetch_options[(I)${(q)one_or_more}*]} + ${_shtab_hyfetch_options[(I)${(q)remainder}*]} == 0)); then # noqa: E501
|
||||
_shtab_hyfetch_options+=(': :_shtab_hyfetch_commands' '*::: :->hyfetch')
|
||||
fi
|
||||
_arguments -C $_shtab_hyfetch_options
|
||||
|
||||
case $state in
|
||||
hyfetch)
|
||||
words=($line[1] "${words[@]}")
|
||||
(( CURRENT += 1 ))
|
||||
curcontext="${curcontext%:*:*}:_shtab_hyfetch-$line[1]:"
|
||||
case $line[1] in
|
||||
|
||||
esac
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
||||
typeset -A opt_args
|
||||
_shtab_hyfetch "$@"
|
||||
Executable
+62
@@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Usage: ./install-autocomplete.sh [Uninstall]
|
||||
if [[ "$1" == "uninstall" ]]; then
|
||||
uninstall=true
|
||||
echo -n "Uninstalling "
|
||||
else
|
||||
echo -n "Installing "
|
||||
fi
|
||||
echo "autocomplete scripts for HyFetch..."
|
||||
|
||||
# Stop on error
|
||||
set -e
|
||||
|
||||
# Obtain path of the current bash script
|
||||
script_path="$(dirname "$(realpath "$0")")"
|
||||
|
||||
# Installing for a specific shell in a specific directory if it exists
|
||||
install-for()
|
||||
{
|
||||
shell=$1
|
||||
dir=$2
|
||||
|
||||
case $shell in
|
||||
bash)
|
||||
filename="hyfetch"
|
||||
;;
|
||||
zsh)
|
||||
filename="_hyfetch"
|
||||
;;
|
||||
csh)
|
||||
filename="hyfetch.completion.csh"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown shell: $shell"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -d "$dir" ]]; then
|
||||
if [[ "$uninstall" ]]; then
|
||||
rm -f "$dir/$filename"
|
||||
echo "⭐ Uninstalled for $shell in $dir"
|
||||
else
|
||||
cp "$script_path/autocomplete.$shell" "$dir/$filename"
|
||||
echo "⭐ Installed for $shell in $dir"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy files
|
||||
install-for bash /etc/bash_completion.d
|
||||
install-for bash /usr/share/bash-completion/completions
|
||||
|
||||
install-for zsh /usr/share/zsh/functions/Completion/Unix
|
||||
install-for zsh /usr/share/zsh/site-functions
|
||||
install-for zsh /usr/share/zsh-completions
|
||||
install-for zsh /usr/local/share/zsh/site-functions
|
||||
|
||||
install-for csh /etc/profile.d
|
||||
|
||||
echo "Done!"
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "neowofetch",
|
||||
"version": "1.4.7",
|
||||
"version": "1.4.11",
|
||||
"description": "Updated neofetch",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import hyfetch
|
||||
|
||||
if __name__ == '__main__':
|
||||
hyfetch.main.run()
|
||||
@@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import pathlib
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
import hyfetch.constants
|
||||
from pathlib import Path
|
||||
from setuptools import setup, find_namespace_packages
|
||||
|
||||
# The directory containing this file
|
||||
HERE = pathlib.Path(__file__).parent
|
||||
HERE = Path(__file__).parent
|
||||
|
||||
# Load version without importing it (see issue #192 if you are confused)
|
||||
for l in (HERE / 'hyfetch' / '__version__.py').read_text().strip().splitlines():
|
||||
exec(l)
|
||||
|
||||
# The text of the README file
|
||||
README = (HERE / "README.md").read_text('utf-8')
|
||||
@@ -14,7 +15,7 @@ README = (HERE / "README.md").read_text('utf-8')
|
||||
# This call to setup() does all the work
|
||||
setup(
|
||||
name="HyFetch",
|
||||
version=hyfetch.constants.VERSION,
|
||||
version=VERSION,
|
||||
description="neofetch with flags <3",
|
||||
long_description=README,
|
||||
long_description_content_type="text/markdown",
|
||||
@@ -31,7 +32,7 @@ setup(
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
],
|
||||
packages=find_packages(),
|
||||
packages=find_namespace_packages(),
|
||||
package_data={'hyfetch': ['hyfetch/*']},
|
||||
include_package_data=True,
|
||||
install_requires=[
|
||||
@@ -40,7 +41,7 @@ setup(
|
||||
|
||||
# Windows dependencies
|
||||
'psutil ; platform_system=="Windows"',
|
||||
'colorama ; platform_system=="Windows"',
|
||||
'colorama>=0.4.6 ; platform_system=="Windows"',
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import time
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from urllib.request import urlretrieve
|
||||
|
||||
from hyfetch.color_util import printc, color
|
||||
from hyfetch.neofetch_util import term_size
|
||||
|
||||
|
||||
@dataclass
|
||||
class Theme:
|
||||
done_char: str
|
||||
todo_char: str
|
||||
prefix: str = ''
|
||||
suffix: str = ''
|
||||
done_len: int = 1
|
||||
todo_len: int = 1
|
||||
|
||||
|
||||
CLASSIC_THEME = Theme('█', '.', '[', ']')
|
||||
NEW_THEME = Theme('&a━', '&c━')
|
||||
EMOJI_THEME = Theme('✅', '🕑', done_len=2, todo_len=2)
|
||||
EGG_THEME = Theme('🐣', '🥚', done_len=2, todo_len=2)
|
||||
FLOWER_THEME = Theme('🌸', '🥀', done_len=2, todo_len=2)
|
||||
|
||||
|
||||
def print_progressbar(total: int, i: int, length: int | None = None, theme: Theme = EMOJI_THEME, unit=''):
|
||||
if not length:
|
||||
length = term_size()[0]
|
||||
i += 1
|
||||
|
||||
completed = f'{i * 100 / total:.0f}%'
|
||||
placeholder = 'PLACEHOLDER_BAR'
|
||||
template = f'{theme.prefix}{placeholder}{theme.suffix}&r {completed} {i}/{total}{unit}'
|
||||
|
||||
length -= len(template) - len(placeholder) + 2
|
||||
|
||||
progress = int(i / total * length)
|
||||
bar = f'{theme.done_char * (progress // theme.todo_len)}{theme.todo_char * ((length - progress) // theme.done_len)}'
|
||||
print(color(template.replace(placeholder, bar)), end='\r', flush=True)
|
||||
|
||||
|
||||
def download_pbar(url: str, path: Path):
|
||||
def hook(b: int, bsize: int, tsize: int):
|
||||
print_progressbar(tsize // 1024 // 1024, b * bsize // 1024 // 1024, unit=' MB')
|
||||
|
||||
if path.is_dir():
|
||||
filename = url.split('/')[-1]
|
||||
path = path / filename
|
||||
path.parent.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
urlretrieve(url, filename=path, reporthook=hook)
|
||||
print()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# theme = {'emoji': EMOJI_THEME, 'flower': FLOWER_THEME, 'egg': EGG_THEME, 'classic': CLASSIC_THEME, 'new': NEW_THEME}
|
||||
#
|
||||
# for name, t in theme.items():
|
||||
# print(f'\n{name} theme:')
|
||||
# for i in range(100):
|
||||
# print_progressbar(100, i, theme=t)
|
||||
# time.sleep(0.015)
|
||||
# print()
|
||||
download_pbar('https://github.com/git-for-windows/git/releases/download/v2.37.2.windows.2/MinGit-2.37.2.2-busybox-64-bit.zip', Path('Downloads'))
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import shlex
|
||||
from subprocess import check_output
|
||||
@@ -52,7 +53,8 @@ if __name__ == '__main__':
|
||||
|
||||
# Fetch commit information
|
||||
commits = http.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}/commits').json()
|
||||
author = commits[0]['commit']['author']
|
||||
override_author = os.environ.get("override_author")
|
||||
author = json.loads(override_author) if override_author else commits[-1]['commit']['author']
|
||||
|
||||
# Create commit message
|
||||
title = info["title"].replace('"', '\\"')
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Symbolic11
|
||||
GentlemanMC
|
||||
dr03m
|
||||
|
@@ -25,12 +25,12 @@ def test_rgb_8bit_conversion():
|
||||
for r in range(0, 255, 16):
|
||||
for g in range(0, 255, 16):
|
||||
print(RGB(r, g, 0).to_ansi_rgb(False), end=' ')
|
||||
printc('&r')
|
||||
printc('&*')
|
||||
print()
|
||||
for r in range(0, 255, 16):
|
||||
for g in range(0, 255, 16):
|
||||
print(RGB(r, g, 0).to_ansi_8bit(False), end=' ')
|
||||
printc('&r')
|
||||
printc('&*')
|
||||
print()
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ def pre_check():
|
||||
assert os.path.islink('./hyfetch/scripts/neowofetch'), 'neowofetch is not a symbolic link'
|
||||
# subprocess.check_call(shlex.split('git diff-index --quiet HEAD --')) # 'Please commit all changes before release'
|
||||
|
||||
print('Running shellcheck... (This may take a while)')
|
||||
subprocess.check_call(shlex.split('shellcheck neofetch'))
|
||||
|
||||
|
||||
@@ -46,8 +47,8 @@ def edit_versions(version: str):
|
||||
path.write_text(json.dumps(content, ensure_ascii=False, indent=2))
|
||||
|
||||
# 2. hyfetch/constants.py
|
||||
print('Editing hyfetch/constants.py...')
|
||||
path = Path('hyfetch/constants.py')
|
||||
print('Editing hyfetch/__version__.py...')
|
||||
path = Path('hyfetch/__version__.py')
|
||||
content = [f"VERSION = '{version}'" if l.startswith('VERSION = ') else l for l in path.read_text().split('\n')]
|
||||
path.write_text('\n'.join(content))
|
||||
|
||||
@@ -63,7 +64,7 @@ def edit_versions(version: str):
|
||||
# 4. neofetch script
|
||||
print('Editing neofetch...')
|
||||
path = Path('neofetch')
|
||||
lines = path.read_text().split('\n')
|
||||
lines = path.read_text().replace("\t", " ").split('\n')
|
||||
version_i = next(i for i, l in enumerate(lines) if l.startswith('version='))
|
||||
nf = pv.parse(lines[version_i].replace('version=', ''))
|
||||
new = pv.parse(version)
|
||||
@@ -91,7 +92,8 @@ def finalize_neofetch():
|
||||
|
||||
# 2. Regenerate man page
|
||||
print('Regenerating neofetch man page...')
|
||||
Path('neofetch.1').write_text(subprocess.check_output(['help2man', './neofetch']).decode())
|
||||
Path('docs/neofetch.1').write_text(subprocess.check_output(['help2man', './neofetch']).decode())
|
||||
Path('docs/hyfetch.1').write_text(subprocess.check_output(['help2man', 'python3 -m hyfetch']).decode())
|
||||
|
||||
# 3. Reformat readme links
|
||||
print('Reformatting readme links...')
|
||||
@@ -102,6 +104,7 @@ def post_check():
|
||||
"""
|
||||
Check after changes are made
|
||||
"""
|
||||
print('Running shellcheck... (This may take a while)')
|
||||
subprocess.check_call(shlex.split('shellcheck neofetch'))
|
||||
|
||||
|
||||
@@ -112,8 +115,7 @@ def create_release(v: str):
|
||||
print('Committing changes...')
|
||||
|
||||
# 1. Add files
|
||||
subprocess.check_call(['git', 'add', 'hyfetch/constants.py', 'neofetch', 'neofetch.1', 'package.json', 'README.md',
|
||||
'hyfetch/distros/*'])
|
||||
subprocess.check_call(['git', 'add', '.'])
|
||||
|
||||
# 2. Commit
|
||||
subprocess.check_call(['git', 'commit', '-m', f'[U] Release {v}'])
|
||||
@@ -128,8 +130,7 @@ def create_release(v: str):
|
||||
# 4. Push
|
||||
print('Pushing commits...')
|
||||
subprocess.check_call(['git', 'push'])
|
||||
subprocess.check_call(['git', 'push', 'origin', v])
|
||||
subprocess.check_call(['git', 'push', 'origin', f'neofetch-{NEOFETCH_NEW_VERSION}'])
|
||||
subprocess.check_call(['git', 'push', 'origin', v, f'neofetch-{NEOFETCH_NEW_VERSION}'])
|
||||
|
||||
|
||||
def deploy():
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import re, json
|
||||
|
||||
distro_color = {}
|
||||
|
||||
|
||||
def color(colornum): # see neofetch color()
|
||||
reset = "\e[0m"
|
||||
ascii_bold = "\e[1m"
|
||||
if colornum == "fg" or colornum == "7":
|
||||
return f"\e[37m{reset}"
|
||||
if colornum == "#":
|
||||
pass # TODO
|
||||
if int(colornum) >= 0 and int(colornum) < 7:
|
||||
return f"{reset}\e[3{colornum}m"
|
||||
return f"\e38;5;{colornum}m"
|
||||
|
||||
|
||||
with open("neofetch") as f:
|
||||
s = f.read()
|
||||
l = iter(s.split("\n"))
|
||||
for i in l:
|
||||
p = re.search(r'"\D+"\*\)', i)
|
||||
if p is None:
|
||||
continue
|
||||
distros = re.sub(r"\"|\)|\*", "", i.strip(" ")).split("|")
|
||||
c = next(l).strip(" ")
|
||||
if "set_colors" not in c:
|
||||
continue
|
||||
colors = c.split(" ")[1:]
|
||||
for dist in distros:
|
||||
distro_color[dist.strip(" ").rstrip(" ")] = colors
|
||||
with open("distcolor.json", "w") as f:
|
||||
json.dump(distro_color, f)
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Echo all commands
|
||||
set -x
|
||||
|
||||
shtab --shell=bash -u hyfetch.main.create_parser > hyfetch/scripts/autocomplete.bash
|
||||
shtab --shell=zsh -u hyfetch.main.create_parser > hyfetch/scripts/autocomplete.zsh
|
||||
shtab --shell=tcsh -u hyfetch.main.create_parser > hyfetch/scripts/autocomplete.csh
|
||||
@@ -0,0 +1,10 @@
|
||||
# Secret of Github Webhook to verify the request is from Github
|
||||
webhook_secret = "secret"
|
||||
|
||||
# Github token and repo to regulate
|
||||
gh_token = "token"
|
||||
gh_repo = "owner/repo"
|
||||
|
||||
# AI harm classifier token
|
||||
harm_classifier_url = "https://example.com/classify"
|
||||
harm_classifier_token = "token"
|
||||
@@ -0,0 +1,155 @@
|
||||
# Start the server with:
|
||||
#
|
||||
# uvicorn tools.gh_moderator:app --reload --port 59523
|
||||
#
|
||||
# pip install openai pygithub fastapi uvicorn hypy_utils
|
||||
|
||||
import hashlib
|
||||
import hmac
|
||||
import json
|
||||
import unicodedata
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
import openai
|
||||
import tomllib as toml
|
||||
from fastapi import FastAPI, Request, Response
|
||||
from github import Github
|
||||
from hypy_utils import write, json_stringify
|
||||
from hypy_utils.logging_utils import setup_logger
|
||||
from openai.openai_object import OpenAIObject
|
||||
|
||||
from hyfetch.color_util import printc
|
||||
|
||||
log = setup_logger()
|
||||
|
||||
|
||||
def read_config():
|
||||
with open(Path.home() / ".config/gh_moderator.toml", "rb") as f:
|
||||
return toml.load(f)
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
config = read_config()
|
||||
webhook_secret = bytes(config["webhook_secret"], "utf-8")
|
||||
|
||||
gh = Github(per_page=100, login_or_token=config["gh_token"])
|
||||
me = gh.get_user()
|
||||
repo = gh.get_repo(config["gh_repo"])
|
||||
printc(f"&a[+] Logged in as {me.login}")
|
||||
|
||||
harm_classifier_url, harm_classifier_token = config["harm_classifier_url"], config["harm_classifier_token"]
|
||||
|
||||
script_path = Path(__file__).parent
|
||||
supported_events = ["issue_comment", "issues", "pull_request", "pull_request_review_comment"]
|
||||
ai_notice = f"If you think this is a false-positive, please contact the owner of this repo."
|
||||
|
||||
openai.organization = config['OpenAI']['org']
|
||||
openai.api_key = config['OpenAI']['key']
|
||||
openai_model = config['OpenAI']['model']
|
||||
|
||||
|
||||
def get_content(event: str, obj: dict) -> str:
|
||||
# Get the content of the event
|
||||
match event:
|
||||
case "issue_comment" | "pull_request_review_comment":
|
||||
return obj["comment"]["body"]
|
||||
case "issues":
|
||||
return obj["issue"]["title"] + "\n\n" + obj["issue"]["body"]
|
||||
case "pull_request":
|
||||
return obj["pull_request"]["title"] + "\n\n" + obj["pull_request"]["body"]
|
||||
|
||||
|
||||
def redact(event: str, obj: dict, id: str, reason: str):
|
||||
"""
|
||||
Redact the event
|
||||
"""
|
||||
printc(f"&c[!] Redacting {event} {id} for {reason}.")
|
||||
tail = f"\n\n> Reason: {reason}\n> {ai_notice}"
|
||||
redact_notice = f"[Redacted by [AI Content Moderator]({me.html_url})]{tail}"
|
||||
|
||||
match event:
|
||||
case "issue_comment":
|
||||
# Redact the comment
|
||||
comment = repo.get_issue(obj["issue"]["number"]).get_comment(obj["comment"]["id"])
|
||||
comment.edit(body=redact_notice)
|
||||
|
||||
case "pull_request_review_comment":
|
||||
# Redact the comment
|
||||
comment = repo.get_pull(obj["pull_request"]["number"]).get_review_comment(obj["comment"]["id"])
|
||||
comment.edit(body=redact_notice)
|
||||
|
||||
case "issues" | "pull_request":
|
||||
# Close the issue
|
||||
iss = repo.get_issue(obj["issue"]["number"])
|
||||
iss.edit(title="[Redacted]", body=redact_notice, state="closed")
|
||||
iss.create_comment(f"Issue closed for potentially offensive content.{tail}")
|
||||
iss.lock("spam")
|
||||
|
||||
|
||||
async def process_event(event: str, obj: dict, id: str):
|
||||
# Preliminary checks
|
||||
if event not in supported_events:
|
||||
printc(f"&7[-] Unknown event: {event}")
|
||||
return
|
||||
|
||||
if obj['repository']['full_name'] != repo.full_name:
|
||||
printc(f"&7[-] Unknown repository: {obj['repository']['full_name']}")
|
||||
return
|
||||
|
||||
blacklist_users = {v for v in (script_path / "blacklist_users.csv").read_text().split("\n") if v}
|
||||
actor = obj["sender"]["login"]
|
||||
if actor == me.login:
|
||||
printc(f"&7[-] Ignoring event by myself: {id} {event} by {actor}")
|
||||
return
|
||||
printc(f"&e[+] Received event: {id} {event} by {actor}")
|
||||
|
||||
if actor in blacklist_users:
|
||||
redact(event, obj, id, "User is blacklisted")
|
||||
return
|
||||
|
||||
# Normalize content
|
||||
content = unicodedata.normalize("NFKC", get_content(event, obj))
|
||||
|
||||
# Ask OpenAI to predict if it's offensive
|
||||
res: OpenAIObject = openai.Moderation.create(content, openai_model).results[0]
|
||||
write(f"moderator-data/openai/{id}.json", json_stringify(res))
|
||||
if res.flagged:
|
||||
printc(f"\n&c[!] AI classified {event} {id} by {actor} as offensive !!!\n> Content: {content}\n\n")
|
||||
reason = " | ".join(f"{k} {res.category_scores.get(k) * 100:.0f}%" for k, v in res.categories.items() if v)
|
||||
redact(event, obj, id, f"Flagged by OpenAI : {reason}")
|
||||
return
|
||||
|
||||
printc(f"&a[~] AI classified {event} {id} by {actor} as safe.")
|
||||
|
||||
|
||||
@app.post("/")
|
||||
async def handle_webhook(request: Request, response: Response):
|
||||
# Read headers
|
||||
event = request.headers.get("X-GitHub-Event")
|
||||
signature = request.headers.get("X-Hub-Signature")
|
||||
|
||||
# Verify the signature
|
||||
body = await request.body()
|
||||
if not verify_signature(signature, body):
|
||||
response.status_code = 401
|
||||
return {"message": "Invalid signature"}
|
||||
|
||||
# Parse the event body
|
||||
obj = json.loads(body.decode())
|
||||
|
||||
# Log the request
|
||||
id = datetime.now().isoformat()
|
||||
write(f"moderator-data/webhook/{id}-{event}.json", json_stringify(obj, indent=4))
|
||||
|
||||
await process_event(event, obj, id)
|
||||
|
||||
return {"message": "OK"}
|
||||
|
||||
|
||||
# Helper function to verify the signature
|
||||
def verify_signature(signature: str, payload: bytes) -> bool:
|
||||
hash_type, signature = signature.split("=")
|
||||
digest = hmac.new(webhook_secret, msg=payload, digestmod=getattr(hashlib, hash_type)).hexdigest()
|
||||
return hmac.compare_digest(digest, signature)
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
import os
|
||||
import time
|
||||
|
||||
from github import Github
|
||||
|
||||
if __name__ == '__main__':
|
||||
gh = Github(per_page=100, login_or_token=os.environ.get('GH_TOKEN'))
|
||||
|
||||
repo = gh.get_repo("hykilpikonna/hyfetch")
|
||||
|
||||
while True:
|
||||
iss = repo.get_issues(state='open')
|
||||
|
||||
for i in iss:
|
||||
if i.user.login in ['Symbolic11']:
|
||||
i.edit(title="[Redacted]", body="[Redacted by Content Moderation Bot]", state="closed")
|
||||
i.create_comment("Issue closed by bot for offensive content.")
|
||||
|
||||
print(f"Closed {i.number}")
|
||||
|
||||
time.sleep(2)
|
||||
@@ -15,7 +15,7 @@ from hypy_utils import write
|
||||
from hyfetch.distros import AsciiArt
|
||||
|
||||
RE_SPLIT = regex.compile('EOF[ \n]*?;;')
|
||||
RE_COLORS = regex.compile("""(?<=set_colors )[a-z\\d ]+(?=\n)""")
|
||||
RE_COLORS = regex.compile("""(?<=set_colors )[\"#a-zA-Z\\d ']+(?=\n)""")
|
||||
|
||||
|
||||
def substr(s: str, start: str, end: str | None = None):
|
||||
@@ -34,7 +34,7 @@ def parse_ascii_distros() -> list[AsciiArt]:
|
||||
"""
|
||||
Parse ascii distros from neofetch script
|
||||
"""
|
||||
nf = (Path(__file__).parent.parent / 'neofetch').read_text()
|
||||
nf = (Path(__file__).parent.parent / 'neofetch').read_text().replace('\t', ' ' * 4)
|
||||
|
||||
# Get the content of "get_distro_ascii" function
|
||||
nf = nf[nf.index('get_distro_ascii() {\n'):]
|
||||
@@ -63,7 +63,7 @@ def parse_ascii_distros() -> list[AsciiArt]:
|
||||
match = match[:-1]
|
||||
|
||||
# Get colors
|
||||
color = RE_COLORS.findall(block)[0]
|
||||
color = RE_COLORS.findall(block)[0].strip("'")
|
||||
if len(color) == 0:
|
||||
raise Exception(block)
|
||||
|
||||
|
||||
@@ -3,20 +3,19 @@
|
||||
This script turns readme shorthand pull request references (i.e. dylanaraps/neofetch#1946) into full
|
||||
GitHub pull request links.
|
||||
"""
|
||||
import re
|
||||
import regex as re
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
RE_SHORTHAND = re.compile(r"""[a-z0-9]+?/[a-z0-9]+?#[0-9]+""")
|
||||
RE_SHORTHAND = re.compile(r"(\w+?)/(\w+?)#(\d+)")
|
||||
MY_RE = re.compile(r"(?<=[^\w\[])#(\d+)")
|
||||
|
||||
|
||||
def reformat_readme():
|
||||
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})')
|
||||
readme = re.sub(RE_SHORTHAND, r'[\1#\3](https://github.com/\1/\2/pull/\3)', readme)
|
||||
readme = re.sub(MY_RE, r'[#\1](https://github.com/hykilpikonna/hyfetch/pull/\1)', readme)
|
||||
|
||||
Path('README.md').write_text(readme)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user