Giter VIP home page Giter VIP logo

hyfetch's Introduction

HyFetch

neofetch with pride flags <3

screenshot

Running Updated Original Neofetch

This repo also serves as an updated version of the original neofetch since the upstream dylanaraps/neofetch isn't maintained anymore and has been archived. 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 -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)

Installation

Method 1: Install using Python pip (Recommended)

Install Python >= 3.7 first. Then, just do:

pip install -U hyfetch
# or
pipx install hyfetch

Method 2: Install using system package manager

Currently, these distributions have existing packages for HyFetch:

  • Universal Lure.sh: lure in hyfetch (Thanks to @Elara6331)
  • Arch Linux: sudo pacman -S hyfetch (Thanks to @Aleksana and @Antiz96)
  • Fedora Linux: sudo dnf install hyfetch (packaged by @topazus)
  • Nix: nix-env -i hyfetch (Thanks to @YisuiDenghua)
  • Nix Profile: nix profile install nixpkgs#hyfetch
  • Guix: guix install hyfetch (Thanks to @WammKD)
  • Slackware: sbopkg -b hyfetch Slackbuild (Thanks to @bittin and Urchlay)
  • Homebrew: brew install hyfetch (Thanks to @BKasin and @osalbahr)
  • openSUSE Tumbleweed: zypper in python311-hyfetch (Thanks to @BKasin)
  • Gentoo: emerge --ask app-misc/hyfetch (Thanks to @BKasin)
  • Debian and Ubuntu apt install hyfetch (for Debian flavor >= Trixie, Ubuntu flavor >= Noble) (Thanks to @BKasin)

Packaging status

Method 3: Install the latest developmental version using git

Install Python >= 3.7 first. Then run the following commands:

git clone https://github.com/hykilpikonna/hyfetch.git
cd hyfetch
pip install .

Usage

When you run hyfetch for the first time, it will prompt you to choose a color system and a preset. Just follow the prompt, and everything should work (hopefully). If something doesn't work, feel free to submit an issue!

If you want to use the updated neofetch without LGBTQ flags, check out this section

Questions and answers

Q: How do I change my config?

A: Use hyfetch -c

Q: What do I do if the color is too dark/light for my theme?

A: You can try setting the colors' "lightness" in the configuration menu. The value should be between 0 and 1. For example, if you are using dark theme and the rainbow flag is too dark to display, you can set lightness to 0.7.

Feel free to experiment with it!

image

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.

Q: When I use hyfetch or neowofetch in my MotD, no art displays. How do I get the art back?

A: Most likely, the stdout detection is set to auto and is removing the ascii art and colors. To change this, you can: set args in your hyfetch.json to "--stdout=off", add --stdout=off to the neowofetch command in your motd script, or set the option in $HOME/.config/(neofetch|neowofetch)/config.conf to off.

Q: How can I run HyFetch on Windows?

A: Install Python > 3.7 and Git > 2.42.0 first. Then, either open Git Bash terminal or install a terminal emulator that can display RGB colors (the default Windows cmd.exe cannot, but the new Windows Terminal can). Then, run pip install hyfetch and run hyfetch.

Contributing

To make changes to our codebase, you first need to create a fork by clicking the "Fork" button on the top right. Then, you can clone your fork of the source code using git clone https://github.com/{your username}/hyfetch.git.

After making changes to the source code, you can run python -m hyfetch in the root directory of your repo to test out your changes.

If they work correctly, you can commit and push these changes using git command or Github Desktop. Then, you can create a pull request on Github so that it can go into our next release!

You can also install your version locally by running pip install . in the repo root.

Change Log

About Notation

Updates to HyFetch begins with the emoji 🌈
Updates to neowofetch begins with the emoji πŸ–ΌοΈ

TODO

  • (Important!) Refactor flag storage & coloring to support non-stride patterns
  • Config menu: Allow left-right arrow keys for pagination

Nightly

Note: You can install the latest nightly version by using:

pip install git+https://github.com/hykilpikonna/hyfetch.git@master

