neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Misclassification of Hyprland

Open zayn7lie opened this issue 1 year ago • 5 comments

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 
 `++:.                           `-/+/
 .`                                 `/                           
                                                                 

zayn7lie avatar Aug 27 '23 16:08 zayn7lie

If you really wanted it to show hyprland for the WM, just use prin instead of info

KiLoBO avatar Sep 14 '23 09:09 KiLoBO

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

AyushmaanAggarwal avatar Nov 17 '23 06:11 AyushmaanAggarwal

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

ncmprhnsbl avatar Nov 17 '23 21:11 ncmprhnsbl

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.

KiLoBO avatar Nov 17 '23 22:11 KiLoBO

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.

arosl avatar Dec 08 '23 19:12 arosl