From 40f41a5299a3a12f1f9908ad5a01205bb1927eef Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 24 Apr 2026 09:56:08 +0200 Subject: [PATCH] Fix hw check for hybrid gpu --- bin/omarchy-hw-hybrid-gpu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-hw-hybrid-gpu b/bin/omarchy-hw-hybrid-gpu index dcd0a8fd..7f26f6af 100755 --- a/bin/omarchy-hw-hybrid-gpu +++ b/bin/omarchy-hw-hybrid-gpu @@ -1,3 +1,9 @@ #!/bin/bash -(($(lspci | grep -cE 'VGA|3D|Display') >= 2)) +# supergfxctl is authoritative: in Integrated mode the dGPU is unbound and +# hidden from lspci, so the controller count would undercount on those systems. +if command -v supergfxctl &>/dev/null; then + supergfxctl -s 2>/dev/null | grep -qw Hybrid +else + (($(lspci | grep -cE 'VGA|3D|Display') >= 2)) +fi