neofetch
neofetch copied to clipboard
Misclassification of Hyprland
Description
Hyprland is a Windows Manager or Wayland Composer instead of Desktop Environment. But in Neofetch it becomes a DE with Sway WM.
- [x] Does this issue still occur in the master branch? (Required if issue)
Neofetch version
7.1.0
Screenshot
>>>> [zayn7lie]~$ neofetch
-` zayn7lie@zayn7lie-acl
.o+` ---------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: ROG Flow X13 GV301RA_GV301RA 1.0
`+oooooo: Kernel: 6.4.12-arch1-1
-+oooooo+: Uptime: 21 hours, 3 mins
`/:-:++oooo+: Packages: 789 (pacman)
`/++++/+++++++: Shell: bash 5.1.16
`/++++++++++++++: Resolution: 1920x1200
`/+++ooooooooooooo/` DE: Hyprland
./ooosssso++osssssso+` WM: sway
.oossssso-````/ossssss+` Theme: Adwaita [GTK2/3]
-osssssso. :ssssssso. Icons: ePapirus-Dark [GTK2/3]
:osssssss/ osssso+++. Terminal: kitty
/ossssssss/ +ssssooo/- CPU: AMD Ryzen 7 6800HS with Radeon Graphics (16) @ 4.785GHz
`/ossssso+/:- -:/+osssso+- GPU: AMD ATI Radeon 680M
`+sso+:-` `.-/+oso: Memory: 6388MiB / 15231MiB
`++:. `-/+/
.` `/
If you really wanted it to show hyprland for the WM, just use prin instead of info
This also happened to me. I think this caused by swaybg(used to set my wallpaper) so ps -e | grep -e sway
returns 1778 tty1 00:00:00 swaybg
but the command used in neofetch to find the wm ps -e | grep -m 1 -o -F -e sway
matches with swaybg and returns sway
.
Is there any easy fix to neofetch for this? It seems like simply matching any part of process name especially for programs like swaybg that share the same name could cause general misclassifcations of de/wm's outside just this edgecase
is there any easy fix to neofetch for this? It seems like simply matching any part of process name especially for programs like swaybg that share the same name could cause general misclassifcations of de/wm's outside just this edgecase
maybe try with -w (match only whole words) : ps -e | grep -w -m 1 -o -F -e sway
Is there any easy fix to neofetch for this? It seems like simply matching any part of process name especially for programs like swaybg that share the same name could cause general misclassifcations of de/wm's outside just this edgecase
An easy way could be just to replace the info line with prin "sway"
and customize it to your liking.
The way WMs is identified is also a bit broken. I was getting Hyprland DE Sway WM, but then I also installed gnome so my wife could use that as another user. And now it say im on Hyprland DE with Mutter WM. So the identification process here is not very robust, and cant really be trusted in the way its implemented today.