You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix Wayland detection and display server reporting #490
FastFetch's documentation explicitly calls out that neofetch's Wayland support "never actually worked." We should audit and fix our Wayland detection to provide accurate display server information.
Background
From FastFetch's FAQ:
"Fastfetch is more accurate. For example, neofetch never actually supports the Wayland protocol."
This is a credibility issue - users running Wayland compositors (Sway, Hyprland, GNOME on Wayland, KDE Plasma Wayland) may be getting inaccurate information.
Research Findings
FastFetch handles Wayland detection by:
Checking $WAYLAND_DISPLAY environment variable
Detecting the actual compositor (wlroots-based, mutter, kwin_wayland, etc.)
Properly reporting resolution via Wayland protocols rather than xrandr
Areas to Investigate
Display Server Detection (get_wm() function area)
Does $WAYLAND_DISPLAY get properly detected?
Are XWayland scenarios handled correctly?
Resolution Detection (get_resolution() function area)
xrandr doesn't work under pure Wayland
Need alternative methods (wlr-randr, wayland-info, compositor-specific)
Window Manager Detection
Detect Wayland-native compositors (Sway, Hyprland, river, etc.)
Distinguish between X11 and Wayland sessions for hybrid setups
Acceptance Criteria
$WAYLAND_DISPLAY is checked before falling back to X11 methods
Wayland compositors are correctly identified by name
Resolution detection works without xrandr on pure Wayland
XWayland apps running under Wayland don't cause false X11 detection
Activity
suparious commentedon Feb 1, 2026
Fixed in c674552 - Improved Wayland support:
Resolution detection: Added native Wayland resolution methods:
wlr-randrfor wlroots compositors (Sway, Hyprland, river, etc.)kscreen-doctorfor KDE Plasma Waylandwayland-infoas generic fallbackWM detection: Added 10 modern Wayland compositors:
cage, cagebreak, cosmic-comp, dwl, gamescope, labwc, mutter, niri, phoc, and lowercase hyprland variant
The code now properly attempts Wayland-native tools before falling back to DRM/sysfs.
fix: Performance and compatibility improvements