display-resolution

Detects monitor resolution and refresh rate.

  • Kind: info_provider
  • Binary: xfetch-plugin-display-resolution
  • Dependencies: platform-specific (see table)

Configuration

{
    "info_plugins": [{ "plugin": "display-resolution" }],
    "modules": ["plugin:display-resolution"]
}

Arguments

None.

Platform Detection

PlatformMethod
Linux (X11)xrandr --current (fallback: xdpyinfo)
Linux (Wayland)wlr-randr
macOSsystem_profiler SPDisplaysDataType
WindowsPowerShell GetDeviceCaps

Output

StateOutput
Single monitor DP-1: 1920x1080 @ 144.00 Hz (primary)
Multiple monitors eDP-1: ... (primary) /  HDMI-1: ...
Not detected Display: unknown