1.4.11

  • 🌈 Add ability to set backend args in hyfetch config file (#181)
  • 🌈 Update makefile to be able to install hyfetch (#174)
  • 🌈 Fix config file argument (#177)
  • 🌈 Support pipx installation (#188, #192)
  • 🌈 Create package for Debian, OpenSUSE, Homebrew, Gentoo, and lure.sh
    (#184, #194, #207, #206) Huge thanks to @BKasin!
  • πŸ–Ό DE - Fix DE empty bracket in macOS (#172)
  • πŸ–Ό OS - Disable Hackintosh check on arm64 processors (dylanaraps#2396)
  • πŸ–Ό OS - Add Windows NT (#217)
  • πŸ–Ό Distro - Fixed Kubuntu recognized as Ubuntu (dylanaraps#2411)
  • πŸ–Ό Distro - Use /etc/debian_version to get .x on Debian (#191)
  • πŸ–Ό Distro - Add LainOS (#190)
  • πŸ–Ό Distro - Add aerOS (dylanaraps#2360)
  • πŸ–Ό Distro - Add Xenia (#197)
  • πŸ–Ό Distro - Add EndeavourOS Small Option (dylanaraps#2391)
  • πŸ–Ό Distro - Add AZOS (dylanaraps#2339)
  • πŸ–Ό Distro - Add MainsailOS (dylanaraps#2407)
  • πŸ–Ό Distro - Add Interix (dylanaraps#2409)
  • πŸ–Ό Distro - Add Peropesis Linux (dylanaraps#2414)
  • πŸ–Ό Distro - Add AdΓ©lie Linux (#218)
  • πŸ–Ό Distro - Add Xray_OS (dylanaraps#2413)
  • πŸ–Ό Ascii - Update AOSC logo (#185)
  • πŸ–Ό Ascii - Update phyOS logo (#211)
  • πŸ–Ό Ascii - Update Parch logo (dylanaraps#2045)
  • πŸ–Ό Ascii - Add linux_small (dylanaraps#2417)
  • πŸ–Ό Bug Fix - Fix color blocks for bash !=3 & <5 (#170)
  • πŸ–Ό Bug Fix - Use sed -r instead of -E when using GNU sed (#171)
  • πŸ–Ό Resolution - Improved MacOS resolution detection (dylanaraps#2356)
  • πŸ–Ό Terminal - Add support for alacritty's new config format (#202)
  • πŸ–Ό Terminal - Check for newer xfce4-term config (#214)
  • πŸ–Ό Package - Add support for npm global packages (#215)

1.4.10

  • 🌈 Add support for qwqfetch backend (#148)
  • 🌈 Add nonhuman-unity flag (#139)
  • 🌈 Add gynesexual, androsexual flags (#157)
  • 🌈 Add option to disable pride month animation (#134)
  • 🌈 Make ^C error message less aggressive (?)
  • 🌈 Fix: Should not assume ~/.config is writable (#136)
  • 🌈 Fix: Foreground-background arrangement not detected (#154)
  • πŸ–Ό OS - Update macOS version name list (#140)
  • πŸ–Ό Ascii - Improve color removal (#161)
  • πŸ–Ό Ascii - Fix reset character performance (#158)
  • πŸ–Ό Distro - Smoothen the Tumbleweed logo (dylanaraps#2342)
  • πŸ–Ό Distro - Update RebornOS logo (dylanaraps#2358)
  • πŸ–Ό Distro - Update Venom Linux logo (#166)
  • πŸ–Ό Distro - Add Windows 95 ASCII logo (dylanaraps#2346)
  • πŸ–Ό Distro - Add ParchLinux (dylanaraps#2045)
  • πŸ–Ό Distro - Add OpenKylin (dylanaraps#2341)
  • πŸ–Ό Distro - Add EvolutionOS (dylanaraps#2350)
  • πŸ–Ό Distro - Add Salix (dylanaraps#2357)
  • πŸ–Ό Distro - Add Panwah (dylanaraps#2355)
  • πŸ–Ό Distro - Add PhyOS (#142)
  • πŸ–Ό Distro - Add Athena OS (#130)
  • πŸ–Ό Distro - Add Meowix (#159)
  • πŸ–Ό Distro - Add Slackel (#167)
  • πŸ–Ό Distro - Support *Wrt variants (dylanaraps#2352)
  • πŸ–Ό Version - Fix a typo that broke OS detection on WSL (#155)
  • πŸ–Ό Packages - Implement --package_separate flag (#135)
  • πŸ–Ό Packages - Separate flatpak-system and flatpak-user (#135)
  • πŸ–Ό Packages - Add steam as a package manager (#152)
  • πŸ–Ό Packages - Add squirrel package manager (#153)
  • πŸ–Ό Packages - Make cargo run on all systems (#146)
  • πŸ–Ό Packages - Fix cargo package count (#144)
  • πŸ–Ό Packages - Add Devbox package manager (#137)
  • πŸ–Ό Packages - Fix phantom package when pm command fails (#145)
  • πŸ–Ό Packages - Update scratch package manager (#165)
  • πŸ–Ό Editor - Better version detection
  • πŸ–Ό Resolution - Improve macOS resolution detection (dylanaraps#2356)
  • πŸ–Ό Resolution - Add resolution lookup for iOS (#164)
  • πŸ–Ό Desktop - Display global KDE Plasma theme (#163)
  • πŸ–Ό IP - Improve macOS local IP detection (dylanaraps#2362)
  • πŸ–Ό IP - Fix macOS route hangs on reverse DNS lookup
  • πŸ–Ό Config - Allow specifying default config to copy to ~/.config (#133)

1.4.9

  • 🌈 Add pride month easter-egg animation! ⭐️
  • 🌈 Autocompletion for bash, zsh, tcsh (#96)
  • 🌈 Add nix profile installation method (#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)
  • 🌈 Update issue & pull request templates
  • πŸ–Ό Hostname - Fix FQDN substitution
  • πŸ–Ό Version - Fix Windows version detection (dylanaraps#2309)
  • πŸ–Ό Packages - Fix winget stuck on agreement (#82)
  • πŸ–Ό Distro - Fix Windows text encoding (#115)
  • πŸ–Ό Distro - Add Astra Linux (dylanaraps#2313)
  • πŸ–Ό Distro - Add FemboyOS (#121)
  • πŸ–Ό Distro - Add Nobara Linux (dylanaraps#2326)
  • πŸ–Ό Font - Fix Konsole ppid detection (#116)
  • πŸ–Ό Font - Fix Konsole terminal font detection (#127)
  • πŸ–Ό Image - Optimize sixel image display (dylanaraps#2316)

1.4.8

  • 🌈 Improved Windows git bash detection (#99)
  • 🌈 Improved color formatting codes (#101)
  • 🌈 Allow specifying distro in config (#102)
  • 🌈 Allow specifying custom ascii files (#104)
  • 🌈 Add omniromantic and pangender flags (#106)
  • 🌈 Now officially packaged for ArchLinux Community & Slackware! (#112 | #109)
  • πŸ–Ό Host - Update Apple device model detection. (#111)
  • πŸ–Ό Distro - Add Salient OS. (dylanaraps#2301)
  • πŸ–Ό Distro - Add PikaOS. (#105)
  • πŸ–Ό Distro - Add Archcraft minimal variant. (#108)
  • πŸ–Ό Distro - Update Vanilla logo. (#98)
  • πŸ–Ό Distro - ChromeOS version improvements. (dylanaraps#2305)
  • πŸ–Ό CPU - Improved multi-cpu ARM chip detection. (#97)
  • πŸ–Ό Packages - Support pipx package manager. (#107)

1.4.7

  • 🌈 Better Windows compatibility (#45, #84, #87, #89)
  • 🌈 Add gendervoid flags (#81)
  • 🌈 Fix ASCII extractor escape sequence generation (#90, #91)
  • πŸ–Ό Distro - Add CuteOS (dylanaraps#2291)
  • πŸ–Ό Distro - Add Floflis (dylanaraps#2289)
  • πŸ–Ό Distro - Add ArseLinux (dylanaraps#2295)
  • πŸ–Ό Distro - Better Solaris support (dylanaraps#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)
  • πŸ–Ό 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)
  • πŸ–Ό Distro - Add RhaymOS (dylanaraps#2274)
  • πŸ–Ό Editor - Add editor information detection (dylanaraps#2271)
  • πŸ–Ό Packages - Fix empty cargo directory (#58)
  • πŸ–Ό Terminal - Display gnome-console instead of kgx (dylanaraps#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)

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)
  • 🌈 Support pure-python distro detection for FastFetch
  • πŸ–ΌοΈ Distro - Add Aster Linux (dylanaraps#2251)
  • πŸ–ΌοΈ Distro - Add Hybrid Linux (dylanaraps#2239)
  • πŸ–ΌοΈ Distro - Add UrukOS (dylanaraps#2258)
  • πŸ–ΌοΈ Distro - Add Project Sasanqua (dylanaraps#2264)
  • πŸ–ΌοΈ Distro - Add Kali small variant (dylanaraps#2242)
  • πŸ–ΌοΈ Distro - Fix CachyOS matching (dylanaraps#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)
  • πŸ–Ό Packages - Add tea.xyz package manager (issue dylanaraps#2235)

1.4.4

  • 🌈 Fix Python 3.11 compatibility (#35)
  • 🌈 Fix many overflow problems when screen is too small
  • πŸ–ΌοΈ Distro - Add Enso (dylanaraps#2233)
  • πŸ–ΌοΈ Memory - Optimize and fix memory unit conversion (dylanaraps#2225)
  • πŸ–ΌοΈ DE - Add dwl window manager (dylanaraps#2234)
  • πŸ–ΌοΈ DE - Fix XDG session detection for X11 (dylanaraps#2232)
  • πŸ–ΌοΈ CPU - Fix model detection for loongson (#34)

1.4.3

  • 🌈 Auto detect terminal background color & rgb support
  • 🌈 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)
  • 🌈 Fix jailbreak iOS shell killed: 9 issue caused by ld signature check.
  • πŸ–ΌοΈ Distro - Add garuda_small (dylanaraps#2215)
  • πŸ–ΌοΈ Distro - Add Cobalt Linux (dylanaraps#2213)
  • πŸ–ΌοΈ Distro - Add VanillaOS (dylanaraps#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)

1.4.2

  • 🌈 Detailed runnning/contributing instructions in README.md (#21)
  • πŸ–ΌοΈ Distro - Add Stock Linux (#23)
  • πŸ–ΌοΈ Distro - Add DietPi (dylanaraps#1706)
  • πŸ–ΌοΈ Distro - Add OmniOS illumos (dylanaraps#2196)
  • πŸ–ΌοΈ Distro - Add Droidian (dylanaraps#2201)
  • πŸ–ΌοΈ Distro - Add HamoniKR (dylanaraps#2210)
  • πŸ–ΌοΈ Song - Add support for TIDAL HiFi (#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)

1.4.1

  • 🌈 Paginate flags (#14)
  • 🌈 Add release workflow (#15)
  • 🌈 Create automatic release script
  • 🌈 Config page - Give warning when terminal size is too small
  • 🌈 Config page - Optimize color arrangement selection on small screens
  • 🌈 Add experimental Windows support (very unstable at the moment)
  • πŸ–ΌοΈ Distro - Add ravynOS (dylanaraps#2182)
  • πŸ–ΌοΈ Distro - Add ChonkySealOS (dylanaraps#2180)
  • πŸ–ΌοΈ Distro - Add GhostBSD (TheSudoer#18)
  • πŸ–ΌοΈ Distro - Add NekOS (dylanaraps#2186)
  • πŸ–ΌοΈ Distro - Add astOS (dylanaraps#2185)
  • πŸ–ΌοΈ Distro - Fix ChromeOS identification (dylanaraps#1949)
  • πŸ–ΌοΈ WM - Add Hyprland to the list of wayland wms (dylanaraps#2190)
  • πŸ–ΌοΈ Env - Add Java, Python, Node version detection (can be enabled in config)
  • πŸ–ΌοΈ Bug Fix - Fix hostname detection when inetutils is not installed
  • πŸ–ΌοΈ Bug Fix - Fix empty brackets displayed when no theme is found (dylanaraps#1713)
  • πŸ–ΌοΈ Bug Fix - Fix $ escape bug in strip_escape_codes() (dylanaraps#1543)
  • πŸ–ΌοΈ Bug Fix - Fix backslash escape bug in strip_escape_codes() (dylanaraps#1543)
  • πŸ–ΌοΈ Bug Fix - Fix CPU detection on ARM QEMU

1.4.0

  • 🌈 Add finsexual flag (#12)
  • πŸš€ Addressed a total of 128 currently open pull requests from neofetch
πŸ–ΌοΈ Meta Changes
  • Meta - Fixed shellcheck warnings in neowofetch
  • Meta - Moved shellcheck from travis to GitHub Actions
  • Meta - Created a script to automatically generate distro list
  • Colors - Allow RGB colors in neofetch --ascii_colors argument (dylanaraps#1726)
πŸ–ΌοΈ Distro/OS Support Changes
πŸ–ΌοΈ Device Support Changes
πŸ–ΌοΈ Bug Fixes

1.3.0

πŸ–ΌοΈ Ascii Art Changes
πŸ–ΌοΈ Distro/OS Support Changes
πŸ–ΌοΈ Device Support Changes
πŸ–ΌοΈ Bug Fixes

1.2.0

  • πŸš€ Take over neofetch with neowofetch
πŸ–ΌοΈ Ascii Art Changes
  • Ascii - Add uwuntu (#9) (use it with hyfetch --test-distro uwuntu or neowofetch --ascii_distro uwuntu)
  • Ascii - Better Void ascii art (#10)
  • Ascii - Update old NixOS logo for compatibility (dylanaraps#2114)
πŸ–ΌοΈ Distro/OS Support Changes
πŸ–ΌοΈ Device/Program Support Changes
πŸ–ΌοΈ Bug Fixes

1.1.3rc1

  • 🌈 Add foreground-background color arrangement to make Fedora and Ubuntu look nicer
  • 🌈 Allow typing abbreviations in flag selection
  • 🌈 Fix: Duplicate random color arrangements are appearing in selection screen
  • 🌈 Fix: Inconsistant color arrangement when saved to config file

1.1.2

  • Add more flags (#5)
  • Removed numpy dependency that was used in 1.1.0

1.1.0

  • Refactored a lot of things
  • Added Beiyang flag xD
  • Added interactive configurator for brightness adjustment
  • Added dark/light mode selection
  • Added color bar preview for RGB/8bit mode selection
  • Added random color arrangement feature (for NixOS)

1.0.7

  • Fix: Make config path not on init but when it's actually needed.

1.0.6

  • Remove hypy_utils dependency to make packaging easier.

1.0.5

  • Fix terminal emulator detection ([PR #2](#2))

1.0.4

  • Add more flags ([PR #1](#1))

1.0.3

  • Fix missing dependency for setuptools

1.0.2

  • Implement RGB to 8bit conversion
  • Add support for Python 3.7 and 3.8

1.0.1

  • Included 11 flag presets
  • Ability to lighten colors with --c-set-l <lightness>
  • Command-line flag chooser
  • Supports Python >= 3.9

More Screenshots

image image

Original Readme from Neofetch Below

logo

A command-line system information tool written in bash 3.2+

Packaging status

neofetch

Neofetch is a command-line system information tool written in bash 3.2+. Neofetch displays information about your operating system, software and hardware in an aesthetic and visually pleasing way.

The overall purpose of Neofetch is to be used in screen-shots of your system. Neofetch shows the information other people want to see. There are other tools available for proper system statistic/diagnostics.

The information by default is displayed alongside your operating system's logo. You can further configure Neofetch to instead use an image, a custom ASCII file, your wallpaper or nothing at all.

neofetch

You can further configure Neofetch to display exactly what you want it to. Through the use of command-line flags and the configuration file you can change existing information outputs or add your own custom ones.

Neofetch supports almost 150 different operating systems. From Linux to Windows, all the way to more obscure operating systems like Minix, AIX and Haiku. If your favourite operating system is unsupported: Open up an issue and support will be added.

hyfetch's People

Contributors

aidanharris avatar armstrongj avatar bgkillas avatar bkasin avatar crackedmatter avatar crestwave avatar dawidd6 avatar dritter avatar dylanaraps avatar emptiedsoul avatar enterthevoid-x86 avatar hykilpikonna avatar iandrewt avatar jadematrix avatar jorgegonzalez avatar kidonng avatar konimex avatar l1kwidus avatar larobitrumpet avatar michaelstraube avatar mindtooth avatar oshaboy avatar rasa avatar robertwolter avatar saeziae avatar trimoon avatar tudurom avatar un1q32 avatar yisuidenghua avatar yuki-kurosawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyfetch's Issues

Feature request: option to disable package enumeration

Description

On my Oracle Linux VPS, getting rpm package count takes 10+ seconds (4-5 seconds if successively run twice or more).

It will be much more usable if package count could be disabled by modifying config file.

Git Bash on Windows renders control characters in setup

Description

When first configuring hyfetch the terminal renders control characters instead of interpreting them:
image

This happens both in VSCode's integrated terminal as well as the Windows Terminal. Running in MinTTY does work:

image

After having actually run through the config, running the program does work for some reason...

image

I have looked through the source, but I can't fix it.

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

Just fetched master

Config file

GlobalConfig(color_mode='rgb', override_distro=None, debug=True, is_light=False)

Adding TIDAL HiFi as a music player

I wonder if it would be possible adding TIDAL HiFi to the music players considering it uses MPRIS which aligns with most of the music players in the script.
the MPRIS service/endpoint is called "tidal-hifi"

Windows Terminal goes haywire when running HyFetch for the first time

Description

I am using Windows Terminal 1.15.2875.0 on Windows 11 22H2 (22621.819) to connect to my Linux boxes (WSL and SSH).

When running hyfetch on any machine for the first time, it enters the configuration routine, and it seems to incorrectly detect the dimensions of the Windows Terminal window, messing up the screen (see pics 1 & 2).

By hitting Enter several times I can finish configuration with defaults, but the screen does not recover afterwards (see pic 3). I must reconnect to restore normal operation.

It seems a compatibility issue between hyfetch and certain terminal emulators, because the issue does not occur on GNOME Terminal (Ubuntu 20.04 with latest updates).

I can also reproduce the issue with MobaXTerm v20.1.

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version: HyFetch 1.4.4

Screenshots

Config file

None (first run)

Verbose log

I tried hyfetch --debug but it produced nothing on stderr.

Custom ASCII Art

Description

I use custom ASCII art with my neofetch instead of the default distro one. Would it be possible to have that be passed to hyfetch? ^^

Hyfetch does not run on Python 3.11.0

Description

Python 3.11.0 has been released for a while and trying to run hyfetch using python 3.11.0 resulted in a error.

  • Does this issue still occur in the master branch? (Required if issue)

Verbose log

Traceback (most recent call last):
  File "/var/home/samgo/.pyenv/versions/3.11.0/bin/hyfetch", line 5, in <module>
    from hyfetch.main import run
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/site-packages/hyfetch/__init__.py", line 3, in <module>
    from . import main, constants
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/site-packages/hyfetch/main.py", line 15, in <module>
    from .models import Config
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/site-packages/hyfetch/models.py", line 13, in <module>
    @dataclass
     ^^^^^^^^^
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1221, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1211, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 959, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/samgo/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 816, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'hyfetch.neofetch_util.ColorAlignment'> for field color_align is not allowed: use default_factory

Brightness doesnt work

Description

Brightness does not seem to work under kitty, which supports 24bit color.

  • [?] Does this issue still occur in the master branch? (Required if issue)
    (no idea, i'm running the hyfetch package off the AUR, which is currently using the 1.4.5 tag)

Neofetch version

Screenshot

image

Config file

n/a, this is firstrun

Verbose log

  1. Run neofetch -vv 2> neofetchlog
  2. Upload the contents of neofetchlog to pastebin, gist or equivalent.

OS detection as wrong as in neofetch

Description

The hyfetch OS detection is a bit off, regular ubuntu running KDE gets picked up as Kubuntu, while I'm not running kubuntu.

  • Does this issue still occur in the master branch? (Required if issue)

Hyfetch version

β”Œ[realfx@XXXXXXXXXXXXXX]-(~)
β””> hyfetch -V
Version is 1.4.2

Screenshot

https://prnt.sc/wgnCy7CLsxmM

Config file (output for hyfetch --debug

none
GlobalConfig(color_mode='rgb', override_distro=None, debug=True, is_light=False)
{...}

Syntax error in some distro logos.

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)

python3 setup.py test output:

WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
creating HyFetch.egg-info
writing HyFetch.egg-info/PKG-INFO
writing dependency_links to HyFetch.egg-info/dependency_links.txt
writing entry points to HyFetch.egg-info/entry_points.txt
writing requirements to HyFetch.egg-info/requires.txt
writing top-level names to HyFetch.egg-info/top_level.txt
writing manifest file 'HyFetch.egg-info/SOURCES.txt'
reading manifest file 'HyFetch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.md'
writing manifest file 'HyFetch.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "/home/hako/Repository/hyfetch/setup.py", line 15, in <module>
    setup(
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
    self.run_command(cmd)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
    cmd_obj.run()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 224, in run
    self.run_tests()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 227, in run_tests
    test = unittest.main(
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 124, in parseArgs
    self._do_discovery(argv[2:])
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 244, in _do_discovery
    self.createTests(from_discovery=True, Loader=Loader)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 154, in createTests
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 349, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 405, in _find_tests
    tests, should_recurse = self._find_test_path(
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 483, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 191, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/hako/Repository/hyfetch/hyfetch/distros/haiku.py", line 18
    \""""              \""""
                            ^
SyntaxError: unexpected character after line continuation character

python3 -m compileall . output:

Listing '.'...
Listing './.git'...
Listing './.git/branches'...
Listing './.git/hooks'...
Listing './.git/info'...
Listing './.git/logs'...
Listing './.git/logs/refs'...
Listing './.git/logs/refs/heads'...
Listing './.git/logs/refs/remotes'...
Listing './.git/logs/refs/remotes/origin'...
Listing './.git/objects'...
Listing './.git/objects/03'...
Listing './.git/objects/0e'...
Listing './.git/objects/10'...
Listing './.git/objects/1c'...
Listing './.git/objects/27'...
Listing './.git/objects/3e'...
Listing './.git/objects/82'...
Listing './.git/objects/91'...
Listing './.git/objects/b8'...
Listing './.git/objects/ea'...
Listing './.git/objects/info'...
Listing './.git/objects/pack'...
Listing './.git/refs'...
Listing './.git/refs/heads'...
Listing './.git/refs/remotes'...
Listing './.git/refs/remotes/origin'...
Listing './.git/refs/tags'...
Listing './.github'...
Listing './.github/workflows'...
Listing './.vscode'...
Listing './hyfetch'...
Compiling './hyfetch/constants.py'...
Listing './hyfetch/distros'...
Compiling './hyfetch/distros/haiku.py'...
***   File "./hyfetch/distros/haiku.py", line 18
    \""""              \""""
                            ^
SyntaxError: unexpected character after line continuation character

Compiling './hyfetch/distros/skiffos.py'...
***   File "./hyfetch/distros/skiffos.py", line 14
    ${c1}````'\"""\""""${c2}'\"""\"""""
                       ^
SyntaxError: invalid syntax

Compiling './hyfetch/distros/trisquel.py'...
***   File "./hyfetch/distros/trisquel.py", line 14
    ${c1}     \""""     ${c2}d$$$$"'
                        ^
SyntaxError: invalid syntax

Compiling './hyfetch/main.py'...
Compiling './hyfetch/neofetch_util.py'...
Compiling './hyfetch/presets.py'...
Listing './hyfetch/scripts'...
Compiling './setup.py'...
Listing './tools'...

Option to override default distro ascii art

Description

A config option that lets you override the default distro ascii art displayed would be useful. Windows has three different styles of ascii art that may be preferred by different users and manually overriding the distro can be used to work around #29.

I understand that the --distro option exists, but if we allow specifying a default flag I don't see why the same can't be done for distros.

Curious about the python usage

Description

I'm just curious why the python usage, even for the install? πŸ€”

It seems to work perfectly when executing sudo make install inside the cloned repo, which doesn't require any python:

#> cd <git-repo>
<git-repo>#> sudo make install
#> cd
#> neofetch --version
Neofetch 7.3.3
#> neofetch
<normal output as expected>

'No such file or directory' error occurs when running hyfetch on Windows

Description

hyfetch is installed by pip. After I maked a workground for #83, it throws <path of python>/Lib/site-packages/neofetch: No such file or directory. I tried copy <path of python>/Scripts/neowofetch to <path of python>/Lib/site-packages/neofetch, the script runs successfully but freezed like #82.

$ hyfetch
/usr/bin/bash: line 1: /c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch: No such file or directory
Error: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch ascii_distro_name']' returned non-zero exit status 127.
Traceback (most recent call last):
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\main.py", line 429, in run
    neofetch_util.run(preset, config.color_align, config.backend)
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 265, in run
    return run_neofetch(preset, alignment)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 279, in run_neofetch
    asc = get_distro_ascii()
          ^^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 239, in get_distro_ascii
    det = distro_detector.detect(distro or get_distro_name())
                                           ^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 260, in get_distro_name
    return run_neofetch_cmd('ascii_distro_name', True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 220, in run_neofetch_cmd
    return check_output(full_cmd).decode().strip()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\zzz\scoop\apps\python\current\Lib\subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch ascii_distro_name']' returned non-zero exit status 127.
  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

7.3.6

Screenshot

See description above and #82.

Distributions May Fail to Package Neofetch Updates

What happened?

I was made aware of a pull request that added a small logo for AOSC OS/Retro. Given that the original upstream at @dylanaraps is no longer active, you have duplicated and merged pull request here and suggested that...

"HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also serves as an updated version of neofetch, addressing many pull requests that are not merged in the original repo."

First of all, thank you. However, I have only then found out about the fact that a copy of Neofetch is maintained here in this repository. Good news, right? Not quite.

Hyfetch, as technically a wrapper project for Neofetch, is not Neofetch. However, judging from the release history, it seems that instead Neofetch is considered one of Hyfetch's integral components.

What's the problem?

Consider this. Various distributions has packaged Neofetch, whose version stopped at 7.1.0, reflecting only changes in Neofetch. Now, Hyfetch merges Neofetch as a component and reset the version history. What kinds of problems might this cause?

  1. Visibility. Practically no distribution knows of an updated fork for Neofetch. Repology statistics demonstrates this point perfectly. Neofetch is currently sitting at 7.3.3 (but not reflected in either commit history or tags).
  2. Failure to reflect versioning changes. Given this situation, a distribution could either downgrade their packages (by adding "epoch" markers, 7.1.0 => 1:1.4.3), or by tagging on Hyfetch changes (either as 7.1.0+hyfetch1.4.3 or 7.1.0+git20221113). However, by doing so, distributions risk either (1) failing to reflect Neofetch versioning changes (users install Neofetch 7.1.0+fetch1.4.3 but the scripts report version 7.3.3, or (2) failing to reflect Hyfetch's de facto upstream status (by not following Hyfetch's versioning convention).

The second point is especially concerning, as distributions may use update checkers to track upstream package versioning. Fedora's Anitya or AOSC OS' aosc-findupdate will not be able to effectively track and apply update information on their packages - as no exact versioning is reflected on Neofetch.

In short, it's unworkable for us distribution packagers (we might miss updates) and it has the potential to confuse users (see point 2 above, complicated versioning markers and inconsistent version reporting).

What do you propose?

From my standpoint (as an AOSC OS maintainer), I urge changes to your release strategies. As you are the de facto upstream, we strongly suggest that you make your project workable for distribution packagers, especially now that Neofetch has been packaged by so many distributions. I propose the following methods (that I would consider ideal or at least workable), for your reference:

  1. Restore Neofetch as a dedicated project, and incorporate its code as a Git submodule in this repository. This way, we have a consistent location to track Neofetch changes and it reflects the nature of this project much better.
  2. Tag Neofetch with a prefix. If option 1 would not work under any circumstances, please consider tagging Neofetch versions like neofetch-7.3.3, so that distributions can still have a clear idea of what is going on here.
  3. At the very least, reflect Neofetch changes in commit messages. But truthfully, I simply don't see why either option 1 or 2 wouldn't work.

I can, however, see an argument that Hyfetch is not the upstream or the fact that @dylanaraps might one day pick up Neofetch again. But hey, they have been inactive for close to a year now. A year is a long time for bug fixes to sit undiscovered by distributions. @dylanaraps also has all the power to apply changes made here in this repository if and when they decide to reboot the project.

`hyfetch/distros/cachy_os.py` still imports `hyfetch.distro`

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)

python3 setup.py test output:

running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing HyFetch.egg-info/PKG-INFO
writing dependency_links to HyFetch.egg-info/dependency_links.txt
writing entry points to HyFetch.egg-info/entry_points.txt
writing requirements to HyFetch.egg-info/requires.txt
writing top-level names to HyFetch.egg-info/top_level.txt
reading manifest file 'HyFetch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.md'
writing manifest file 'HyFetch.egg-info/SOURCES.txt'
running build_ext
cachy_os (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: cachy_os (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: cachy_os
Traceback (most recent call last):
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/hako/Repository/hyfetch/hyfetch/distros/cachy_os.py", line 2, in <module>
    from hyfetch.distro import AsciiArt
ModuleNotFoundError: No module named 'hyfetch.distro'


----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>

Color Blocks Don't Get Printed on MacOS zsh 5.9/ bash 5.2.9

Description

When running hyfetch and the updated neofetch script from this repo, the color blocks still don't get printed unless I use another custom neofetch config template. I tried to change my shell to bash to see if the problem would get solved but I still get the same output.

MacOS version: Big Sur 11.4
ZSH version: 5.9
BASH version: 5.2.9

Steps to reproduce the problem

  1. Install neofetch via brew.
  2. Install hyfetch via pip.
  3. Replace the neofetch script from this repo to the /usr/local/Cellar/neofetch/7.1.0/bin/neofetch
  4. Use the default config file from the neofetch repo.
  5. Run neofetch and hyfetch.
  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

Neofetch version: 7.3.4

Screenshots

ZSH

Hyfetch
Screen Shot 2022-12-08 at 9 39 00 AM

Neofetch
Screen Shot 2022-12-08 at 10 21 10 AM

BASH

Hyfetch
Screen Shot 2022-12-08 at 10 28 44 AM

Neofetch
Screen Shot 2022-12-08 at 10 04 06 AM

With a Custom config file (a template)

Screen Shot 2022-12-08 at 10 32 46 AM

Config file

This is the one that doesn't print the blocks
Default config from neofetch repo

Template that works printing blocks

print_info() {
        
    prin "${c1} Sys-Info       "
    info "${c5} β”œβ”€ οŒƒ Distro     " distro
    info "${c5} β”œβ”€ ο…Ό Kernel     " kernel
    info "${c5} β”œβ”€  DE/WM      " wm
    info "${c5} β”œβ”€  CPU        " cpu
    info "${c5} β”œβ”€ ο‘Έ GPU        " gpu
    info "${c5} β”œβ”€  Up Time    " uptime
    info "${c5} └─ οŠ’ SHELL      " shell 
    prin "$(color 1) ο„‘ $(color 2)ο„‘ $(color 3)ο„‘ $(color 4)ο„‘ $(color 5)ο„‘ $(color 6)ο„‘ $(color 7)ο„‘ $(color 8)ο„‘"
    
}
title_fqdn="off"
kernel_shorthand="off"
distro_shorthand="off"
os_arch="off"
uptime_shorthand="on"
memory_unit="mib"
package_managers="on"
shell_path="off"
shell_version="on"
speed_shorthand="off"
cpu_brand="on"
cpu_speed="off"
cpu_cores="off"
cpu_temp="off"
gpu_brand="on"
gpu_type="dedicated"
refresh_rate="off"
gtk_shorthand="off"
gtk2="on"
gtk3="on"
public_ip_host="http://ident.me"
public_ip_timeout=2
de_version="on"
disk_show=('/')
disk_subtitle="mount"
disk_percent="on"
song_shorthand="off"
mpc_args=()
colors=(1 2 3 4 5 6 7 8)
bold="on"
underline_enabled="on"
underline_char="ο‘³"
separator=":"
block_range=(0 15)
color_blocks="on"
block_width=3
block_height=1
col_offset="auto"
bar_char_elapsed="-"
bar_char_total="="
bar_border="on"
bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
image_backend="kitty"
image_source="auto"
ascii_distro="macos_small"
ascii_colors=(1 2 3 4 5 6 7 8)
ascii_bold="on"
image_loop="off"
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
crop_mode="normal"
crop_offset="center"
image_size="auto"
gap=2
yoffset=0
xoffset=0
background_color=
stdout="off"

Verbose log

Neofetch verbose log

Unable to run Hyfetch on Windows 10

Description

Hyfetch is unable to run on Windows 10
Currently installed version of Python is 3.10.4

Release 1.4.0

Installed using pip
Powershell & Command Prompt:
Setup functions as expected, until you select a brightness, upon which you will be met with the following error:

Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\f191\AppData\Roaming\Python\Python310\Scripts\hyfetch.exe\__main__.py", line 7, in <module>
  File "C:\Users\f191\AppData\Roaming\Python\Python310\site-packages\hyfetch\main.py", line 299, in run
    config = check_config()
  File "C:\Users\f191\AppData\Roaming\Python\Python310\site-packages\hyfetch\main.py", line 33, in check_config
    return create_config()
  File "C:\Users\f191\AppData\Roaming\Python\Python310\site-packages\hyfetch\main.py", line 199, in create_config
    asc = get_distro_ascii()
  File "C:\Users\f191\AppData\Roaming\Python\Python310\site-packages\hyfetch\neofetch_util.py", line 150, in get_distro_ascii
    return normalize_ascii(check_output([get_command_path(), cmd]).decode().strip())
  File "C:\Program Files\Python310\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Program Files\Python310\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Program Files\Python310\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\Python310\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 193] %1 is not a valid Win32 application

MINGw64 (Git Bash):
Colours entirely broken, ends in same error as before
Error

Ver. 67915c3

Cloned from GH
Moving to the dir and using python -m hyfetch
Powershell, Command Prompt, MINGw64 (Git Bash):

Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\Python310\lib\runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Program Files\Python310\lib\runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\f191\Desktop\hyfetch\hyfetch\__init__.py", line 3, in <module>
    from . import main, constants
  File "C:\Users\f191\Desktop\hyfetch\hyfetch\main.py", line 14, in <module>
    from .models import Config
  File "C:\Users\f191\Desktop\hyfetch\hyfetch\models.py", line 9, in <module>
    from .neofetch_util import ColorAlignment
  File "C:\Users\f191\Desktop\hyfetch\hyfetch\neofetch_util.py", line 17, in <module>
    import psutil
ModuleNotFoundError: No module named 'psutil'

Failure to run on AlmaLinux 8 (8.6 release)

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

1.4.3

Screenshot

[root@rancid .ssh]# pip3 install hyfetch
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting hyfetch
Downloading https://files.pythonhosted.org/packages/a7/18/c4e9b81f49b447b70941362ef0fa808b2ef96f047f4230d94faf8edbf023/HyFetch-1.4.3-py3-none-any.whl (261kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 266kB 3.9MB/s
Collecting typing-extensions (from hyfetch)
Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from hyfetch)
Installing collected packages: typing-extensions, hyfetch
Successfully installed hyfetch-1.4.3 typing-extensions-4.1.1
[root@rancid .ssh]# find / -name hyfetch -print
/usr/local/bin/hyfetch
/usr/local/lib64/python3.6/site-packages/hyfetch
[root@rancid .ssh]# /usr/local/bin/hyfetch
Traceback (most recent call last):
File "/usr/local/bin/hyfetch", line 7, in
from hyfetch.main import run
File "/usr/local/lib64/python3.6/site-packages/hyfetch/init.py", line 1
from future import annotations
^
SyntaxError: future feature annotations is not defined

Config file

Verbose log

  1. Run neofetch -vv 2> neofetchlog
  2. Upload the contents of neofetchlog to pastebin, gist or equivalent.

Doesn't get past the missing "from" so none of the debugging requests work as well. This was a brand new fresh pip3 install.

And notice for agreement of the winget command

Description

As the title says, neowofetch freezes on Windows 11 [Version 10.0.22621.1105]
Use Git for Windows (Version 2.39.1.windows.1)

Using the winget command must agree their agreement. That's an interactive interface so it looks like freezed. Maybe a notice is need?

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

7.3.6 (installed from npm)

Screenshot

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2023-01-27 220414

Config file

Not configured yet. Default settings.

Verbose log

Nothing was outputted with -vv.

Unable to run Neowofetch outside of MINGw64 on Windows 10

Description

Installed version of Python: 3.10.4
Hyfetch installed from pip, Version 1.4.0

The Neowofetch command currently only runs in MINGw64 on Windows 10

Attempting to use Neowofetch in Powershell will open a "How do you want to open this file?" prompt
Attempting to use Neowofetch in Command Prompt will generate the error:
"'neowofetch' is not recognized as an internal or external command, operable program or batch file."

I've found, through tinkering with the version of neofetch I installed using scoop, that it /is/ possible to run Neowofetch outside of bash:

  1. Navigate to existing Neofetch installation (With scoop this is \user\scoop\apps\neofetch\current)
  2. Copy over the Neowofetch file
  3. Delete/Rename the original Neofetch file
  4. Rename Neowofetch to Neofetch

Hanging on windows

Permanently hangs in run_neofetch_cmd when calling subprocess.call(full_cmd)
I managed to get it to work by using my fork and then running "hyfetch" | bash.exe from PowerShell or "neowofetch"|bash.exe and that doesn't matter what version your using.

Incorrect width when using bedrock's ASCII

In the AUR version
yay

And in bash <(curl -sL neowofetch.hydev.org)
curl

I haven't tested other versions yet but I think the issue could be with how it counts the width of the ASCII because of all the slashes
hyfetch -c

[feature] shell completion

Incomplete Cachyos pull

You pulled in Cachyos's pr to neofetch to early its missing a patch. Without this os detection is broken please fix this at the soonest

From 4c3465badfa09957180768ecfbb998765c4e6584 Mon Sep 17 00:00:00 2001
From: Vladislav Nepogodin <[email protected]>
Date: Tue, 16 Aug 2022 19:30:50 +0400
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20bug=20is=20leaving=20$HOME?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 neofetch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/neofetch b/neofetch
index 85d9aea9a..ff3e66d3b 100755
--- a/neofetch
+++ b/neofetch
@@ -784,7 +784,7 @@ image_source="auto"
 #       Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft,
 #       ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch,
 #       Artix, Arya, Bedrock, Bitrig, BlackArch, BLAG, BlankOn, BlueLight,
-#       Bodhi, bonsai, BSD, BunsenLabs, \"Cachy OS\", Calculate, Carbs, CentOS, Chakra, ChaletOS,
+#       Bodhi, bonsai, BSD, BunsenLabs, CachyOS, Calculate, Carbs, CentOS, Chakra, ChaletOS,
 #       Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres,
 #       Container_Linux, Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin,
 #       DesaOS, Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary,
@@ -5143,7 +5143,7 @@ ASCII:
                                 instantOS, Antergos, antiX, \"AOSC OS\", \"AOSC OS/Retro\",
                                 Apricity, ArchCraft, ArcoLinux, ArchBox, ARCHlabs, ArchStrike,
                                 XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
-                                BlackArch, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs, \"Cachy OS\",
+                                BlackArch, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs, CachyOS,
                                 Calculate, Carbs, CentOS, Chakra, ChaletOS, Chapeau, Chrom,
                                 Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, Container_Linux,
                                 Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS, Devuan,
@@ -6490,7 +6490,7 @@ ${c1}        `++
          -/
 EOF
         ;;
-    "Cachy OS"*)
+    "CachyOS"*)
         set_colors 2 8 6
         read -rd '' ascii_data <<'EOF'
 ${c3}           ${c2}.${c3}-------------------------:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.